Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x63beaAcA3d091A22bE92b6DF7ABf58223d6d5e76
Balance 0 ETH
Nonce 1
Code Size 11336 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11336 bytes
0x60806040526004361061028c5760003560e01c8063715018a61161015a578063a457c2d7116100c1578063c49b9a801161007a578063c49b9a80146107fb578063d5aed6bf1461081b578063dd62ed3e1461083b578063e6c75f7114610881578063ec28438a14610897578063f2fde38b146108b757600080fd5b8063a457c2d71461072c578063a49d95511461074c578063a9059cbb1461076c578063baa043981461078c578063bbc0c742146107bc578063bea9849e146107db57600080fd5b80638ee88c53116101135780638ee88c531461067557806395d89b4114610695578063962dfc75146106c057806398118cb4146106e05780639c74daf0146106f6578063a071dcf41461071657600080fd5b8063715018a6146105c9578063751039fc146105de57806388f82020146105f35780638a8c523c1461062c5780638c0b5e22146106415780638da5cb5b1461065757600080fd5b806339509351116101fe578063583e0568116101b7578063583e0568146104e95780635d098b38146105295780635d83b454146105495780636612e66f146105695780636ddd17131461058957806370a08231146105a957600080fd5b806339509351146104205780634549b039146104405780634a62bb651461046057806352390c021461047a5780635342acb41461049a57806354e69eb3146104d357600080fd5b806318160ddd1161025057806318160ddd1461036f57806323b872dd146103845780632d838119146103a45780632ff9c145146103c4578063313ce567146103e45780633685d4191461040057600080fd5b8063061c82d01461029857806306fdde03146102ba578063095ea7b3146103005780630fec5dd01461033057806313114a9d1461035057600080fd5b3661029357005b600080fd5b3480156102a457600080fd5b506102b86102b3366004612760565b6108d7565b005b3480156102c657600080fd5b5060408051808201909152600b81526a2b30b1babab69021b7b4b760a91b60208201525b6040516102f79190612779565b60405180910390f35b34801561030c57600080fd5b5061032061031b3660046127dc565b61096b565b60405190151581526020016102f7565b34801561033c57600080fd5b506102b861034b366004612760565b610982565b34801561035c57600080fd5b50600a545b6040519081526020016102f7565b34801561037b57600080fd5b50610361610a3c565b34801561039057600080fd5b5061032061039f366004612808565b610a5d565b3480156103b057600080fd5b506103616103bf366004612760565b610ac6565b3480156103d057600080fd5b506102b86103df366004612760565b610b4a565b3480156103f057600080fd5b50604051600981526020016102f7565b34801561040c57600080fd5b506102b861041b366004612849565b610b79565b34801561042c57600080fd5b5061032061043b3660046127dc565b610d2f565b34801561044c57600080fd5b5061036161045b36600461287b565b610d65565b34801561046c57600080fd5b506011546103209060ff1681565b34801561048657600080fd5b506102b8610495366004612849565b610e2b565b3480156104a657600080fd5b506103206104b5366004612849565b6001600160a01b031660009081526003602052604090205460ff1690565b3480156104df57600080fd5b50610361600d5481565b3480156104f557600080fd5b506011546105119064010000000090046001600160a01b031681565b6040516001600160a01b0390911681526020016102f7565b34801561053557600080fd5b506102b8610544366004612849565b610f7e565b34801561055557600080fd5b506102b86105643660046128a7565b610fca565b34801561057557600080fd5b506102b86105843660046128a7565b61101f565b34801561059557600080fd5b506011546103209062010000900460ff1681565b3480156105b557600080fd5b506103616105c4366004612849565b611074565b3480156105d557600080fd5b506102b86110d3565b3480156105ea57600080fd5b506102b8611109565b3480156105ff57600080fd5b5061032061060e366004612849565b6001600160a01b031660009081526004602052604090205460ff1690565b34801561063857600080fd5b506102b861113f565b34801561064d57600080fd5b50610361600f5481565b34801561066357600080fd5b506000546001600160a01b0316610511565b34801561068157600080fd5b506102b8610690366004612760565b6111d4565b3480156106a157600080fd5b50604080518082019091526002815261564360f01b60208201526102ea565b3480156106cc57600080fd5b50600854610511906001600160a01b031681565b3480156106ec57600080fd5b50610361600c5481565b34801561070257600080fd5b50601254610511906001600160a01b031681565b34801561072257600080fd5b50610361600b5481565b34801561073857600080fd5b506103206107473660046127dc565b611254565b34801561075857600080fd5b506102b8610767366004612760565b6112a3565b34801561077857600080fd5b506103206107873660046127dc565b611323565b34801561079857600080fd5b506103206107a7366004612849565b60066020526000908152604090205460ff1681565b3480156107c857600080fd5b5060115461032090610100900460ff1681565b3480156107e757600080fd5b506102b86107f6366004612849565b611330565b34801561080757600080fd5b506102b86108163660046128d3565b611388565b34801561082757600080fd5b506102b8610836366004612849565b611408565b34801561084757600080fd5b506103616108563660046128ee565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561088d57600080fd5b50610361600e5481565b3480156108a357600080fd5b506102b86108b2366004612760565b611454565b3480156108c357600080fd5b506102b86108d2366004612849565b61151c565b6000546001600160a01b0316331461090a5760405162461bcd60e51b815260040161090190612927565b60405180910390fd5b60048111156109665760405162461bcd60e51b815260206004820152602260248201527f486f6c646572205265666c656374696f6e2063616e6e6f742065786365656420604482015261342560f01b6064820152608401610901565b600b55565b60006109783384846115b7565b5060015b92915050565b6000546001600160a01b031633146109ac5760405162461bcd60e51b815260040161090190612927565b60646109ba6009600a612a56565b6109c89063b2b0b2e4612a65565b6109d29190612a7c565b811015610a375760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526c6c6f776572207468616e20312560981b6064820152608401610901565b600e55565b6000610a4a6009600a612a56565b610a589063b2b0b2e4612a65565b905090565b6000610a6a8484846116db565b610abc8433610ab785604051806060016040528060288152602001612bc6602891396001600160a01b038a1660009081526005602090815260408083203384529091529020549190611b02565b6115b7565b5060019392505050565b6000600954821115610b2d5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610901565b6000610b37611b2e565b9050610b438382611b51565b9392505050565b6000546001600160a01b03163314610b745760405162461bcd60e51b815260040161090190612927565b601055565b6000546001600160a01b03163314610ba35760405162461bcd60e51b815260040161090190612927565b6001600160a01b03811660009081526004602052604090205460ff16610c0b5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610901565b60005b600754811015610d2b57816001600160a01b031660078281548110610c3557610c35612a9e565b6000918252602090912001546001600160a01b031603610d195760078054610c5f90600190612ab4565b81548110610c6f57610c6f612a9e565b600091825260209091200154600780546001600160a01b039092169183908110610c9b57610c9b612a9e565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600490925220805460ff191690556007805480610cf357610cf3612ac7565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610d2381612add565b915050610c0e565b5050565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610978918590610ab79086611b5d565b6000610d736009600a612a56565b610d819063b2b0b2e4612a65565b831115610dd05760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610901565b600080610ddc85611b69565b92509250506000610deb611b2e565b905084610e0f576000610e0087858585611bb3565b5090955061097c945050505050565b6000610e1d87858585611bb3565b50955061097c945050505050565b6000546001600160a01b03163314610e555760405162461bcd60e51b815260040161090190612927565b6001600160a01b03811660009081526004602052604090205460ff1615610ebe5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610901565b6001600160a01b03811660009081526001602052604090205415610f18576001600160a01b038116600090815260016020526040902054610efe90610ac6565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600460205260408120805460ff191660019081179091556007805491820181559091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319169091179055565b6000546001600160a01b03163314610fa85760405162461bcd60e51b815260040161090190612927565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ff45760405162461bcd60e51b815260040161090190612927565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146110495760405162461bcd60e51b815260040161090190612927565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b6001600160a01b03811660009081526004602052604081205460ff16156110b157506001600160a01b031660009081526002602052604090205490565b6001600160a01b03821660009081526001602052604090205461097c90610ac6565b6000546001600160a01b031633146110fd5760405162461bcd60e51b815260040161090190612927565b6111076000611c0b565b565b6000546001600160a01b031633146111335760405162461bcd60e51b815260040161090190612927565b6011805460ff19169055565b6000546001600160a01b031633146111695760405162461bcd60e51b815260040161090190612927565b601154610100900460ff16156111c15760405162461bcd60e51b815260206004820152601a60248201527f54726164696e6720697320616c726561647920656e61626c65640000000000006044820152606401610901565b6011805462ffff00191662010100179055565b6000546001600160a01b031633146111fe5760405162461bcd60e51b815260040161090190612927565b600681111561124f5760405162461bcd60e51b815260206004820152601e60248201527f4c6971756964697479204665652063616e6e6f742065786365656420362500006044820152606401610901565b600c55565b60006109783384610ab785604051806060016040528060258152602001612bee602591393360009081526005602090815260408083206001600160a01b038d1684529091529020549190611b02565b6000546001600160a01b031633146112cd5760405162461bcd60e51b815260040161090190612927565b606481111561131e5760405162461bcd60e51b815260206004820152601a60248201527f50657263656e742063616e6e6f742065786365656420313030250000000000006044820152606401610901565b600d55565b60006109783384846116db565b6000546001600160a01b0316331461135a5760405162461bcd60e51b815260040161090190612927565b601180546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6000546001600160a01b031633146113b25760405162461bcd60e51b815260040161090190612927565b60118054821515620100000262ff0000199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906113fd90831515815260200190565b60405180910390a150565b6000546001600160a01b031633146114325760405162461bcd60e51b815260040161090190612927565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461147e5760405162461bcd60e51b815260040161090190612927565b6103e861148d6009600a612a56565b61149b9063b2b0b2e4612a65565b6114a6906005612a65565b6114b09190612a7c565b8110156115175760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e352560881b6064820152608401610901565b600f55565b6000546001600160a01b031633146115465760405162461bcd60e51b815260040161090190612927565b6001600160a01b0381166115ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610901565b6115b481611c0b565b50565b6001600160a01b0383166116195760405162461bcd60e51b8152602060048201526024808201527f42455032303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610901565b6001600160a01b03821661167a5760405162461bcd60e51b815260206004820152602260248201527f42455032303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610901565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661173f5760405162461bcd60e51b815260206004820152602560248201527f42455032303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610901565b6001600160a01b0382166117a15760405162461bcd60e51b815260206004820152602360248201527f42455032303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610901565b600081116118035760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610901565b600061180e30611074565b60115490915060ff1615611a3e57601154610100900460ff166118af576001600160a01b03841660009081526003602052604090205460ff168061186a57506001600160a01b03831660009081526003602052604090205460ff165b6118af5760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610901565b6000546001600160a01b038581169116148015906118db57506000546001600160a01b03848116911614155b1561194357600f548211156119435760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610901565b600f5481106119515750600f545b6000546001600160a01b0385811691161480159061197d57506000546001600160a01b03848116911614155b801561199157506001600160a01b03831615155b80156119a857506001600160a01b03831661dead14155b80156119c257506012546001600160a01b03848116911614155b15611a3e5760006119d284611074565b600e549091506119e28483612af6565b1115611a3c5760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d2077616c6c657420746f6b656e20616d6f6044820152633ab73a1760e11b6064820152608401610901565b505b60105481108015908190611a5c57506011546301000000900460ff16155b8015611a8157506001600160a01b03851660009081526006602052604090205460ff16155b8015611a95575060115462010000900460ff165b15611aa357611aa382611c5b565b6001600160a01b03851660009081526003602052604090205460019060ff1680611ae557506001600160a01b03851660009081526003602052604090205460ff165b15611aee575060005b611afa86868684611dd7565b505050505050565b60008184841115611b265760405162461bcd60e51b81526004016109019190612779565b505050900390565b6000806000611b3b611f55565b9092509050611b4a8282611b51565b9250505090565b6000610b438284612a7c565b6000610b438284612af6565b600080600080611b7b85600b54612140565b90506000611b8b86600c54612140565b90506000611b998784612151565b9050611ba58183612151565b979296509094509092505050565b6000808080611bc2888661215d565b90506000611bd0888761215d565b90506000611bde888861215d565b90506000611bec8484612151565b9050611bf88183612151565b939b939a50919850919650505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6011805463ff00000019166301000000179055600d54600090611c979060c890611c9190611c8a906064612ab4565b859061215d565b90611b51565b90506000611ca58383612151565b905047611cb182612169565b6000611cbd4783612151565b90506000611cd86064611c91600d546064611c8a9190612ab4565b90506000611ce68383612151565b90508015611d70576008546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611d28573d6000803e3d6000fd5b50600854604080516001600160a01b039092168252602082018390527f1af6c280083a73c311541c1467fa5fed97da7b6fd18e594778af9bdb5793b5c4910160405180910390a15b8515611d8057611d8086836122e4565b60408051868152602081018490529081018790527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506011805463ff000000191690555050505050565b600b54600c5482611ded576000600b819055600c555b6001600160a01b03861660009081526004602052604090205460ff168015611e2e57506001600160a01b03851660009081526004602052604090205460ff16155b15611e4357611e3e8686866123a4565b611f41565b6001600160a01b03861660009081526004602052604090205460ff16158015611e8457506001600160a01b03851660009081526004602052604090205460ff165b15611e9457611e3e8686866124e5565b6001600160a01b03861660009081526004602052604090205460ff16158015611ed657506001600160a01b03851660009081526004602052604090205460ff16155b15611ee657611e3e8686866125a6565b6001600160a01b03861660009081526004602052604090205460ff168015611f2657506001600160a01b03851660009081526004602052604090205460ff165b15611f3657611e3e868686612602565b611f418686866125a6565b82611afa57600b91909155600c5550505050565b6000806000600954905060006009600a611f6f9190612a56565b611f7d9063b2b0b2e4612a65565b905060005b6007548110156120e057826001600060078481548110611fa457611fa4612a9e565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061200f5750816002600060078481548110611fe857611fe8612a9e565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561203e576009546009600a6120259190612a56565b6120339063b2b0b2e4612a65565b945094505050509091565b612084600160006007848154811061205857612058612a9e565b60009182526020808320909101546001600160a01b031683528201929092526040019020548490612151565b92506120cc60026000600784815481106120a0576120a0612a9e565b60009182526020808320909101546001600160a01b031683528201929092526040019020548390612151565b9150806120d881612add565b915050611f82565b506121076120f06009600a612a56565b6120fe9063b2b0b2e4612a65565b60095490611b51565b821015612137576009546009600a61211f9190612a56565b61212d9063b2b0b2e4612a65565b9350935050509091565b90939092509050565b6000610b436064611c91858561215d565b6000610b438284612ab4565b6000610b438284612a65565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061219e5761219e612a9e565b60200260200101906001600160a01b031690816001600160a01b031681525050601160049054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612211573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122359190612b09565b8160018151811061224857612248612a9e565b6001600160a01b039283166020918202929092010152601154612276913091640100000000900416846115b7565b60115460405163791ac94760e01b81526401000000009091046001600160a01b03169063791ac947906122b6908590600090869030904290600401612b26565b600060405180830381600087803b1580156122d057600080fd5b505af1158015611afa573d6000803e3d6000fd5b60115461230490309064010000000090046001600160a01b0316846115b7565b60115460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526401000000009091046001600160a01b03169063f305d71990839060c40160606040518083038185885af1158015612378573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061239d9190612b97565b5050505050565b60008060006123b284611b69565b92509250925060006123c2611b2e565b905060008060006123d588878787611bb3565b6001600160a01b038d1660009081526002602052604090205492955090935091506124009089612151565b6001600160a01b038b1660009081526002602090815260408083209390935560019052205461242f9084612151565b6001600160a01b03808c1660009081526001602052604080822093909355908b168152205461245e9083611b5d565b6001600160a01b038a1660009081526001602052604090205561248230868661268d565b61248c818761273c565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef896040516124d191815260200190565b60405180910390a350505050505050505050565b60008060006124f384611b69565b9250925092506000612503611b2e565b9050600080600061251688878787611bb3565b6001600160a01b038d1660009081526001602052604090205492955090935091506125419084612151565b6001600160a01b03808c16600090815260016020908152604080832094909455918c168152600290915220546125779088611b5d565b6001600160a01b038a1660009081526002602090815260408083209390935560019052205461245e9083611b5d565b60008060006125b484611b69565b92509250925060006125c4611b2e565b905060008060006125d788878787611bb3565b6001600160a01b038d16600090815260016020526040902054929550909350915061242f9084612151565b600080600061261084611b69565b9250925092506000612620611b2e565b9050600080600061263388878787611bb3565b6001600160a01b038d16600090815260026020526040902054929550909350915061265e9089612151565b6001600160a01b038b166000908152600260209081526040808320939093556001905220546125419084612151565b6000821161269a57505050565b60006126a6838361215d565b6001600160a01b0385166000908152600160205260409020549091506126cc9082611b5d565b6001600160a01b03851660009081526001602090815260408083209390935560049052205460ff1615612736576001600160a01b03841660009081526002602052604090205461271c9084611b5d565b6001600160a01b0385166000908152600260205260409020555b50505050565b6009546127499083612151565b600955600a546127599082611b5d565b600a555050565b60006020828403121561277257600080fd5b5035919050565b600060208083528351808285015260005b818110156127a65785810183015185820160400152820161278a565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146115b457600080fd5b600080604083850312156127ef57600080fd5b82356127fa816127c7565b946020939093013593505050565b60008060006060848603121561281d57600080fd5b8335612828816127c7565b92506020840135612838816127c7565b929592945050506040919091013590565b60006020828403121561285b57600080fd5b8135610b43816127c7565b8035801515811461287657600080fd5b919050565b6000806040838503121561288e57600080fd5b8235915061289e60208401612866565b90509250929050565b600080604083850312156128ba57600080fd5b82356128c5816127c7565b915061289e60208401612866565b6000602082840312156128e557600080fd5b610b4382612866565b6000806040838503121561290157600080fd5b823561290c816127c7565b9150602083013561291c816127c7565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156129ad5781600019048211156129935761299361295c565b808516156129a057918102915b93841c9390800290612977565b509250929050565b6000826129c45750600161097c565b816129d15750600061097c565b81600181146129e757600281146129f157612a0d565b600191505061097c565b60ff841115612a0257612a0261295c565b50506001821b61097c565b5060208310610133831016604e8410600b8410161715612a30575081810a61097c565b612a3a8383612972565b8060001904821115612a4e57612a4e61295c565b029392505050565b6000610b4360ff8416836129b5565b808202811582820484141761097c5761097c61295c565b600082612a9957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b8181038181111561097c5761097c61295c565b634e487b7160e01b600052603160045260246000fd5b600060018201612aef57612aef61295c565b5060010190565b8082018082111561097c5761097c61295c565b600060208284031215612b1b57600080fd5b8151610b43816127c7565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612b765784516001600160a01b031683529383019391830191600101612b51565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612bac57600080fd5b835192506020840151915060408401519050925092509256fe42455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122000a4cf688b0d4f79e93e370855f33b5be7b0976cef564abd50fcc7cfd8003aec64736f6c63430008110033

Verified Source Code Partial Match

Compiler: v0.8.17+commit.8df45f5f EVM: london Optimization: Yes (200 runs)
VacuumCoin.sol 1015 lines
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.10;

interface IBEP20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}


abstract contract Context {
    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;
    }
}

abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    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, uint value);
    event Transfer(address indexed from, address indexed to, uint 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 (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint 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 (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    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 (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint 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,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}


contract VacuumCoin is Context, IBEP20, Ownable {
    using SafeMath for uint256;

    mapping (address => uint256) private _rOwned;
    mapping (address => uint256) private _tOwned;
    mapping (address => bool) private _isExcludedFromFee;
    mapping (address => bool) private _isExcluded;
    mapping (address => mapping (address => uint256)) private _allowances;
    mapping (address => bool) public _isExcludedFromAutoLiquidity;

    address[] private _excluded;
    address public _marketingWallet = 0xAC384287797DD6698461C6a178cAEfd723eaa645;

    string private constant _name     = "Vacuum Coin";
    string private constant _symbol   = "VC";
    uint8 private constant _decimals = 9;

    uint256 private constant MAX = ~uint256(0);
    uint256 private constant _tTotal = 2997924580 * 10 ** _decimals;
    uint256 private _rTotal = (MAX - (MAX % _tTotal));
    uint256 private _tFeeTotal;

    uint256 public taxFee = 1;
    uint256 public liquidityFee = 2;
    uint256 public percentageOfLiquidityForMarketing = 100;
    uint256 public maxWalletToken = _tTotal * 2 / 100;
    uint256 public maxTxAmount     = _tTotal / 100;
    uint256 private _minTokenBalance = _tTotal * 5 / 1000;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;
    bool _inSwapAndLiquify;
    IUniswapV2Router02 public _uniswapV2Router;
    address            public _uniswapV2Pair;
    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 bnbReceived,
        uint256 tokensIntoLiqudity
    );
    event MarketingFeeSent(address to, uint256 bnbSent);

    modifier lockTheSwap {
        _inSwapAndLiquify = true;
        _;
        _inSwapAndLiquify = false;
    }

    constructor () {
        _rOwned[msg.sender] = _rTotal;

        // uniswap
        IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        _uniswapV2Router = uniswapV2Router;
        _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
            .createPair(address(this), uniswapV2Router.WETH());

        // exclude system contracts
        _isExcludedFromFee[msg.sender] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[_marketingWallet] = true;

        _isExcludedFromAutoLiquidity[_uniswapV2Pair]            = true;
        _isExcludedFromAutoLiquidity[address(_uniswapV2Router)] = true;

        emit Transfer(address(0), msg.sender, _tTotal);
    }

    function name() public pure returns (string memory) {
        return _name;
    }

    function symbol() public pure returns (string memory) {
        return _symbol;
    }

    function decimals() public pure returns (uint8) {
        return _decimals;
    }

    function totalSupply() public pure override returns (uint256) {
        return _tTotal;
    }

    function balanceOf(address account) public view override returns (uint256) {
        if (_isExcluded[account]) return _tOwned[account];
        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, "BEP20: 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, "BEP20: decreased allowance below zero"));
        return true;
    }

    function isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function totalFees() public view returns (uint256) {
        return _tFeeTotal;
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
        require(tAmount <= _tTotal, "Amount must be less than supply");
        (, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
        uint256 currentRate = _getRate();

        if (!deductTransferFee) {
            (uint256 rAmount,,) = _getRValues(tAmount, tFee, tLiquidity, currentRate);
            return rAmount;

        } else {
            (, uint256 rTransferAmount,) = _getRValues(tAmount, tFee, tLiquidity, currentRate);
            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);
    }

    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        require(!tradingActive, "Trading is already enabled");
        tradingActive = true;
        swapEnabled = true;
    }

    // remove limits after token is stable
    function removeLimits() external onlyOwner {
        limitsInEffect = false;
    }

    function excludeFromReward(address account) external onlyOwner {
        require(!_isExcluded[account], "Account is already excluded");

        if (_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

    function includeInReward(address account) external onlyOwner {
        require(_isExcluded[account], "Account is already excluded");

        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                _excluded[i] = _excluded[_excluded.length - 1];
                _tOwned[account] = 0;
                _isExcluded[account] = false;
                _excluded.pop();
                break;
            }
        }
    }

    function setMarketingWallet(address marketingWallet) external onlyOwner {
        _marketingWallet = marketingWallet;
    }
    
    function setMinimumTokenBalance (uint256 minimumToken) external onlyOwner {
        _minTokenBalance = minimumToken;
    }
    function setExcludedFromFee(address account, bool e) external onlyOwner {
        _isExcludedFromFee[account] = e;
    }

    function setTaxFeePercent(uint256 amount) external onlyOwner {
        require(amount <= 4, "Holder Reflection cannot exceed 4%");
        taxFee = amount;
    }

    function setLiquidityFeePercent(uint256 amount) external onlyOwner {
        require(amount <= 6, "Liquidity Fee cannot exceed 6%");
        liquidityFee = amount;
    }

    function setPercentageOfLiquidityForMarketing(uint256 marketingFee) external onlyOwner {
        require(marketingFee <= 100, "Percent cannot exceed 100%");
        percentageOfLiquidityForMarketing = marketingFee;
    }

    function setMaxWalletTokens(uint256 amount) external onlyOwner {
        require(amount >= _tTotal / 100, "Cannot set maxTransactionAmount lower than 1%");
  	    maxWalletToken = amount ;
  	}

    function setMaxTxAmount(uint256 amount) external onlyOwner {
        require(amount >= _tTotal * 5 / 1000, "Cannot set maxTransactionAmount lower than 0.5%");
        maxTxAmount = amount;
    }

    function setSwapAndLiquifyEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
        emit SwapAndLiquifyEnabledUpdated(enabled);
    }

    receive() external payable {}

    function setUniswapRouter(address r) external onlyOwner {
        IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(r);
        _uniswapV2Router = uniswapV2Router;
    }

    function setUniswapPair(address p) external onlyOwner {
        _uniswapV2Pair = p;
    }

    function setExcludedFromAutoLiquidity(address a, bool b) external onlyOwner {
        _isExcludedFromAutoLiquidity[a] = b;
    }

    function _reflectFee(uint256 rFee, uint256 tFee) private {
        _rTotal    = _rTotal.sub(rFee);
        _tFeeTotal = _tFeeTotal.add(tFee);
    }

    function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256) {
        uint256 tFee       = calculateFee(tAmount, taxFee);
        uint256 tLiquidity = calculateFee(tAmount, liquidityFee);
        uint256 tTransferAmount = tAmount.sub(tFee);
        tTransferAmount = tTransferAmount.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);
        rTransferAmount = rTransferAmount.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;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
            rSupply = rSupply.sub(_rOwned[_excluded[i]]);
            tSupply = tSupply.sub(_tOwned[_excluded[i]]);
        }
        if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }

    function takeTransactionFee(address to, uint256 tAmount, uint256 currentRate) private {
        if (tAmount <= 0) { return; }

        uint256 rAmount = tAmount.mul(currentRate);
        _rOwned[to] = _rOwned[to].add(rAmount);
        if (_isExcluded[to]) {
            _tOwned[to] = _tOwned[to].add(tAmount);
        }
    }

    function calculateFee(uint256 amount, uint256 fee) private pure returns (uint256) {
        return amount.mul(fee).div(100);
    }

    function isExcludedFromFee(address account) public view returns(bool) {
        return _isExcludedFromFee[account];
    }

    function _approve(address owner, address spender, uint256 amount) private {
        require(owner != address(0), "BEP20: approve from the zero address");
        require(spender != address(0), "BEP20: 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), "BEP20: transfer from the zero address");
        require(to != address(0), "BEP20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");

        uint256 contractTokenBalance = balanceOf(address(this));

        if (limitsInEffect) {
            if (!tradingActive) {
                require(
                    _isExcludedFromFee[from] || _isExcludedFromFee[to],
                    "Trading is not active."
                );
            }

            if (from != owner() && to != owner()) {
                require(amount <= maxTxAmount, "Transfer amount exceeds the maxTxAmount.");
            }

            /*
                - swapAndLiquify will be initiated when token balance of this contract
                has accumulated enough over the minimum number of tokens required.
                - don't get caught in a circular liquidity event.
                - don't swapAndLiquify if sender is uniswap pair.
            */

            if (contractTokenBalance >= maxTxAmount) {
                contractTokenBalance = maxTxAmount;
            }
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                to != _uniswapV2Pair
            ) {

                uint256 contractBalanceRecepient = balanceOf(to);
                require(
                    contractBalanceRecepient + amount <= maxWalletToken,
                    "Exceeds maximum wallet token amount."
                );

            }
        }

        bool isOverMinTokenBalance = contractTokenBalance >= _minTokenBalance;
        if (
            isOverMinTokenBalance &&
            !_inSwapAndLiquify &&
            !_isExcludedFromAutoLiquidity[from] &&
            swapEnabled
        ) {
            // contractTokenBalance = _minTokenBalance;
            swapAndLiquify(contractTokenBalance);
        }


        bool takeFee = true;
        if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) {
            takeFee = false;
        }
        _tokenTransfer(from, to, amount, takeFee);
    }

    function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
        uint256 liqTokens = contractTokenBalance.mul(100 - percentageOfLiquidityForMarketing).div(200);
        uint256 swapTokens = contractTokenBalance.sub(liqTokens);

        uint256 initialBalance = address(this).balance;

        // swap tokens for BNB
        swapTokensForBnb(swapTokens);

        // this is the amount of BNB that we just swapped into
        uint256 newBalance = address(this).balance.sub(initialBalance);

        // take marketing fee
        uint256 bnbForLiquidity = newBalance.mul(100 - percentageOfLiquidityForMarketing).div(100);
        uint256 marketingFee = newBalance.sub(bnbForLiquidity);
        if (marketingFee > 0) {
            payable(_marketingWallet).transfer(marketingFee);
            emit MarketingFeeSent(_marketingWallet, marketingFee);
        }

        if (liqTokens > 0) {
            addLiquidity(liqTokens, bnbForLiquidity);
        }

        emit SwapAndLiquify(swapTokens, bnbForLiquidity, liqTokens);
    }
    function swapTokensForBnb(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 BNB
            path,
            address(this),
            block.timestamp
        );
    }
    function addLiquidity(uint256 tokenAmount, uint256 bnbAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(_uniswapV2Router), tokenAmount);

        // add the liquidity
        _uniswapV2Router.addLiquidityETH{value: bnbAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(this),
            block.timestamp
        );
    }

    function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
        uint256 previousTaxFee       = taxFee;
        uint256 previousLiquidityFee = liquidityFee;

        if (!takeFee) {
            taxFee       = 0;
            liquidityFee = 0;
        }

        if (_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferFromExcluded(sender, recipient, amount);

        } else if (!_isExcluded[sender] && _isExcluded[recipient]) {
            _transferToExcluded(sender, recipient, amount);

        } else if (!_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferStandard(sender, recipient, amount);

        } else if (_isExcluded[sender] && _isExcluded[recipient]) {
            _transferBothExcluded(sender, recipient, amount);

        } else {
            _transferStandard(sender, recipient, amount);
        }

        if (!takeFee) {
            taxFee       = previousTaxFee;
            liquidityFee = previousLiquidityFee;
        }
    }

    function _transferStandard(address sender, address recipient, uint256 tAmount) private {
        (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
        uint256 currentRate = _getRate();
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, currentRate);

        _rOwned[sender]    = _rOwned[sender].sub(rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);

        takeTransactionFee(address(this), tLiquidity, currentRate);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
        uint256 currentRate = _getRate();
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, currentRate);

        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);

        takeTransactionFee(address(this), tLiquidity, currentRate);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
        uint256 currentRate = _getRate();
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, currentRate);

        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);

        takeTransactionFee(address(this), tLiquidity, currentRate);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
        uint256 currentRate = _getRate();
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, currentRate);

        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);

        takeTransactionFee(address(this), tLiquidity, currentRate);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

}

Read Contract

_isExcludedFromAutoLiquidity 0xbaa04398 → bool
_marketingWallet 0x962dfc75 → address
_uniswapV2Pair 0x9c74daf0 → address
_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
limitsInEffect 0x4a62bb65 → bool
liquidityFee 0x98118cb4 → uint256
maxTxAmount 0x8c0b5e22 → uint256
maxWalletToken 0xe6c75f71 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
percentageOfLiquidityForMarketing 0x54e69eb3 → uint256
reflectionFromToken 0x4549b039 → uint256
swapEnabled 0x6ddd1713 → bool
symbol 0x95d89b41 → string
taxFee 0xa071dcf4 → uint256
tokenFromReflection 0x2d838119 → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool

Write Contract 23 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromReward 0x52390c02
address account
includeInReward 0x3685d419
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setExcludedFromAutoLiquidity 0x5d83b454
address a
bool b
setExcludedFromFee 0x6612e66f
address account
bool e
setLiquidityFeePercent 0x8ee88c53
uint256 amount
setMarketingWallet 0x5d098b38
address marketingWallet
setMaxTxAmount 0xec28438a
uint256 amount
setMaxWalletTokens 0x0fec5dd0
uint256 amount
setMinimumTokenBalance 0x2ff9c145
uint256 minimumToken
setPercentageOfLiquidityForMarketing 0xa49d9551
uint256 marketingFee
setSwapAndLiquifyEnabled 0xc49b9a80
bool enabled
setTaxFeePercent 0x061c82d0
uint256 amount
setUniswapPair 0xd5aed6bf
address p
setUniswapRouter 0xbea9849e
address r
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