Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x120d3d081CDfc62CfAF99638f12703E4B9A6C4Bc
Balance 0 ETH
Nonce 1
Code Size 11729 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11729 bytes
0x6080604052600436106102345760003560e01c80637d1db4a51161012e578063b8d36b50116100ab578063e58a3a7a1161006f578063e58a3a7a146106eb578063f2fde38b14610700578063f4acc2ed14610720578063fc81a12a14610740578063ffb54a991461077957600080fd5b8063b8d36b501461062a578063bf9f2ecc1461064a578063ca02d7911461065f578063dba4762a14610684578063dd62ed3e146106a557600080fd5b80639a7a23d6116100f25780639a7a23d614610585578063a457c2d7146105a5578063a9059cbb146105c5578063adbede72146105e5578063b62496f5146105fa57600080fd5b80637d1db4a5146104da57806388f82020146104f05780638da5cb5b146105295780638f32d59b1461055b57806395d89b411461057057600080fd5b80632d838119116101bc57806352390c021161018057806352390c021461042c5780635342acb41461044c57806370a0823114610485578063715018a6146104a557806371b9189c146104ba57600080fd5b80632d83811914610371578063306abccf14610391578063313ce567146103ca578063337582a5146103ec578063395093511461040c57600080fd5b806318160ddd1161020357806318160ddd146102dd57806322049783146102fc578063224611731461031c57806323b872dd1461033c578063293230b81461035c57600080fd5b806301b95c1a14610240578063024022f71461026257806306fdde0314610282578063095ea7b3146102ad57600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b5061026061025b366004612925565b61079a565b005b34801561026e57600080fd5b5061026061027d366004612958565b61094a565b34801561028e57600080fd5b50610297610a50565b6040516102a491906129cd565b60405180910390f35b3480156102b957600080fd5b506102cd6102c8366004612a1b565b610ae2565b60405190151581526020016102a4565b3480156102e957600080fd5b50600c545b6040519081526020016102a4565b34801561030857600080fd5b50610260610317366004612a56565b610af9565b34801561032857600080fd5b50610260610337366004612a8d565b610c69565b34801561034857600080fd5b506102cd610357366004612aa8565b610d62565b34801561036857600080fd5b50610260610dcb565b34801561037d57600080fd5b506102ee61038c366004612ae4565b610e0a565b34801561039d57600080fd5b506102cd6103ac366004612a8d565b6001600160a01b031660009081526009602052604090205460ff1690565b3480156103d657600080fd5b5060125460405160ff90911681526020016102a4565b3480156103f857600080fd5b506102ee610407366004612afd565b610e8e565b34801561041857600080fd5b506102cd610427366004612a1b565b610f30565b34801561043857600080fd5b50610260610447366004612a8d565b610f66565b34801561045857600080fd5b506102cd610467366004612a8d565b6001600160a01b031660009081526006602052604090205460ff1690565b34801561049157600080fd5b506102ee6104a0366004612a8d565b611144565b3480156104b157600080fd5b506102606111a3565b3480156104c657600080fd5b506102606104d5366004612958565b611217565b3480156104e657600080fd5b506102ee600f5481565b3480156104fc57600080fd5b506102cd61050b366004612a8d565b6001600160a01b03166000908152600a602052604090205460ff1690565b34801561053557600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016102a4565b34801561056757600080fd5b506102cd611318565b34801561057c57600080fd5b50610297611347565b34801561059157600080fd5b506102606105a0366004612a56565b611356565b3480156105b157600080fd5b506102cd6105c0366004612a1b565b61146c565b3480156105d157600080fd5b506102cd6105e0366004612a1b565b6114bb565b3480156105f157600080fd5b50600e546102ee565b34801561060657600080fd5b506102cd610615366004612a8d565b60076020526000908152604090205460ff1681565b34801561063657600080fd5b50610260610645366004612ae4565b6114c8565b34801561065657600080fd5b506102606115a9565b34801561066b57600080fd5b506012546105439061010090046001600160a01b031681565b34801561069057600080fd5b506012546102cd90600160b01b900460ff1681565b3480156106b157600080fd5b506102ee6106c0366004612925565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b3480156106f757600080fd5b50610260611670565b34801561070c57600080fd5b5061026061071b366004612a8d565b61173a565b34801561072c57600080fd5b5061026061073b366004612a56565b611824565b34801561074c57600080fd5b506102cd61075b366004612a8d565b6001600160a01b031660009081526008602052604090205460ff1690565b34801561078557600080fd5b506012546102cd90600160a81b900460ff1681565b6107a33361075b565b806107b157506107b1611318565b6107d65760405162461bcd60e51b81526004016107cd90612b4c565b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561081d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108419190612b99565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905291925060009185169063a9059cbb906044016020604051808303816000875af1158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba9190612bb2565b9050806109025760405162461bcd60e51b81526020600482015260166024820152754552433230207472616e73666572206661696c65642160501b60448201526064016107cd565b604080516001600160a01b0386168152602081018490527f517b987a19eede59a32f4e7dd466dee9bdf6446b24a501bdab5b60c5ef6747bf910160405180910390a150505050565b6109533361075b565b806109615750610961611318565b61097d5760405162461bcd60e51b81526004016107cd90612b4c565b601581106109cd5760405162461bcd60e51b815260206004820181905260248201527f4572726f723a206d6178206c696d69742069732032302061646472657373657360448201526064016107cd565b60005b63ffffffff8116821115610a4b5760006006600085858563ffffffff168181106109fc576109fc612bcf565b9050602002016020810190610a119190612a8d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610a4381612bfb565b9150506109d0565b505050565b606060108054610a5f90612c1e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8b90612c1e565b8015610ad85780601f10610aad57610100808354040283529160200191610ad8565b820191906000526020600020905b815481529060010190602001808311610abb57829003601f168201915b5050505050905090565b6000610aef33848461198a565b5060015b92915050565b610b02336103ac565b80610b105750610b10611318565b610b2c5760405162461bcd60e51b81526004016107cd90612c58565b6001600160a01b038216610b955760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374204d616e616765722043616e277420626520746865207a65604482015269726f206164647265737360b01b60648201526084016107cd565b6001600160a01b03821660009081526009602052604090205481151560ff909116151503610c055760405162461bcd60e51b815260206004820152601c60248201527f436f6e7472616374204d616e6167657220416c7265616479205365740000000060448201526064016107cd565b6001600160a01b038216600081815260096020908152604091829020805460ff19168515159081179091558251938452908301527fcdb87bc90fa8f07fc329977b26ecc68a329b5ffe2644acb18ddd92dfb159282991015b60405180910390a15050565b610c723361075b565b80610c805750610c80611318565b610c9c5760405162461bcd60e51b81526004016107cd90612b4c565b6001600160a01b038116610d055760405162461bcd60e51b815260206004820152602a60248201527f4d61726b6574696e672057616c6c65742043616e277420626520746865207a65604482015269726f206164647265737360b01b60648201526084016107cd565b60128054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f817d4bff561141beb16b2903ff5c3bc3b859a140279ddf19b1dad22614dd1d75906020015b60405180910390a150565b6000610d6f848484611aaf565b610dc18433610dbc85604051806060016040528060288152602001612d4f602891396001600160a01b038a1660009081526005602090815260408083203384529091529020549190611c5b565b61198a565b5060019392505050565b6000546001600160a01b03163314610df55760405162461bcd60e51b81526004016107cd90612ca1565b6012805460ff60a81b1916600160a81b179055565b6000600d54821115610e715760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016107cd565b6000610e7b611c95565b9050610e878382611cb8565b9392505050565b6000600c54851115610ee25760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016107cd565b600080610eef8686611cfa565b915091506000610f00888484611dd1565b805160208201519192509086610f1c57509350610f2892505050565b9450610f289350505050565b949350505050565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610aef918590610dbc9086611e8d565b610f6f336103ac565b80610f7d5750610f7d611318565b610f995760405162461bcd60e51b81526004016107cd90612c58565b6001600160a01b0381166000908152600a602052604090205460ff16156110025760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c7265616479206578636c75646564000000000000000060448201526064016107cd565b600b546064116110545760405162461bcd60e51b815260206004820152601960248201527f4578636c75646564206c69737420697320746f6f206c6f6e670000000000000060448201526064016107cd565b6001600160a01b038116600090815260036020526040902054156110ae576001600160a01b03811660009081526003602052604090205461109490610e0a565b6001600160a01b0382166000908152600460205260409020555b6001600160a01b0381166000818152600a60209081526040808320805460ff19166001908117909155600b805491820181559093527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990920180546001600160a01b0319168417905590519182527f6f6f36b62c3e3a776fc3052d503097ffb886d7eb4546e768132fef82747e30b99101610d57565b6001600160a01b0381166000908152600a602052604081205460ff161561118157506001600160a01b031660009081526004602052604090205490565b6001600160a01b038216600090815260036020526040902054610af390610e0a565b6000546001600160a01b031633146111cd5760405162461bcd60e51b81526004016107cd90612ca1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6112203361075b565b8061122e575061122e611318565b61124a5760405162461bcd60e51b81526004016107cd90612b4c565b6015811061129a5760405162461bcd60e51b815260206004820181905260248201527f4572726f723a206d6178206c696d69742069732032302061646472657373657360448201526064016107cd565b60005b63ffffffff8116821115610a4b5760016006600085858563ffffffff168181106112c9576112c9612bcf565b90506020020160208101906112de9190612a8d565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061131081612bfb565b91505061129d565b60003361132d6000546001600160a01b031690565b6001600160a01b0316036113415750600190565b50600090565b606060118054610a5f90612c1e565b61135f3361075b565b8061136d575061136d611318565b6113895760405162461bcd60e51b81526004016107cd90612b4c565b6001600160a01b03821660009081526007602052604090205481151560ff9091161515036114105760405162461bcd60e51b815260206004820152602e60248201527f414d4d20506169722053746174757320616c7265616479207365742e204e6f7460448201526d68696e6720746f206368616e676560901b60648201526084016107cd565b6001600160a01b038216600081815260076020908152604091829020805460ff19168515159081179091558251938452908301527f5149f98486ba112b96c3a141a926691732ea47e97d0a37c608dcef72731e7a6d9101610c5d565b6000610aef3384610dbc85604051806060016040528060258152602001612d77602591393360009081526005602090815260408083206001600160a01b038d1684529091529020549190611c5b565b6000610aef338484611aaf565b6114d13361075b565b806114df57506114df611318565b6114fb5760405162461bcd60e51b81526004016107cd90612b4c565b8047101561154b5760405162461bcd60e51b815260206004820152601860248201527f696e73756666696369656e74204554482062616c616e6365000000000000000060448201526064016107cd565b604051339082156108fc029083906000818181858888f19350505050158015611578573d6000803e3d6000fd5b506040518181527f0296f2c4dbc8c0e53c0ffab63f84aeebd5c28aa143475a37346bf15ac003f32790602001610d57565b6000546001600160a01b031633146115d35760405162461bcd60e51b81526004016107cd90612ca1565b601254600160b01b900460ff1661162c5760405162461bcd60e51b815260206004820152601d60248201527f466169726c61756e636820416c726561647920436f6d706c657465642100000060448201526064016107cd565b6012805460ff60b01b19169055604051600181527f77696137185796de0850554d2bd5d5009756360bd0d086138217983dcc02904d906020015b60405180910390a1565b6000546001600160a01b0316331461169a5760405162461bcd60e51b81526004016107cd90612ca1565b601254600160b01b900460ff16156116f45760405162461bcd60e51b815260206004820152601b60248201527f466169726c61756e636820416c726561647920656e61626c656421000000000060448201526064016107cd565b6012805461ffff60a81b191661010160a81b179055604051600181527f1410a68839e8237f162b3ccab42d3aa2c949da623e5749217f087e53d5c6e6ff90602001611666565b6000546001600160a01b031633146117645760405162461bcd60e51b81526004016107cd90612ca1565b6001600160a01b0381166117c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107cd565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61182d336103ac565b8061183b575061183b611318565b6118575760405162461bcd60e51b81526004016107cd90612c58565b6001600160a01b0382166118be5760405162461bcd60e51b815260206004820152602860248201527f436f6e74726163742041646d696e2043616e277420626520746865207a65726f604482015267206164647265737360c01b60648201526084016107cd565b6001600160a01b03821660009081526008602052604090205481151560ff90911615150361192e5760405162461bcd60e51b815260206004820152601a60248201527f436f6e74726163742041646d696e20416c72656164792053657400000000000060448201526064016107cd565b6001600160a01b038216600081815260086020908152604091829020805460ff19168515159081179091558251938452908301527f3cba41afe541f88fc8cb2b6441bc7f16474ba53dc49d0088509bd5302ab01a0d9101610c5d565b6001600160a01b0383166119ec5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107cd565b6001600160a01b038216611a4d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107cd565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611b135760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107cd565b6001600160a01b038216611b755760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107cd565b60008111611bd75760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016107cd565b6001600160a01b03831660009081526006602052604090205460ff16611c5057601254600160a81b900460ff16611c505760405162461bcd60e51b815260206004820152601860248201527f54726164696e67206e6f742079657420656e61626c656421000000000000000060448201526064016107cd565b610a4b838383611eec565b60008184841115611c7f5760405162461bcd60e51b81526004016107cd91906129cd565b506000611c8c8486612cd6565b95945050505050565b6000806000611ca261212a565b9092509050611cb18282611cb8565b9250505090565b6000610e8783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506122ac565b6001600160a01b038216600090815260066020526040812054819060ff1680611d3b57506001600160a01b03831660009081526006602052604090205460ff165b15611d4b57506000905080611dca565b6001600160a01b038316600090815260076020526040812054819060ff1615611d7957506000905080611dae565b6001600160a01b03861660009081526007602052604090205460ff1615611da65750600090506001611dae565b506001905060005b601254600160b01b900460ff1615611dc4575060635b90925090505b9250929050565b611e116040518060e00160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000611e1e8585856122da565b90506000611e3d8683602001518460400151611e38611c95565b61234c565b6040805160e0810182528251815260208084015181830152838301518284015260609384015193820193909352845160808201529184015160a0830152929092015160c083015250949350505050565b600080611e9a8385612ce9565b905083811015610e875760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016107cd565b600080611ef98585611cfa565b6001600160a01b038716600090815260066020526040902054919350915060ff1680611f3d57506001600160a01b03841660009081526006602052604090205460ff165b611fa457600f54831115611fa45760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b60648201526084016107cd565b6000611fb1848484611dd1565b9050611fc581606001518260c001516123db565b611fd781604001518260a00151612496565b6001600160a01b0386166000908152600a602052604090205460ff16801561201857506001600160a01b0385166000908152600a602052604090205460ff16155b1561202e57612029868686846124ba565b612122565b6001600160a01b0386166000908152600a602052604090205460ff1615801561206f57506001600160a01b0385166000908152600a602052604090205460ff165b1561207f576120298686836125ae565b6001600160a01b0386166000908152600a602052604090205460ff161580156120c157506001600160a01b0385166000908152600a602052604090205460ff16155b156120d15761202986868361269d565b6001600160a01b0386166000908152600a602052604090205460ff16801561211157506001600160a01b0385166000908152600a602052604090205460ff165b1561212257612122868686846126f7565b505050505050565b600d54600c546000918291825b600b5481101561227c578260036000600b848154811061215957612159612bcf565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806121c457508160046000600b848154811061219d5761219d612bcf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156121da57600d54600c54945094505050509091565b61222060036000600b84815481106121f4576121f4612bcf565b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906127be565b925061226860046000600b848154811061223c5761223c612bcf565b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906127be565b91508061227481612cfc565b915050612137565b50600c54600d5461228c91611cb8565b8210156122a357600d54600c549350935050509091565b90939092509050565b600081836122cd5760405162461bcd60e51b81526004016107cd91906129cd565b506000611c8c8486612d15565b6122fe60405180606001604052806000815260200160008152602001600081525090565b60008061230c868686612800565b909250905060006123278361232189856127be565b906127be565b6040805160608101825291825260208201939093529182019290925295945050505050565b6123776040518060800160405280600081526020016000815260200160008152602001600081525090565b60006123838684612887565b905060006123918685612887565b9050600061239f8686612887565b905060006123b18261232186866127be565b60408051608081018252958652602086019190915284019290925260608301525095945050505050565b60125461010090046001600160a01b03166000908152600360205260409020546124059083611e8d565b601280546001600160a01b03610100918290048116600090815260036020908152604080832096909655935492909204168152600a909152205460ff16156124925760125461010090046001600160a01b03166000908152600460205260409020546124719082611e8d565b60125461010090046001600160a01b03166000908152600460205260409020555b5050565b600d546124a390836127be565b600d55600e546124b39082611e8d565b600e555050565b6001600160a01b0384166000908152600460205260409020546124dd90836127be565b6001600160a01b0385166000908152600460209081526040808320939093558351600390915291902054612510916127be565b6001600160a01b038086166000908152600360209081526040808320949094558401519186168152919091205461254691611e8d565b6001600160a01b038085166000818152600360205260409081902093909355608084015192519092918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916125a091815260200190565b60405180910390a350505050565b80516001600160a01b0384166000908152600360205260409020546125d2916127be565b6001600160a01b038085166000908152600360209081526040808320949094556080850151928616825260049052919091205461260e91611e8d565b6001600160a01b0383166000908152600460209081526040808320939093558381015160039091529190205461264391611e8d565b6001600160a01b038084166000818152600360205260409081902093909355608084015192519092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91611aa291815260200190565b80516001600160a01b0384166000908152600360205260409020546126c1916127be565b6001600160a01b038085166000908152600360209081526040808320949094558401519185168152919091205461264391611e8d565b6001600160a01b03841660009081526004602052604090205461271a90836127be565b6001600160a01b038516600090815260046020908152604080832093909355835160039091529190205461274d916127be565b6001600160a01b038086166000908152600360209081526040808320949094556080850151928716825260049052919091205461278991611e8d565b6001600160a01b0384166000908152600460209081526040808320939093558381015160039091529190205461254691611e8d565b6000610e8783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611c5b565b6000808060646128108688612d37565b61281a9190612d15565b90506000606461282a8689612d37565b6128349190612d15565b601254909150600160b01b900460ff1661287b57606461285583601e612d37565b61285f9190612d15565b9150606461286e82601e612d37565b6128789190612d15565b90505b90969095509350505050565b60008260000361289957506000610af3565b60006128a58385612d37565b9050826128b28583612d15565b14610e875760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016107cd565b80356001600160a01b038116811461292057600080fd5b919050565b6000806040838503121561293857600080fd5b61294183612909565b915061294f60208401612909565b90509250929050565b6000806020838503121561296b57600080fd5b823567ffffffffffffffff8082111561298357600080fd5b818501915085601f83011261299757600080fd5b8135818111156129a657600080fd5b8660208260051b85010111156129bb57600080fd5b60209290920196919550909350505050565b600060208083528351808285015260005b818110156129fa578581018301518582016040015282016129de565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215612a2e57600080fd5b612a3783612909565b946020939093013593505050565b8015158114612a5357600080fd5b50565b60008060408385031215612a6957600080fd5b612a7283612909565b91506020830135612a8281612a45565b809150509250929050565b600060208284031215612a9f57600080fd5b610e8782612909565b600080600060608486031215612abd57600080fd5b612ac684612909565b9250612ad460208501612909565b9150604084013590509250925092565b600060208284031215612af657600080fd5b5035919050565b60008060008060808587031215612b1357600080fd5b84359350612b2360208601612909565b9250612b3160408601612909565b91506060850135612b4181612a45565b939692955090935050565b6020808252602d908201527f41646d696e3a2063616c6c6572206973206e6f74206120636f6e74726163742060408201526c20b236b4b734b9ba3930ba37b960991b606082015260800190565b600060208284031215612bab57600080fd5b5051919050565b600060208284031215612bc457600080fd5b8151610e8781612a45565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600063ffffffff808316818103612c1457612c14612be5565b6001019392505050565b600181811c90821680612c3257607f821691505b602082108103612c5257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526029908201527f4d616e616765723a2063616c6c6572206973206e6f74206120636f6e747261636040820152683a1026b0b730b3b2b960b91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b81810381811115610af357610af3612be5565b80820180821115610af357610af3612be5565b600060018201612d0e57612d0e612be5565b5060010190565b600082612d3257634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610af357610af3612be556fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209d1ff4812ca4a1084057ae704cc3d50d6b04a572f10fdb69870989a73c06b38264736f6c63430008130033

Verified Source Code Partial Match

Compiler: v0.8.19+commit.7dd6d404 EVM: paris Optimization: Yes (200 runs)
SaitamaClassic.sol 937 lines
/**

Saitama Classic
Because we love Memes!
https://saitamaclassic.com

*/

pragma solidity ^0.8.19;

// 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) {
        return payable(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;
    address private _previousOwner;
    uint256 private _lockTime;

    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;
    }
}


//    Saitama Classic

contract SaitamaClassic is Context, IERC20, Ownable {

    modifier contractAdmin() {
        require(isContractAdmin(_msgSender())  || isOwner(), "Admin: caller is not a contract Administrator");
        _;
    }

    modifier contractManager() {
        require(isContractManager(_msgSender())  || isOwner(), "Manager: caller is not a contract Manager");
        _;
    }

    using SafeMath for uint256;
    using Address for address;


    struct RValuesStruct {
        uint256 rAmount;
        uint256 rTransferAmount;
        uint256 rReflectionFee;
        uint256 rmarketingFee;
    }

    struct TValuesStruct {
        uint256 tTransferAmount;
        uint256 tReflectionFee;
        uint256 tmarketingFee;
    }

    struct ValuesStruct {
        uint256 rAmount;
        uint256 rTransferAmount;
        uint256 rReflectionFee;
        uint256 rmarketingFee;
        uint256 tTransferAmount;
        uint256 tReflectionFee;
        uint256 tmarketingFee;
    }

    mapping (address => uint256) private _rOwned;
    mapping (address => uint256) private _tOwned;
    mapping (address => mapping (address => uint256)) private _allowances;

    mapping (address => bool) private _isExcludedFromFee;
    mapping (address => bool) public automatedMarketMakerPairs;

    mapping (address => bool) private _isContractAdmin;
    mapping (address => bool) private _isContractManager;




    mapping (address => bool) private _isExcluded;
    address[] private _excluded;

    uint256 private constant MAX = ~uint256(0);
    // 100 Trillion Tokens
    uint256 private _tTotal = 100 * 10**12 * 10**18 ;
    uint256 private _rTotal = (MAX - (MAX % _tTotal));
    uint256 private _tReflectionFeeTotal;
	uint256 public _maxTxAmount = 100 * 10**9 * 10**18;

    string private _name = "Saitama Classic";
    string private _symbol = "SAITAMA";
    uint8 private _decimals = 18;

    address public marketingFeeWallet = 0xC1ccaF557Ea48Cb12B928505B24764b404707785;


    bool public tradingOpen;
    bool public fairLaunchActive;

    event ExcludeFromReward(address account);
    event ContractManagerChange(address account, bool status);
    event ContractAdminChange(address account, bool status);
    event FeesUpdated(uint8 reflectionFee, uint8 marketingFee);
    event ChangeMarketingWallet(address newAddress);
    event FairlaunchStarted(bool);
    event FairlaunchCompleted(bool);
    event ChangefeeRatioReducer(uint8 amount);
    event SetAMM(address pair, bool status);
    event ETHRecovered(uint256 amount);
    event ERC20Rescued(address tokenAddress, uint256 amount);

    constructor () {
        _rOwned[_msgSender()] = _rTotal;


        //exclude owner and this contract from fee
        _isExcludedFromFee[owner()] = true;
        _isContractAdmin[owner()] = true;
        _isContractManager[owner()] = true;
        _isExcludedFromFee[address(this)] = true;

        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) {
        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, "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 isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function totalReflectionFees() public view returns (uint256) {
        return _tReflectionFeeTotal;
    }


    function reflectionFromToken(uint256 tAmount,address sender, address recipient, bool deductTransferFee) public view returns(uint256) {
        require(tAmount <= _tTotal, "Amount must be less than supply");
        (uint256 marketingFee, uint256 reflectionFee) = _getFees(sender, recipient);

        ValuesStruct memory vs = _getValues(tAmount,marketingFee,reflectionFee);
        uint256 rAmount = vs.rAmount;
        uint256 rTransferAmount = vs.rTransferAmount;

        if (!deductTransferFee) {
            return rAmount;
        } else {
            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 excludeFromReward(address account) external contractManager() {
        require(!_isExcluded[account], "Account already excluded");
        require(_excluded.length < 100, "Excluded list is too long");
        if(_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);

        emit ExcludeFromReward(account);
    }

    //to recieve ETH from uniswapV2Router when swaping
    receive() external payable {}

    function _distributeFee(uint256 rReflectionFee, uint256 tReflectionFee) private {
        _rTotal = _rTotal.sub(rReflectionFee);
        _tReflectionFeeTotal = _tReflectionFeeTotal.add(tReflectionFee);


    }

    function _getValues(uint256 tAmount, uint256 marketingFee, uint256 reflectionFee) private view returns (ValuesStruct memory) {
        TValuesStruct memory tvs = _getTValues(tAmount, marketingFee, reflectionFee);
        RValuesStruct memory rvs = _getRValues(tAmount, tvs.tReflectionFee, tvs.tmarketingFee, _getRate()) ;

        return ValuesStruct(
            rvs.rAmount,
            rvs.rTransferAmount,
            rvs.rReflectionFee,
            rvs.rmarketingFee,
            tvs.tTransferAmount,
            tvs.tReflectionFee,
            tvs.tmarketingFee
        );
    }

    function _getTValues(uint256 tAmount, uint256 marketingFee, uint256 reflectionFee) private view returns (TValuesStruct memory) {
        (uint256 tmarketingFee, uint256 tReflectionFee) = calculateFeeAmounts(tAmount, marketingFee, reflectionFee);

        uint256 tTransferAmount = tAmount.sub(tReflectionFee).sub(tmarketingFee);
        return TValuesStruct(tTransferAmount, tReflectionFee, tmarketingFee);
    }

    function _getRValues(uint256 tAmount, uint256 tReflectionFee, uint256 tmarketingFee, uint256 currentRate) private pure returns (RValuesStruct memory) {
        uint256 rAmount = tAmount.mul(currentRate);
        uint256 rReflectionFee = tReflectionFee.mul(currentRate);
        uint256 rmarketingFee = tmarketingFee.mul(currentRate);

        uint256 rTransferAmount = rAmount.sub(rReflectionFee).sub(rmarketingFee);
        return RValuesStruct(rAmount, rTransferAmount, rReflectionFee, rmarketingFee);
    }

    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 _takeMarketingFee(uint256 rMarketingFee, uint256 tMarketingFee) private {

        _rOwned[marketingFeeWallet] = _rOwned[marketingFeeWallet].add(rMarketingFee);
        if(_isExcluded[marketingFeeWallet])
            _tOwned[marketingFeeWallet] = _tOwned[marketingFeeWallet].add(tMarketingFee);
    }

    function calculateFeeAmounts(uint256 _amount, uint256 marketingFee, uint256 reflectionFee) private view returns (uint256,uint256) {
        uint256 mFee = _amount * marketingFee / 100;
        uint256 refFee = _amount * reflectionFee / 100;
        if(!fairLaunchActive) {
            mFee = mFee * 30 / 100;
            refFee = refFee * 30 / 100;
        }
        return (mFee, refFee);
    }

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

    function isContractAdmin(address account) public view returns(bool) {
        return _isContractAdmin[account];
    }

    function isContractManager(address account) public view returns(bool) {
        return _isContractManager[account];
    }


    function isOwner() public view returns(bool) {
        if(owner() == msg.sender)
        {
            return true;
        }
        return false;
    }

    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");

        // block trading until owner has added liquidity and enabled trading
        if(!_isExcludedFromFee[from]) {
                require(tradingOpen,"Trading not yet enabled!");
            }
        //transfer amount, it will take reflections and Marketing Fee if set.
        _tokenTransfer(from,to,amount);
    }

    //this method is responsible for taking all fee, if takeFee is true
    function _tokenTransfer(address sender, address recipient, uint256 amount) private {

        (uint256 marketingFee, uint256 reflectionFee) = _getFees(sender,recipient);
		if(_isExcludedFromFee[sender] || _isExcludedFromFee[recipient])  {
          
        }
		else 
		{
			  require(amount <= _maxTxAmount, "Transfer amount exceeds the maxTxAmount.");
		}
        ValuesStruct memory vs = _getValues(amount, marketingFee, reflectionFee);
        _takeMarketingFee(vs.rmarketingFee, vs.tmarketingFee);
        _distributeFee(vs.rReflectionFee, vs.tReflectionFee);

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

    function _getFees(address sender, address recipient) private view returns(uint256, uint256) {

        if(_isExcludedFromFee[sender] || _isExcludedFromFee[recipient])  {
            return (0,0);
        }
        // Check if Transaction is a Uniswap Sale - True if Recipient is LP Contract Address

        uint256 _marketingFee;
        uint256 _reflectionFee;

        if (automatedMarketMakerPairs[recipient]) {  //sell
            _marketingFee = 0;
            _reflectionFee = 0;
        }
        else if (automatedMarketMakerPairs[sender]) { //buy
            _marketingFee = 0;
            _reflectionFee = 1;
        }
        else { //transfer
            _marketingFee = 1;
            _reflectionFee = 0;
        }

        //Only During Fair Launch there is a 99% Relection Fee Applied to transactions from non Fair Launch Approved Wallets
        if(fairLaunchActive) {
            _reflectionFee = 99;
        }

        return (_marketingFee, _reflectionFee);
    }

    function _transferStandard(address sender, address recipient, ValuesStruct memory vs) private {
        _rOwned[sender] = _rOwned[sender].sub(vs.rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount);
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

    function _transferToExcluded(address sender, address recipient, ValuesStruct memory vs) private {
        _rOwned[sender] = _rOwned[sender].sub(vs.rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(vs.tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount);
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

    function _transferFromExcluded(address sender, address recipient, uint256 tAmount, ValuesStruct memory vs) private {
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(vs.rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount);
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

    function _transferBothExcluded(address sender, address recipient, uint256 tAmount, ValuesStruct memory vs) private {
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(vs.rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(vs.tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount);
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

    function excludeFromFee(address[] calldata accounts) public contractAdmin {
        require(accounts.length < 21,"Error: max limit is 20 addresses");
        for (uint32 i = 0; i < accounts.length; i++)
            _isExcludedFromFee[accounts[i]] = true;
    }

    function setContractManager(address account, bool status) public contractManager {
        require(account != address(0), "Contract Manager Can't be the zero address");
        require(_isContractManager[account] != status, "Contract Manager Already Set");
        _isContractManager[account] = status;
        emit ContractManagerChange(account, status);
    }

    function setContractAdmin(address account, bool status) public contractManager {
        require(account != address(0), "Contract Admin Can't be the zero address");
        require(_isContractAdmin[account] != status, "Contract Admin Already Set");
        _isContractAdmin[account] = status;
        emit ContractAdminChange(account, status);
    }

    function includeInFee(address[] calldata accounts) public contractAdmin {
        require(accounts.length < 21,"Error: max limit is 20 addresses");
        for (uint32 i = 0; i < accounts.length; i++)
            _isExcludedFromFee[accounts[i]] = false;
    }

    function setmarketingWallet(address newWallet) external contractAdmin {
        require(newWallet != address(0), "Marketing Wallet Can't be the zero address");
        marketingFeeWallet = newWallet;

        emit ChangeMarketingWallet(newWallet);
    }

    function startTrading() external onlyOwner {
        tradingOpen = true;
    }

    function startFairlaunch() external onlyOwner {
        require(!fairLaunchActive, "Fairlaunch Already enabled!");
        fairLaunchActive = true;
        tradingOpen = true;
        emit FairlaunchStarted(true);
    }

    function completeFairlaunch() external onlyOwner {
        require(fairLaunchActive, "Fairlaunch Already Completed!");
        fairLaunchActive = false;
        emit FairlaunchCompleted(true);
    }


    function setAutomatedMarketMakerPair(address pair, bool status) public contractAdmin { 
        require(automatedMarketMakerPairs[pair] != status, "AMM Pair Status already set. Nothing to change");
        automatedMarketMakerPairs[pair] = status;

        emit SetAMM(pair, status);
    }
	

    /**
     * @dev Function to recover any ETH sent to Contract by Mistake.
    */
    function recoverETHFromContract(uint256 weiAmount) external contractAdmin{
        require(address(this).balance >= weiAmount, "insufficient ETH balance");
        payable(_msgSender()).transfer(weiAmount);
        emit ETHRecovered(weiAmount);
    }

    /**
     * @dev Function to recover any ERC20 Tokens sent to Contract by Mistake.
    */
    function recoverAnyERC20TokensFromContract(address tokenAddr, address to) public contractAdmin {
        uint256 amount = IERC20(tokenAddr).balanceOf(address(this));
        bool success = IERC20(tokenAddr).transfer(to, amount);
        require(success, "ERC20 transfer failed!");

        emit ERC20Rescued(tokenAddr, amount);
    }

}

Read Contract

_maxTxAmount 0x7d1db4a5 → uint256
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
fairLaunchActive 0xdba4762a → bool
isContractAdmin 0xfc81a12a → bool
isContractManager 0x306abccf → bool
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
isOwner 0x8f32d59b → bool
marketingFeeWallet 0xca02d791 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectionFromToken 0x337582a5 → uint256
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalReflectionFees 0xadbede72 → uint256
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool

Write Contract 19 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
completeFairlaunch 0xbf9f2ecc
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFee 0x71b9189c
address[] accounts
excludeFromReward 0x52390c02
address account
includeInFee 0x024022f7
address[] accounts
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
recoverAnyERC20TokensFromContract 0x01b95c1a
address tokenAddr
address to
recoverETHFromContract 0xb8d36b50
uint256 weiAmount
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool status
setContractAdmin 0xf4acc2ed
address account
bool status
setContractManager 0x22049783
address account
bool status
setmarketingWallet 0x22461173
address newWallet
startFairlaunch 0xe58a3a7a
No parameters
startTrading 0x293230b8
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address