Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x562D8e607bed7Fc183Ca84C0362c853680b99638
Balance 0 ETH
Nonce 1
Code Size 15911 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15911 bytes
0x6080604052600436106103e85760003560e01c80638da5cb5b11610208578063d257b34f11610118578063e800dff7116100ab578063f2fde38b1161007a578063f2fde38b14610b22578063f5648a4f14610b42578063f637434214610b57578063fb002c9714610b6d578063fc155d1d14610b8357600080fd5b8063e800dff714610ac1578063e884f26014610ae1578063ee40166e14610af6578063f11a24d314610b0c57600080fd5b8063e2cd5fcd116100e7578063e2cd5fcd14610a60578063e2f4560514610a75578063e71dc3f514610a8b578063e7ad9fcd14610aa157600080fd5b8063d257b34f146109c4578063d85ba063146109e4578063dc3f0d0f146109fa578063dd62ed3e14610a1a57600080fd5b8063a9059cbb1161019b578063bbc0c7421161016a578063bbc0c7421461092b578063c02466681461094a578063c18bc1951461096a578063c876d0b91461098a578063d0d41fe1146109a457600080fd5b8063a9059cbb146108af578063aa4bde28146108cf578063adb873bd146108e5578063b62496f5146108fb57600080fd5b80639fccce32116101d75780639fccce321461084d578063a0d82dc514610863578063a457c2d714610879578063a62068ce1461089957600080fd5b80638da5cb5b146107e457806395d89b41146108025780639a7a23d6146108175780639c3b4fdc1461083757600080fd5b80634f77f6c01161030357806370a08231116102965780637665fc8c116102655780637665fc8c1461073e5780637ac643881461075e5780638366e79a1461077e57806385ecfd281461079e57806388e765ff146107ce57600080fd5b806370a08231146106d4578063715018a6146106f4578063751039fc146107095780637571336a1461071e57600080fd5b806366d602ae116102d257806366d602ae146106725780636a486a8e146106885780636b0a894c1461069e5780636ddd1713146106b457600080fd5b80634f77f6c01461061a57806351f205e41461063057806358a6d531146106455780635a139dd41461065c57600080fd5b806323b872dd1161037b578063395093511161034a5780633950935114610588578063452ed4f1146105a8578063499b8394146105e05780634a62bb651461060057600080fd5b806323b872dd1461050c5780632be32b611461052c5780632e6ed7ef1461054c578063313ce5671461056c57600080fd5b8063130a2c3c116103b7578063130a2c3c146104a157806318160ddd146104c15780631a8145bb146104e05780631d777856146104f657600080fd5b806306a1409f146103f457806306fdde0314610416578063095ea7b31461044157806310d5de531461047157600080fd5b366103ef57005b600080fd5b34801561040057600080fd5b5061041461040f366004613784565b610ba3565b005b34801561042257600080fd5b5061042b610c7f565b604051610438919061379d565b60405180910390f35b34801561044d57600080fd5b5061046161045c36600461380a565b610d11565b6040519015158152602001610438565b34801561047d57600080fd5b5061046161048c366004613836565b60246020526000908152604090205460ff1681565b3480156104ad57600080fd5b506104146104bc366004613868565b610d27565b3480156104cd57600080fd5b506002545b604051908152602001610438565b3480156104ec57600080fd5b506104d260205481565b34801561050257600080fd5b506104d260225481565b34801561051857600080fd5b506104616105273660046138ee565b610dc8565b34801561053857600080fd5b50610414610547366004613784565b610e72565b34801561055857600080fd5b5061041461056736600461392f565b610f80565b34801561057857600080fd5b5060405160128152602001610438565b34801561059457600080fd5b506104616105a336600461380a565b611003565b3480156105b457600080fd5b50600a546105c8906001600160a01b031681565b6040516001600160a01b039091168152602001610438565b3480156105ec57600080fd5b506104146105fb366004613836565b61103f565b34801561060c57600080fd5b506012546104619060ff1681565b34801561062657600080fd5b506104d2601b5481565b34801561063c57600080fd5b506104146110f0565b34801561065157600080fd5b50600f544310610461565b34801561066857600080fd5b506104d260165481565b34801561067e57600080fd5b506104d260075481565b34801561069457600080fd5b506104d2601a5481565b3480156106aa57600080fd5b506104d260115481565b3480156106c057600080fd5b506012546104619062010000900460ff1681565b3480156106e057600080fd5b506104d26106ef366004613836565b611203565b34801561070057600080fd5b5061041461121e565b34801561071557600080fd5b50610414611292565b34801561072a57600080fd5b50610414610739366004613961565b6112fd565b34801561074a57600080fd5b50610414610759366004613a70565b6113c6565b34801561076a57600080fd5b506009546105c8906001600160a01b031681565b34801561078a57600080fd5b50610461610799366004613b32565b611526565b3480156107aa57600080fd5b506104616107b9366004613836565b60106020526000908152604090205460ff1681565b3480156107da57600080fd5b506104d260065481565b3480156107f057600080fd5b506005546001600160a01b03166105c8565b34801561080e57600080fd5b5061042b61172f565b34801561082357600080fd5b50610414610832366004613961565b61173e565b34801561084357600080fd5b506104d260185481565b34801561085957600080fd5b506104d260215481565b34801561086f57600080fd5b506104d2601d5481565b34801561088557600080fd5b5061046161089436600461380a565b611832565b3480156108a557600080fd5b506104d2600f5481565b3480156108bb57600080fd5b506104616108ca36600461380a565b6118cb565b3480156108db57600080fd5b506104d260085481565b3480156108f157600080fd5b506104d2601e5481565b34801561090757600080fd5b50610461610916366004613836565b60256020526000908152604090205460ff1681565b34801561093757600080fd5b5060125461046190610100900460ff1681565b34801561095657600080fd5b50610414610965366004613961565b6118d8565b34801561097657600080fd5b50610414610985366004613784565b611961565b34801561099657600080fd5b506014546104619060ff1681565b3480156109b057600080fd5b506104146109bf366004613836565b611a6b565b3480156109d057600080fd5b506104146109df366004613784565b611b0d565b3480156109f057600080fd5b506104d260155481565b348015610a0657600080fd5b50610414610a15366004613784565b611c58565b348015610a2657600080fd5b506104d2610a35366004613b32565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a6c57600080fd5b50610414611d60565b348015610a8157600080fd5b506104d2600b5481565b348015610a9757600080fd5b506104d260195481565b348015610aad57600080fd5b50610414610abc36600461392f565b611e4b565b348015610acd57600080fd5b50610414610adc366004613961565b611ece565b348015610aed57600080fd5b50610414611f23565b348015610b0257600080fd5b506104d2600e5481565b348015610b1857600080fd5b506104d260175481565b348015610b2e57600080fd5b50610414610b3d366004613836565b611f59565b348015610b4e57600080fd5b50610414612044565b348015610b6357600080fd5b506104d2601c5481565b348015610b7957600080fd5b506104d2601f5481565b348015610b8f57600080fd5b50610414610b9e366004613784565b6120b0565b6005546001600160a01b03163314610bd65760405162461bcd60e51b8152600401610bcd90613b60565b60405180910390fd5b601254610100900460ff1615610c2e5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742072652d64697361626c652074726164696e67000000000000006044820152606401610bcd565b6012805462ffff0019166201010017905543600e819055610c50908290613bab565b600f556040517fa56feb2d31b9a7424db0be063fd450863979c9e2382cf5110f869bd1ad361bb790600090a150565b606060038054610c8e90613bc3565b80601f0160208091040260200160405190810160405280929190818152602001828054610cba90613bc3565b8015610d075780601f10610cdc57610100808354040283529160200191610d07565b820191906000526020600020905b815481529060010190602001808311610cea57829003601f168201915b5050505050905090565b6000610d1e3384846122dc565b50600192915050565b6005546001600160a01b03163314610d515760405162461bcd60e51b8152600401610bcd90613b60565b60005b82811015610dc2578160106000868685818110610d7357610d73613bfd565b9050602002016020810190610d889190613836565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610dba81613c13565b915050610d54565b50505050565b6000610dd5848484612401565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610e5a5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610bcd565b610e6785338584036122dc565b506001949350505050565b6005546001600160a01b03163314610e9c5760405162461bcd60e51b8152600401610bcd90613b60565b670de0b6b3a76400006103e8610eb160025490565b610ebc906002613c2c565b610ec69190613c4b565b610ed09190613c4b565b811015610f325760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152697468616e20302e32252160b01b6064820152608401610bcd565b610f4481670de0b6b3a7640000613c2c565b60068190556040519081527ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009906020015b60405180910390a150565b6005546001600160a01b03163314610faa5760405162461bcd60e51b8152600401610bcd90613b60565b60168490556017839055601882905560198190558082610fca8587613bab565b610fd49190613bab565b610fde9190613bab565b6015819055601e1015610dc25760405162461bcd60e51b8152600401610bcd90613c6d565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610d1e91859061103a908690613bab565b6122dc565b6005546001600160a01b031633146110695760405162461bcd60e51b8152600401610bcd90613b60565b6001600160a01b0381166110ce5760405162461bcd60e51b815260206004820152602660248201527f5f6f7065726174696f6e734164647265737320616464726573732063616e6e6f60448201526507420626520360d41b6064820152608401610bcd565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461111a5760405162461bcd60e51b8152600401610bcd90613b60565b600b5461112630611203565b10156111a65760405162461bcd60e51b815260206004820152604360248201527f43616e206f6e6c792073776170207768656e20746f6b656e20616d6f756e742060448201527f6973206d6f7265207468616e207265737472696374696f6e20286f7220657175606482015262616c2960e81b608482015260a401610bcd565b600a805460ff60a01b1916600160a01b1790556111c1612fb6565b600a805460ff60a01b191690556040514281527f1b56c383f4f48fc992e45667ea4eabae777b9cca68b516a9562d8cda78f1bb329060200160405180910390a1565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b031633146112485760405162461bcd60e51b8152600401610bcd90613b60565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146112bc5760405162461bcd60e51b8152600401610bcd90613b60565b6012805460ff199081169091556014805490911690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b6005546001600160a01b031633146113275760405162461bcd60e51b8152600401610bcd90613b60565b8061139b57600a546001600160a01b039081169083160361139b5760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f742072656d6f766520556e697377617020706169722066726f6d206044820152676d61782074786e2160c01b6064820152608401610bcd565b6001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146113f05760405162461bcd60e51b8152600401610bcd90613b60565b80518251146114415760405162461bcd60e51b815260206004820152601f60248201527f417272617973206d757374206265207468652073616d65206c656e67746821006044820152606401610bcd565b6102588251106114b95760405162461bcd60e51b815260206004820152603760248201527f43616e206f6e6c792061697264726f70203630302077616c6c6574732070657260448201527f2074786e2064756520746f20676173206c696d697473210000000000000000006064820152608401610bcd565b60005b82518110156115215760008382815181106114d9576114d9613bfd565b6020026020010151905060008383815181106114f7576114f7613bfd565b6020026020010151905061150c3383836131f5565b5050808061151990613c13565b9150506114bc565b505050565b6005546000906001600160a01b031633146115535760405162461bcd60e51b8152600401610bcd90613b60565b6001600160a01b0383166115a95760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610bcd565b306001600160a01b038416036116015760405162461bcd60e51b815260206004820152601c60248201527f43616e2774207769746864726177206e617469766520746f6b656e73000000006044820152606401610bcd565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015611648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166c9190613ca4565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303816000875af11580156116bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e39190613cbd565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b606060048054610c8e90613bc3565b6005546001600160a01b031633146117685760405162461bcd60e51b8152600401610bcd90613b60565b600a546001600160a01b03908116908316036117ec5760405162461bcd60e51b815260206004820152603a60248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273210000000000006064820152608401610bcd565b6117f682826133c4565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156118b45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bcd565b6118c133858584036122dc565b5060019392505050565b6000610d1e338484612401565b6005546001600160a01b031633146119025760405162461bcd60e51b8152600401610bcd90613b60565b6001600160a01b038216600081815260236020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b0316331461198b5760405162461bcd60e51b8152600401610bcd90613b60565b670de0b6b3a76400006103e86119a060025490565b6119ab906003613c2c565b6119b59190613c4b565b6119bf9190613c4b565b811015611a245760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526c6572207468616e20302e33252160981b6064820152608401610bcd565b611a3681670de0b6b3a7640000613c2c565b60088190556040519081527fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc90602001610f75565b6005546001600160a01b03163314611a955760405162461bcd60e51b8152600401610bcd90613b60565b6001600160a01b038116611aeb5760405162461bcd60e51b815260206004820152601f60248201527f5f6465764164647265737320616464726573732063616e6e6f742062652030006044820152606401610bcd565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611b375760405162461bcd60e51b8152600401610bcd90613b60565b620186a0611b4460025490565b611b4f906001613c2c565b611b599190613c4b565b811015611bc65760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527420302e3030312520746f74616c20737570706c792160581b6064820152608401610bcd565b6103e8611bd260025490565b611bdd906001613c2c565b611be79190613c4b565b811115611c535760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f7420626520686967686572207468616044820152736e20302e312520746f74616c20737570706c792160601b6064820152608401610bcd565b600b55565b6005546001600160a01b03163314611c825760405162461bcd60e51b8152600401610bcd90613b60565b670de0b6b3a76400006103e8611c9760025490565b611ca2906002613c2c565b611cac9190613c4b565b611cb69190613c4b565b811015611d195760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f77657260448201526a207468616e20302e32252160a81b6064820152608401610bcd565b611d2b81670de0b6b3a7640000613c2c565b60078190556040519081527f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e90602001610f75565b6005546001600160a01b03163314611d8a5760405162461bcd60e51b8152600401610bcd90613b60565b6064601b8190556000601c819055601d819055601e819055908190611db0908290613bab565b611dba9190613bab565b611dc49190613bab565b601a819055601e1015611de95760405162461bcd60e51b8152600401610bcd90613c6d565b61012c60168190556000601781905560188190556019819055908190611e10908290613bab565b611e1a9190613bab565b611e249190613bab565b6015819055601e1015611e495760405162461bcd60e51b8152600401610bcd90613c6d565b565b6005546001600160a01b03163314611e755760405162461bcd60e51b8152600401610bcd90613b60565b601b849055601c839055601d829055601e8190558082611e958587613bab565b611e9f9190613bab565b611ea99190613bab565b601a819055601e1015610dc25760405162461bcd60e51b8152600401610bcd90613c6d565b6005546001600160a01b03163314611ef85760405162461bcd60e51b8152600401610bcd90613b60565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b6005546001600160a01b03163314611f4d5760405162461bcd60e51b8152600401610bcd90613b60565b6014805460ff19169055565b6005546001600160a01b03163314611f835760405162461bcd60e51b8152600401610bcd90613b60565b6001600160a01b038116611fe85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bcd565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461206e5760405162461bcd60e51b8152600401610bcd90613b60565b604051600090339047908381818185875af1925050503d8060008114610dc2576040519150601f19603f3d011682016040523d82523d6000602084013e610dc2565b6005546001600160a01b031633146120da5760405162461bcd60e51b8152600401610bcd90613b60565b678ac7230489e800008111156121505760405162461bcd60e51b815260206004820152603560248201527f4d6179206e6f7420627579206d6f7265207468616e2031302045544820746f206044820152747265647563652061747461636b207375726661636560581b6064820152608401610bcd565b6040805160028082526060820183526000926020830190803683375050600954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156121ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121de9190613cda565b816000815181106121f1576121f1613bfd565b60200260200101906001600160a01b031690816001600160a01b031681525050308160018151811061222557612225613bfd565b6001600160a01b03928316602091820292909201015260095460405163b6f9de9560e01b815291169063b6f9de9590849061226d90600090869061dead904290600401613d3b565b6000604051808303818588803b15801561228657600080fd5b505af115801561229a573d6000803e3d6000fd5b50505050507fa017c1567cfcdd2d750a8c01e39fe2a846bcebc293c7d078477014d684820568826040516122d091815260200190565b60405180910390a15050565b6001600160a01b03831661233e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bcd565b6001600160a01b03821661239f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bcd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166124665760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015265323932b9b99760d11b6064820152608401610bcd565b6001600160a01b0382166124c85760405162461bcd60e51b8152602060048201526024808201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526332b9b99760e11b6064820152608401610bcd565b600081116125185760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206d7573742062652067726561746572207468616e20302e00006044820152606401610bcd565b601254610100900460ff166125ab576001600160a01b03831660009081526023602052604090205460ff168061256657506001600160a01b03821660009081526023602052604090205460ff165b6125ab5760405162461bcd60e51b815260206004820152601660248201527554726164696e67206973206e6f74206163746976652160501b6044820152606401610bcd565b600f541561267b576001600160a01b03831660009081526010602052604090205460ff1615806125e857506005546001600160a01b038381169116145b806125fd57506001600160a01b03821661dead145b61267b5760405162461bcd60e51b815260206004820152604360248201527f426f74732063616e6e6f74207472616e7366657220746f6b656e7320696e206f60448201527f72206f75742065786365707420746f206f776e65722f6465616420616464726560648201526273732160e81b608482015260a401610bcd565b60125460ff1615612a7f576005546001600160a01b038481169116148015906126b257506005546001600160a01b03838116911614155b80156126c657506001600160a01b03821615155b80156126dd57506001600160a01b03821661dead14155b801561270257506001600160a01b03831660009081526023602052604090205460ff16155b801561272757506001600160a01b03821660009081526023602052604090205460ff16155b15612a7f5760145460ff1615612848576009546001600160a01b038381169116148015906127635750600a546001600160a01b03838116911614155b1561284857612773600243613d70565b326000908152601360205260409020541080156127b15750612796600243613d70565b6001600160a01b038316600090815260136020526040902054105b6128235760405162461bcd60e51b815260206004820152603c60248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e2020506c656173652074727920616761696e206c617465722e000000006064820152608401610bcd565b3260009081526013602052604080822043908190556001600160a01b03851683529120555b6001600160a01b03831660009081526025602052604090205460ff16801561288957506001600160a01b03821660009081526024602052604090205460ff16155b15612955576006548111156128f15760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e74206578636565647320746865206044820152676d6178206275792160c01b6064820152608401610bcd565b6008546128fd83611203565b6129079083613bab565b11156129505760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610bcd565b612a7f565b6001600160a01b03821660009081526025602052604090205460ff16801561299657506001600160a01b03831660009081526024602052604090205460ff16155b15612a00576007548111156129505760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e74206578636565647320746865604482015269206d61782073656c6c2160b01b6064820152608401610bcd565b6001600160a01b03821660009081526024602052604090205460ff16612a7f57600854612a2c83611203565b612a369083613bab565b1115612a7f5760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610bcd565b6000612a8a30611203565b600b5490915081108015908190612aa9575060125462010000900460ff165b8015612abf5750600a54600160a01b900460ff16155b8015612ae457506001600160a01b03851660009081526025602052604090205460ff16155b8015612b0957506001600160a01b03851660009081526023602052604090205460ff16155b8015612b2e57506001600160a01b03841660009081526023602052604090205460ff16155b15612b5c57600a805460ff60a01b1916600160a01b179055612b4e612fb6565b600a805460ff60a01b191690555b6001600160a01b03851660009081526023602052604090205460019060ff1680612b9e57506001600160a01b03851660009081526023602052604090205460ff165b15612ba7575060005b60008115612fa257600f5443108015612bd857506001600160a01b03871660009081526025602052604090205460ff165b8015612bfd57506001600160a01b03861660009081526025602052604090205460ff16155b8015612c0b57506000601554115b15612d8b576001600160a01b03861660009081526010602052604090205460ff16612cab576001600160a01b0386166000908152601060205260408120805460ff191660019081179091556011805491929091612c69908490613bab565b90915550506040516001600160a01b03871681527f55678e47d0a699d3ab99b0184c4ff14f2246ba80522deb921aa0c8823578c44a9060200160405180910390a15b6064612cb8866063613c2c565b612cc29190613c4b565b905060155460175482612cd59190613c2c565b612cdf9190613c4b565b60206000828254612cf09190613bab565b9091555050601554601654612d059083613c2c565b612d0f9190613c4b565b601f6000828254612d209190613bab565b9091555050601554601854612d359083613c2c565b612d3f9190613c4b565b60216000828254612d509190613bab565b9091555050601554601954612d659083613c2c565b612d6f9190613c4b565b60226000828254612d809190613bab565b90915550612f849050565b6001600160a01b03861660009081526025602052604090205460ff168015612db557506000601a54115b15612e77576064601a5486612dca9190613c2c565b612dd49190613c4b565b9050601a54601c5482612de79190613c2c565b612df19190613c4b565b60206000828254612e029190613bab565b9091555050601a54601b54612e179083613c2c565b612e219190613c4b565b601f6000828254612e329190613bab565b9091555050601a54601d54612e479083613c2c565b612e519190613c4b565b60216000828254612e629190613bab565b9091555050601a54601e54612d659083613c2c565b6001600160a01b03871660009081526025602052604090205460ff168015612ea157506000601554115b15612f8457606460155486612eb69190613c2c565b612ec09190613c4b565b905060155460175482612ed39190613c2c565b612edd9190613c4b565b60206000828254612eee9190613bab565b9091555050601554601654612f039083613c2c565b612f0d9190613c4b565b601f6000828254612f1e9190613bab565b9091555050601554601854612f339083613c2c565b612f3d9190613c4b565b60216000828254612f4e9190613bab565b9091555050601554601954612f639083613c2c565b612f6d9190613c4b565b60226000828254612f7e9190613bab565b90915550505b8015612f9557612f958730836131f5565b612f9f8186613d70565b94505b612fad8787876131f5565b50505050505050565b6000602254118015612fd25750602254612fcf30611203565b10155b15612fe357612fe3306022546133f2565b60006022819055612ff330611203565b90506000602154601f5460205461300a9190613bab565b6130149190613bab565b9050811580613021575080155b1561302a575050565b600b54613038906014613c2c565b82111561305057600b5461304d906014613c2c565b91505b600080600283602054866130649190613c2c565b61306e9190613c4b565b6130789190613c4b565b905061308c6130878286613d70565b61351c565b602054479081906000906130a290600290613c4b565b6130ac9087613d70565b601f546130b99085613c2c565b6130c39190613c4b565b9050600060026020546130d69190613c4b565b6130e09088613d70565b6021546130ed9086613c2c565b6130f79190613c4b565b90506131038183613bab565b61310d9084613d70565b60006020819055601f8190556021819055602255925084158015906131325750600083115b15613141576131418584613676565b600d546040516001600160a01b03909116908290600081818185875af1925050503d806000811461318e576040519150601f19603f3d011682016040523d82523d6000602084013e613193565b606091505b5050600c546040519197506001600160a01b0316904790600081818185875af1925050503d80600081146131e3576040519150601f19603f3d011682016040523d82523d6000602084013e6131e8565b606091505b5050505050505050505050565b6001600160a01b0383166132595760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610bcd565b6001600160a01b0382166132bb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610bcd565b6001600160a01b038316600090815260208190526040902054818110156133335760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610bcd565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061336a908490613bab565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516133b691815260200190565b60405180910390a350505050565b6001600160a01b0382166000908152602560205260409020805460ff19168215151790556117f68282613728565b6001600160a01b0382166134525760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610bcd565b6001600160a01b038216600090815260208190526040902054818110156134c65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610bcd565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016123f4565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061355157613551613bfd565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156135aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ce9190613cda565b816001815181106135e1576135e1613bfd565b6001600160a01b03928316602091820292909201015260095461360791309116846122dc565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac94790613640908590600090869030904290600401613d87565b600060405180830381600087803b15801561365a57600080fd5b505af115801561366e573d6000803e3d6000fd5b505050505050565b60095461368e9030906001600160a01b0316846122dc565b60095460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af11580156136fc573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906137219190613dc3565b5050505050565b6001600160a01b038216600081815260246020908152604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd674691016122d0565b60006020828403121561379657600080fd5b5035919050565b600060208083528351808285015260005b818110156137ca578581018301518582016040015282016137ae565b818111156137dc576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461380757600080fd5b50565b6000806040838503121561381d57600080fd5b8235613828816137f2565b946020939093013593505050565b60006020828403121561384857600080fd5b8135613853816137f2565b9392505050565b801515811461380757600080fd5b60008060006040848603121561387d57600080fd5b833567ffffffffffffffff8082111561389557600080fd5b818601915086601f8301126138a957600080fd5b8135818111156138b857600080fd5b8760208260051b85010111156138cd57600080fd5b602092830195509350508401356138e38161385a565b809150509250925092565b60008060006060848603121561390357600080fd5b833561390e816137f2565b9250602084013561391e816137f2565b929592945050506040919091013590565b6000806000806080858703121561394557600080fd5b5050823594602084013594506040840135936060013592509050565b6000806040838503121561397457600080fd5b823561397f816137f2565b9150602083013561398f8161385a565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156139d9576139d961399a565b604052919050565b600067ffffffffffffffff8211156139fb576139fb61399a565b5060051b60200190565b600082601f830112613a1657600080fd5b81356020613a2b613a26836139e1565b6139b0565b82815260059290921b84018101918181019086841115613a4a57600080fd5b8286015b84811015613a655780358352918301918301613a4e565b509695505050505050565b60008060408385031215613a8357600080fd5b823567ffffffffffffffff80821115613a9b57600080fd5b818501915085601f830112613aaf57600080fd5b81356020613abf613a26836139e1565b82815260059290921b84018101918181019089841115613ade57600080fd5b948201945b83861015613b05578535613af6816137f2565b82529482019490820190613ae3565b96505086013592505080821115613b1b57600080fd5b50613b2885828601613a05565b9150509250929050565b60008060408385031215613b4557600080fd5b8235613b50816137f2565b9150602083013561398f816137f2565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613bbe57613bbe613b95565b500190565b600181811c90821680613bd757607f821691505b602082108103613bf757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600060018201613c2557613c25613b95565b5060010190565b6000816000190483118215151615613c4657613c46613b95565b500290565b600082613c6857634e487b7160e01b600052601260045260246000fd5b500490565b6020808252601e908201527f4d757374206b656570206665657320617420333025206f72206c657373210000604082015260600190565b600060208284031215613cb657600080fd5b5051919050565b600060208284031215613ccf57600080fd5b81516138538161385a565b600060208284031215613cec57600080fd5b8151613853816137f2565b600081518084526020808501945080840160005b83811015613d305781516001600160a01b031687529582019590820190600101613d0b565b509495945050505050565b848152608060208201526000613d546080830186613cf7565b6001600160a01b03949094166040830152506060015292915050565b600082821015613d8257613d82613b95565b500390565b85815284602082015260a060408201526000613da660a0830186613cf7565b6001600160a01b0394909416606083015250608001529392505050565b600080600060608486031215613dd857600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220d9c2e5652a7849340c59d51843d62ec5d9863a58cae1af29af0154bf56e8bc0064736f6c634300080f0033

Verified Source Code Partial Match

Compiler: v0.8.15+commit.e14f2714 EVM: london Optimization: Yes (200 runs)
Rewardz.sol 683 lines
/**
 _ __ _____      ____ _ _ __ __| |____  
| '__/ _ \ \ /\ / / _` | '__/ _` |_  /  
| | |  __/\ V  V / (_| | | | (_| |/ /   
|_|  \___| \_/\_/ \__,_|_|  \__,_/___|  
 _ __   ___| |___      _____  _ __| | __
| '_ \ / _ \ __\ \ /\ / / _ \| '__| |/ /
| | | |  __/ |_ \ V  V / (_) | |  |   < 
|_| |_|\___|\__| \_/\_/ \___/|_|  |_|\_\

Telegram: https://t.me/rewardznetwork
Website: https://rewardz.network

*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.15;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
    function _msgData() internal view virtual returns (bytes calldata) {
        this;
        return msg.data;
    }
}

interface IERC20 {
    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);
}

interface IERC20Metadata is IERC20 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
}

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    uint256 private _totalSupply;
    string private _name;
    string private _symbol;
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }
    function name() public view virtual override returns (string memory) {
        return _name;
    }
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }
        return true;
    }
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }
        return true;
    }
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;
        emit Transfer(sender, recipient, amount);
    }
    function _createInitialSupply(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");
        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }
        emit Transfer(account, address(0), amount);
    }
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }
}
contract Ownable is Context {
    address private _owner;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }
    function owner() public view returns (address) {
        return _owner;
    }
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }
    function renounceOwnership() external virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface GutterRouter {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        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 addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );
}
interface GutterFactory {
    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
}
contract Rewardz is ERC20, Ownable {

    uint256 public maxBuyAmount;
    uint256 public maxSellAmount;
    uint256 public maxWalletAmount;

    GutterRouter public raynRouter;
    address public lpPair;

    bool private swapping;
    uint256 public swapTokensAtAmount;

    address operationsAddress;
    address devAddress;

    uint256 public tradingActiveBlock = 0;
    uint256 public blockForPenaltyEnd;
    mapping (address => bool) public boughtEarly;
    uint256 public botsCaught;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;

    mapping(address => uint256) private _holderLastTransferTimestamp;
    bool public transferDelayEnabled = true;

    uint256 public buyTotalFees;
    uint256 public buyOperationsFee;
    uint256 public buyLiquidityFee;
    uint256 public buyDevFee;
    uint256 public buyBurnFee;

    uint256 public sellTotalFees;
    uint256 public sellOperationsFee;
    uint256 public sellLiquidityFee;
    uint256 public sellDevFee;
    uint256 public sellBurnFee;

    uint256 public tokensForOperations;
    uint256 public tokensForLiquidity;
    uint256 public tokensForDev;
    uint256 public tokensForBurn;

    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;

    mapping (address => bool) public automatedMarketMakerPairs;

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event EnabledTrading();

    event RemovedLimits();

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event UpdatedMaxBuyAmount(uint256 newAmount);

    event UpdatedMaxSellAmount(uint256 newAmount);

    event UpdatedMaxWalletAmount(uint256 newAmount);

    event UpdatedOperationsAddress(address indexed newWallet);

    event MaxTransactionExclusion(address _address, bool excluded);

    event BuyBackTriggered(uint256 amount);

    event OwnerForcedSwapBack(uint256 timestamp);

    event CaughtEarlyBuyer(address sniper);

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    event TransferForeignToken(address token, uint256 amount);

    constructor() ERC20("Rewardz Automated Yield Network", "RAYN") {

        address newOwner = msg.sender;

        GutterRouter _raynRouter = GutterRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        raynRouter = _raynRouter;

        lpPair = GutterFactory(_raynRouter.factory()).createPair(address(this), _raynRouter.WETH());
        _excludeFromMaxTransaction(address(lpPair), true);
        _setAutomatedMarketMakerPair(address(lpPair), true);

        uint256 totalSupply = 1 * 1e11 * 1e18;

        maxBuyAmount = totalSupply * 1 / 100;
        maxSellAmount = totalSupply * 1 / 100;
        maxWalletAmount = totalSupply * 2 / 100;
        swapTokensAtAmount = totalSupply * 5 / 10000;

        buyOperationsFee = 5;
        buyLiquidityFee = 0;
        buyDevFee = 5;
        buyBurnFee = 0;
        buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;

        sellOperationsFee = 24;
        sellLiquidityFee = 1;
        sellDevFee = 5;
        sellBurnFee = 0;
        sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;

        _excludeFromMaxTransaction(newOwner, true);
        _excludeFromMaxTransaction(address(this), true);
        _excludeFromMaxTransaction(address(0xdead), true);

        excludeFromFees(newOwner, true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);

        operationsAddress = address(newOwner);
        devAddress = address(newOwner);

        _createInitialSupply(newOwner, totalSupply);
        transferOwnership(newOwner);
    }
    receive() external payable {}

    function startTrading(uint256 blockJump) external onlyOwner {
        require(!tradingActive, "Cannot re-disable trading");
        tradingActive = true;
        swapEnabled = true;
        tradingActiveBlock = block.number;
        blockForPenaltyEnd = tradingActiveBlock + blockJump;
        emit EnabledTrading();
    }

    function removeLimits() external onlyOwner {
        limitsInEffect = false;
        transferDelayEnabled = false;
        emit RemovedLimits();
    }

    function manageBoughtEarly(address wallet, bool flag) external onlyOwner {
        boughtEarly[wallet] = flag;
    }

    function massManageBoughtEarly(address[] calldata wallets, bool flag) external onlyOwner {
        for(uint256 i = 0; i < wallets.length; i++){
            boughtEarly[wallets[i]] = flag;
        }
    }

    function disableTransferDelay() external onlyOwner {
        transferDelayEnabled = false;
    }

    function updateMaxBuyAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max buy amount lower than 0.2%!");
        maxBuyAmount = newNum * (10**18);
        emit UpdatedMaxBuyAmount(maxBuyAmount);
    }

    function updateMaxSellAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max sell amount lower than 0.2%!");
        maxSellAmount = newNum * (10**18);
        emit UpdatedMaxSellAmount(maxSellAmount);
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 3 / 1000)/1e18, "Cannot set max wallet amount lower than 0.3%!");
        maxWalletAmount = newNum * (10**18);
        emit UpdatedMaxWalletAmount(maxWalletAmount);
    }

    // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner {
  	    require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply!");
  	    require(newAmount <= totalSupply() * 1 / 1000, "Swap amount cannot be higher than 0.1% total supply!");
  	    swapTokensAtAmount = newAmount;
  	}

    function _excludeFromMaxTransaction(address updAds, bool isExcluded) private {
        _isExcludedMaxTransactionAmount[updAds] = isExcluded;
        emit MaxTransactionExclusion(updAds, isExcluded);
    }

    function raynDrop(address[] memory wallets, uint256[] memory amountsInTokens) external onlyOwner {
        require(wallets.length == amountsInTokens.length, "Arrays must be the same length!");
        require(wallets.length < 600, "Can only airdrop 600 wallets per txn due to gas limits!");
        for(uint256 i = 0; i < wallets.length; i++){
            address wallet = wallets[i];
            uint256 amount = amountsInTokens[i];
            super._transfer(msg.sender, wallet, amount);
        }
    }

    function excludeFromMaxTransaction(address updAds, bool isEx) external onlyOwner {
        if(!isEx){
            require(updAds != lpPair, "Cannot remove Uniswap pair from max txn!");
        }
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner {
        require(pair != lpPair, "The pair cannot be removed from automatedMarketMakerPairs!");

        _setAutomatedMarketMakerPair(pair, value);
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
        _excludeFromMaxTransaction(pair, value);
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateBuyFees(uint256 _operationsFee, uint256 _liquidityFee, uint256 _DevFee, uint256 _burnFee) external onlyOwner {
        buyOperationsFee = _operationsFee;
        buyLiquidityFee = _liquidityFee;
        buyDevFee = _DevFee;
        buyBurnFee = _burnFee;
        buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
        require(buyTotalFees <= 30, "Must keep fees at 30% or less!");
    }

    function updateSellFees(uint256 _operationsFee, uint256 _liquidityFee, uint256 _DevFee, uint256 _burnFee) external onlyOwner {
        sellOperationsFee = _operationsFee;
        sellLiquidityFee = _liquidityFee;
        sellDevFee = _DevFee;
        sellBurnFee = _burnFee;
        sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
        require(sellTotalFees <= 30, "Must keep fees at 30% or less!");
    }

    function returnToNormalTax() external onlyOwner {
        sellOperationsFee = 100;
        sellLiquidityFee = 0;
        sellDevFee = 0;
        sellBurnFee = 0;
        sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
        require(sellTotalFees <= 30, "Must keep fees at 30% or less!");

        buyOperationsFee = 300;
        buyLiquidityFee = 0;
        buyDevFee = 0;
        buyBurnFee = 0;
        buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
        require(buyTotalFees <= 30, "Must keep fees at 30% or less!");
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function _transfer(address from, address to, uint256 amount) internal override {
        require(from != address(0), "ERC20: transfer from the zero address.");
        require(to != address(0), "ERC20: transfer to the zero address.");
        require(amount > 0, "Amount must be greater than 0.");

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

        if(blockForPenaltyEnd > 0){
            require(!boughtEarly[from] || to == owner() || to == address(0xdead), "Bots cannot transfer tokens in or out except to owner/dead address!");
        }

        if(limitsInEffect){
            if (from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
                if (transferDelayEnabled){
                    if (to != address(raynRouter) && to != address(lpPair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number - 2 && _holderLastTransferTimestamp[to] < block.number - 2, "_transfer:: Transfer Delay enabled.  Please try again later.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                        _holderLastTransferTimestamp[to] = block.number;
                    }
                }

                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxBuyAmount, "Buy transfer amount exceeds the max buy!");
                        require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max wallet");
                }

                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxSellAmount, "Sell transfer amount exceeds the max sell!");
                }
                else if (!_isExcludedMaxTransactionAmount[to]){
                    require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max wallet");
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if(canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
            swapping = true;
            swapBack();
            swapping = false;
        }

        bool takeFee = true;
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        if(takeFee){
            if(earlyBuyPenaltyInEffect() && automatedMarketMakerPairs[from] && !automatedMarketMakerPairs[to] && buyTotalFees > 0){
                // anti-bot
                if(!boughtEarly[to]){
                    boughtEarly[to] = true;
                    botsCaught += 1;
                    emit CaughtEarlyBuyer(to);
                }
                fees = amount * 99 / 100;
        	    tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForOperations += fees * buyOperationsFee / buyTotalFees;
                tokensForDev += fees * buyDevFee / buyTotalFees;
                tokensForBurn += fees * buyBurnFee / buyTotalFees;
            }
            else if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
                fees = amount * sellTotalFees / 100;
                tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                tokensForOperations += fees * sellOperationsFee / sellTotalFees;
                tokensForDev += fees * sellDevFee / sellTotalFees;
                tokensForBurn += fees * sellBurnFee / sellTotalFees;
            }
            else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
        	    fees = amount * buyTotalFees / 100;
        	    tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForOperations += fees * buyOperationsFee / buyTotalFees;
                tokensForDev += fees * buyDevFee / buyTotalFees;
                tokensForBurn += fees * buyBurnFee / buyTotalFees;
            }
            if(fees > 0){
                super._transfer(from, address(this), fees);
            }
        	amount -= fees;
        }
        super._transfer(from, to, amount);
    }

    function earlyBuyPenaltyInEffect() public view returns (bool){
        return block.number < blockForPenaltyEnd;
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = raynRouter.WETH();
        _approve(address(this), address(raynRouter), tokenAmount);
        raynRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        _approve(address(this), address(raynRouter), tokenAmount);
        raynRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            0,
            address(0xdead),
            block.timestamp
        );
    }

    function swapBack() private {

        if(tokensForBurn > 0 && balanceOf(address(this)) >= tokensForBurn) {
            _burn(address(this), tokensForBurn);
        }
        tokensForBurn = 0;

        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForOperations + tokensForDev;

        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}

        if(contractBalance > swapTokensAtAmount * 20){
            contractBalance = swapTokensAtAmount * 20;
        }

        bool success;

        uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;

        swapTokensForEth(contractBalance - liquidityTokens);

        uint256 ethBalance = address(this).balance;
        uint256 ethForLiquidity = ethBalance;

        uint256 ethForOperations = ethBalance * tokensForOperations / (totalTokensToSwap - (tokensForLiquidity/2));
        uint256 ethForDev = ethBalance * tokensForDev / (totalTokensToSwap - (tokensForLiquidity/2));

        ethForLiquidity -= ethForOperations + ethForDev;

        tokensForLiquidity = 0;
        tokensForOperations = 0;
        tokensForDev = 0;
        tokensForBurn = 0;

        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
        }

        (success,) = address(devAddress).call{value: ethForDev}("");

        (success,) = address(operationsAddress).call{value: address(this).balance}("");
    }

    function transferForeignToken(address _token, address _to) external onlyOwner returns (bool _sent) {
        require(_token != address(0), "_token address cannot be 0");
        require(_token != address(this), "Can't withdraw native tokens");
        uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
        _sent = IERC20(_token).transfer(_to, _contractBalance);
        emit TransferForeignToken(_token, _contractBalance);
    }

    function withdrawStuckETH() external onlyOwner {
        bool success;
        (success,) = address(msg.sender).call{value: address(this).balance}("");
    }

    function setOperationsAddress(address _operationsAddress) external onlyOwner {
        require(_operationsAddress != address(0), "_operationsAddress address cannot be 0");
        operationsAddress = payable(_operationsAddress);
    }

    function setDevAddress(address _devAddress) external onlyOwner {
        require(_devAddress != address(0), "_devAddress address cannot be 0");
        devAddress = payable(_devAddress);
    }

    function forceSwapBack() external onlyOwner {
        require(balanceOf(address(this)) >= swapTokensAtAmount, "Can only swap when token amount is more than restriction (or equal)");
        swapping = true;
        swapBack();
        swapping = false;
        emit OwnerForcedSwapBack(block.timestamp);
    }

    function buyBackTokens(uint256 amountInWei) external onlyOwner {
        require(amountInWei <= 10 ether, "May not buy more than 10 ETH to reduce attack surface");

        address[] memory path = new address[](2);
        path[0] = raynRouter.WETH();
        path[1] = address(this);

        raynRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountInWei}(
            0,
            path,
            address(0xdead),
            block.timestamp
        );
        emit BuyBackTriggered(amountInWei);
    }
}

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
blockForPenaltyEnd 0xa62068ce → uint256
botsCaught 0x6b0a894c → uint256
boughtEarly 0x85ecfd28 → bool
buyBurnFee 0xe71dc3f5 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyOperationsFee 0x5a139dd4 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
earlyBuyPenaltyInEffect 0x58a6d531 → bool
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
raynRouter 0x7ac64388 → address
sellBurnFee 0xadb873bd → uint256
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellOperationsFee 0x4f77f6c0 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForBurn 0x1d777856 → uint256
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
transferDelayEnabled 0xc876d0b9 → bool

Write Contract 29 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
buyBackTokens 0xfc155d1d
uint256 amountInWei
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
forceSwapBack 0x51f205e4
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manageBoughtEarly 0xe800dff7
address wallet
bool flag
massManageBoughtEarly 0x130a2c3c
address[] wallets
bool flag
raynDrop 0x7665fc8c
address[] wallets
uint256[] amountsInTokens
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
returnToNormalTax 0xe2cd5fcd
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setDevAddress 0xd0d41fe1
address _devAddress
setOperationsAddress 0x499b8394
address _operationsAddress
startTrading 0x06a1409f
uint256 blockJump
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x2e6ed7ef
uint256 _operationsFee
uint256 _liquidityFee
uint256 _DevFee
uint256 _burnFee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xe7ad9fcd
uint256 _operationsFee
uint256 _liquidityFee
uint256 _DevFee
uint256 _burnFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters

Recent Transactions

No transactions found for this address