Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x54DeBE126da16A8fCAa67285d6830C3A7C6752fd
Balance 0.726766 ETH
Nonce 1
Code Size 12680 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

12680 bytes
0x60806040526004361061039b5760003560e01c80637571336a116101dc578063a457c2d711610102578063d85ba063116100a0578063f11a24d31161006f578063f11a24d314610ab1578063f2fde38b14610ac7578063f637434214610ae7578063f8b45b0514610afd57600080fd5b8063d85ba06314610a1f578063dd62ed3e14610a35578063e7ad9fcd14610a7b578063ee40166e14610a9b57600080fd5b8063b62496f5116100dc578063b62496f514610999578063bbc0c742146109c9578063c0246668146109e9578063c8c8ebe414610a0957600080fd5b8063a457c2d714610939578063a9059cbb14610959578063aacebbe31461097957600080fd5b8063921369131161017a5780639a7a23d6116101495780639a7a23d6146108d75780639c3b4fdc146108f75780639fccce321461090d578063a0d82dc51461092357600080fd5b8063921369131461086c578063924de9b714610882578063955b225b146108a257806395d89b41146108c257600080fd5b80637dd72e8d116101b65780637dd72e8d146108045780638a8c523c146108195780638da5cb5b1461082e5780638ea5220f1461084c57600080fd5b80637571336a146107ae57806375f0a874146107ce5780637bce5a04146107ee57600080fd5b80632307b441116102c15780634a62bb651161025f5780636ddd17131161022e5780636ddd17131461072d57806370a082311461074e578063715018a614610784578063751039fc1461079957600080fd5b80634a62bb651461069d5780634c24c51d146106bc5780634fbee193146106de5780636a486a8e1461071757600080fd5b80632e6ed7ef1161029b5780632e6ed7ef14610607578063313ce56714610627578063395093511461064957806349bd5a5e1461066957600080fd5b80632307b441146105b157806323b872dd146105d157806327c8f835146105f157600080fd5b806318160ddd116103395780631c499ab0116103085780631c499ab0146105455780631cd348c0146105655780631f3fed8f146105855780631fe70a981461059b57600080fd5b806318160ddd146104e45780631816467f146104f95780631a221dbb146105195780631a8145bb1461052f57600080fd5b80630b166d50116103755780630b166d5014610424578063106b5da11461044857806310d5de53146104685780631694505e1461049857600080fd5b806306e7b14d146103a757806306fdde03146103c9578063095ea7b3146103f457600080fd5b366103a257005b600080fd5b3480156103b357600080fd5b506103c76103c23660046129d4565b610b13565b005b3480156103d557600080fd5b506103de610ba3565b6040516103eb91906129f1565b60405180910390f35b34801561040057600080fd5b5061041461040f366004612a46565b610c35565b60405190151581526020016103eb565b34801561043057600080fd5b5061043a601a5481565b6040519081526020016103eb565b34801561045457600080fd5b506103c7610463366004612a72565b610c4c565b34801561047457600080fd5b506104146104833660046129d4565b601c6020526000908152604090205460ff1681565b3480156104a457600080fd5b506104cc7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016103eb565b3480156104f057600080fd5b5060025461043a565b34801561050557600080fd5b506103c76105143660046129d4565b610cf1565b34801561052557600080fd5b5061043a60165481565b34801561053b57600080fd5b5061043a60185481565b34801561055157600080fd5b506103c7610560366004612a72565b610d78565b34801561057157600080fd5b506008546104cc906001600160a01b031681565b34801561059157600080fd5b5061043a60175481565b3480156105a757600080fd5b5061043a60115481565b3480156105bd57600080fd5b506104146105cc366004612b61565b610e1d565b3480156105dd57600080fd5b506104146105ec366004612c23565b610ffc565b3480156105fd57600080fd5b506104cc61dead81565b34801561061357600080fd5b506103c7610622366004612c64565b61105b565b34801561063357600080fd5b50600b5460405160ff90911681526020016103eb565b34801561065557600080fd5b50610414610664366004612a46565b611114565b34801561067557600080fd5b506104cc7f0000000000000000000000003f96fd489468e1527f653676441c8e3968f5b40e81565b3480156106a957600080fd5b50600b5461041490610100900460ff1681565b3480156106c857600080fd5b50600b5461041490640100000000900460ff1681565b3480156106ea57600080fd5b506104146106f93660046129d4565b6001600160a01b03166000908152601b602052604090205460ff1690565b34801561072357600080fd5b5061043a60125481565b34801561073957600080fd5b50600b54610414906301000000900460ff1681565b34801561075a57600080fd5b5061043a6107693660046129d4565b6001600160a01b031660009081526020819052604090205490565b34801561079057600080fd5b506103c761114a565b3480156107a557600080fd5b506104146111be565b3480156107ba57600080fd5b506103c76107c9366004612cab565b6111fc565b3480156107da57600080fd5b506006546104cc906001600160a01b031681565b3480156107fa57600080fd5b5061043a600e5481565b34801561081057600080fd5b506103c7611251565b34801561082557600080fd5b506103c7611291565b34801561083a57600080fd5b506005546001600160a01b03166104cc565b34801561085857600080fd5b506007546104cc906001600160a01b031681565b34801561087857600080fd5b5061043a60135481565b34801561088e57600080fd5b506103c761089d366004612ce0565b6112d4565b3480156108ae57600080fd5b506103c76108bd366004612ce0565b61131c565b3480156108ce57600080fd5b506103de611366565b3480156108e357600080fd5b506103c76108f2366004612cab565b611375565b34801561090357600080fd5b5061043a60105481565b34801561091957600080fd5b5061043a60195481565b34801561092f57600080fd5b5061043a60155481565b34801561094557600080fd5b50610414610954366004612a46565b611455565b34801561096557600080fd5b50610414610974366004612a46565b6114a4565b34801561098557600080fd5b506103c76109943660046129d4565b6114b1565b3480156109a557600080fd5b506104146109b43660046129d4565b601d6020526000908152604090205460ff1681565b3480156109d557600080fd5b50600b546104149062010000900460ff1681565b3480156109f557600080fd5b506103c7610a04366004612cab565b611538565b348015610a1557600080fd5b5061043a60095481565b348015610a2b57600080fd5b5061043a600d5481565b348015610a4157600080fd5b5061043a610a50366004612cfb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a8757600080fd5b506103c7610a96366004612c64565b6115c1565b348015610aa757600080fd5b5061043a600c5481565b348015610abd57600080fd5b5061043a600f5481565b348015610ad357600080fd5b506103c7610ae23660046129d4565b611674565b348015610af357600080fd5b5061043a60145481565b348015610b0957600080fd5b5061043a600a5481565b6005546001600160a01b03163314610b465760405162461bcd60e51b8152600401610b3d90612d34565b60405180910390fd5b6008546040516001600160a01b03918216918316907f15e571905a1c816ac9ad091c2b82079da1ad3668d345e3894c424c5e5b47d97b90600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b606060038054610bb290612d69565b80601f0160208091040260200160405190810160405280929190818152602001828054610bde90612d69565b8015610c2b5780601f10610c0057610100808354040283529160200191610c2b565b820191906000526020600020905b815481529060010190602001808311610c0e57829003601f168201915b5050505050905090565b6000610c423384846117c5565b5060015b92915050565b6005546001600160a01b03163314610c765760405162461bcd60e51b8152600401610b3d90612d34565b600b54610c879060ff16600a612e9e565b6064610c9260025490565b610c9d906001612ead565b610ca79190612ecc565b610cb19190612ecc565b811015610cd05760405162461bcd60e51b8152600401610b3d90612eee565b600b54610ce19060ff16600a612e9e565b610ceb9082612ead565b60095550565b6005546001600160a01b03163314610d1b5760405162461bcd60e51b8152600401610b3d90612d34565b6007546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610da25760405162461bcd60e51b8152600401610b3d90612d34565b600b54610db39060ff16600a612e9e565b6064610dbe60025490565b610dc9906001612ead565b610dd39190612ecc565b610ddd9190612ecc565b811015610dfc5760405162461bcd60e51b8152600401610b3d90612eee565b600b54610e0d9060ff16600a612e9e565b610e179082612ead565b600a5550565b6005546000906001600160a01b03163314610e4a5760405162461bcd60e51b8152600401610b3d90612d34565b600b5462010000900460ff1615610ec95760405162461bcd60e51b815260206004820152603760248201527f54726164696e6720697320616c7265616479206163746976652c2063616e6e6f60448201527f742061697264726f70206166746572206c61756e63682e0000000000000000006064820152608401610b3d565b8151835114610f1a5760405162461bcd60e51b815260206004820152601e60248201527f617272617973206d757374206265207468652073616d65206c656e67746800006044820152606401610b3d565b60c8835110610f8a5760405162461bcd60e51b815260206004820152603660248201527f43616e206f6e6c792061697264726f70203230302077616c6c657473207065726044820152752074786e2064756520746f20676173206c696d69747360501b6064820152608401610b3d565b60005b8351811015610ff2576000848281518110610faa57610faa612f3b565b602002602001015190506000848381518110610fc857610fc8612f3b565b60200260200101519050610fdd3383836118ea565b50508080610fea90612f51565b915050610f8d565b5060019392505050565b60006110098484846118ea565b610ff2843361105685604051806060016040528060288152602001613106602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190612162565b6117c5565b6005546001600160a01b031633146110855760405162461bcd60e51b8152600401610b3d90612d34565b600e849055600f8390556010829055601181905580826110a58587612f6c565b6110af9190612f6c565b6110b99190612f6c565b600d819055600a101561110e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610b3d565b50505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610c42918590611056908661175f565b6005546001600160a01b031633146111745760405162461bcd60e51b8152600401610b3d90612d34565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546000906001600160a01b031633146111eb5760405162461bcd60e51b8152600401610b3d90612d34565b50600b805461ff0019169055600190565b6005546001600160a01b031633146112265760405162461bcd60e51b8152600401610b3d90612d34565b6001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b6005546001600160a01b0316331461127b5760405162461bcd60e51b8152600401610b3d90612d34565b6000601881905560178190556019819055601a55565b6005546001600160a01b031633146112bb5760405162461bcd60e51b8152600401610b3d90612d34565b600b805463ffff00001916630101000017905543600c55565b6005546001600160a01b031633146112fe5760405162461bcd60e51b8152600401610b3d90612d34565b600b805491151563010000000263ff00000019909216919091179055565b6005546001600160a01b031633146113465760405162461bcd60e51b8152600401610b3d90612d34565b600b80549115156401000000000264ff0000000019909216919091179055565b606060048054610bb290612d69565b6005546001600160a01b0316331461139f5760405162461bcd60e51b8152600401610b3d90612d34565b7f0000000000000000000000003f96fd489468e1527f653676441c8e3968f5b40e6001600160a01b0316826001600160a01b031614156114475760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610b3d565b611451828261219c565b5050565b6000610c4233846110568560405180606001604052806025815260200161312e602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190612162565b6000610c423384846118ea565b6005546001600160a01b031633146114db5760405162461bcd60e51b8152600401610b3d90612d34565b6006546040516001600160a01b03918216918316907fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567490600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115625760405162461bcd60e51b8152600401610b3d90612d34565b6001600160a01b0382166000818152601b6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146115eb5760405162461bcd60e51b8152600401610b3d90612d34565b6013849055601483905560158290556016819055808261160b8587612f6c565b6116159190612f6c565b61161f9190612f6c565b6012819055600a101561110e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610b3d565b6005546001600160a01b0316331461169e5760405162461bcd60e51b8152600401610b3d90612d34565b6001600160a01b0381166117035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b3d565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b60008061176c8385612f6c565b9050838110156117be5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610b3d565b9392505050565b6001600160a01b0383166118275760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b3d565b6001600160a01b0382166118885760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b3d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166119105760405162461bcd60e51b8152600401610b3d90612f84565b6001600160a01b0382166119365760405162461bcd60e51b8152600401610b3d90612fc9565b600b5462010000900460ff166119ca576001600160a01b0383166000908152601b602052604090205460ff168061198557506001600160a01b0382166000908152601b602052604090205460ff165b6119ca5760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610b3d565b806119e0576119db838360006121f0565b505050565b600b54610100900460ff1615611cf0576005546001600160a01b03848116911614801590611a1c57506005546001600160a01b03838116911614155b8015611a3057506001600160a01b03821615155b8015611a4757506001600160a01b03821661dead14155b8015611a8f57506001600160a01b0383166000908152601b602052604090205460ff1680611a8d57506001600160a01b0382166000908152601b602052604090205460ff165b155b8015611aa55750600554600160a01b900460ff16155b15611cf0576001600160a01b0383166000908152601d602052604090205460ff168015611aeb57506001600160a01b0382166000908152601c602052604090205460ff16155b15611bcf57600954811115611b605760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610b3d565b600a546001600160a01b038316600090815260208190526040902054611b869083612f6c565b1115611bca5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610b3d565b611cf0565b6001600160a01b0382166000908152601d602052604090205460ff168015611c1057506001600160a01b0383166000908152601c602052604090205460ff16155b15611c8657600954811115611bca5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610b3d565b600a546001600160a01b038316600090815260208190526040902054611cac9083612f6c565b1115611cf05760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610b3d565b3060009081526020819052604090205480158015908190611d1a5750600b546301000000900460ff165b8015611d305750600554600160a01b900460ff16155b8015611d5557506001600160a01b0385166000908152601d602052604090205460ff16155b8015611d7a57506001600160a01b0385166000908152601b602052604090205460ff16155b8015611d9f57506001600160a01b0384166000908152601b602052604090205460ff16155b15611dcd576005805460ff60a01b1916600160a01b179055611dbf6122f9565b6005805460ff60a01b191690555b6005546001600160a01b0386166000908152601b602052604090205460ff600160a01b909204821615911680611e1b57506001600160a01b0385166000908152601b602052604090205460ff165b15611e24575060005b6000811561214e5743600c54148015611e7757506001600160a01b0386166000908152601d602052604090205460ff1680611e7757506001600160a01b0387166000908152601d602052604090205460ff165b15611f2357611e926064611e8c8760636125cf565b9061264e565b90506063611ea1826021612ead565b611eab9190612ecc565b60186000828254611ebc9190612f6c565b9091555060639050611ecf826021612ead565b611ed99190612ecc565b601a6000828254611eea9190612f6c565b9091555060639050611efd826021612ead565b611f079190612ecc565b60176000828254611f189190612f6c565b909155506121309050565b6001600160a01b0386166000908152601d602052604090205460ff1615612029576012541561202457611f666064611e8c601254886125cf90919063ffffffff16565b905060125460145482611f799190612ead565b611f839190612ecc565b60186000828254611f949190612f6c565b9091555050601254601554611fa99083612ead565b611fb39190612ecc565b60196000828254611fc49190612f6c565b9091555050601254601354611fd99083612ead565b611fe39190612ecc565b60176000828254611ff49190612f6c565b90915550506012546016546120099083612ead565b6120139190612ecc565b601a6000828254611f189190612f6c565b612130565b6001600160a01b0387166000908152601d602052604090205460ff161561213057600d54156121305761206c6064611e8c600d54886125cf90919063ffffffff16565b9050600d54600f548261207f9190612ead565b6120899190612ecc565b6018600082825461209a9190612f6c565b9091555050600d546010546120af9083612ead565b6120b99190612ecc565b601960008282546120ca9190612f6c565b9091555050600d54600e546120df9083612ead565b6120e99190612ecc565b601760008282546120fa9190612f6c565b9091555050600d5460115461210f9083612ead565b6121199190612ecc565b601a600082825461212a9190612f6c565b90915550505b8015612141576121418730836121f0565b61214b818661300c565b94505b6121598787876121f0565b50505050505050565b600081848411156121865760405162461bcd60e51b8152600401610b3d91906129f1565b506000612193848661300c565b95945050505050565b6001600160a01b0382166000818152601d6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b0383166122165760405162461bcd60e51b8152600401610b3d90612f84565b6001600160a01b03821661223c5760405162461bcd60e51b8152600401610b3d90612fc9565b612279816040518060600160405280602681526020016130e0602691396001600160a01b0386166000908152602081905260409020549190612162565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546122a8908261175f565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016118dd565b30600090815260208190526040902054600b54640100000000900460ff161561233d57801561233a5760065461233a9030906001600160a01b0316836121f0565b50565b6000601a546019546017546018546123559190612f6c565b61235f9190612f6c565b6123699190612f6c565b90506000821580612378575081155b1561238257505050565b6000600283601854866123959190612ead565b61239f9190612ecc565b6123a99190612ecc565b905060006123b78583612690565b9050476123c3826126d2565b60006123cf4783612690565b905060006123ec87611e8c601754856125cf90919063ffffffff16565b9050600061240988611e8c601954866125cf90919063ffffffff16565b9050600061242689611e8c601a54876125cf90919063ffffffff16565b905060008183612436868861300c565b612440919061300c565b61244a919061300c565b6000601881905560178190556019819055601a8190556007546040519293506001600160a01b031691859181818185875af1925050503d80600081146124ac576040519150601f19603f3d011682016040523d82523d6000602084013e6124b1565b606091505b5050600854604051919a506001600160a01b0316908390600081818185875af1925050503d8060008114612501576040519150601f19603f3d011682016040523d82523d6000602084013e612506565b606091505b5090995050871580159061251a5750600081115b1561256d5761252988826128a1565b601854604080518981526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6006546040516001600160a01b03909116904790600081818185875af1925050503d80600081146125ba576040519150601f19603f3d011682016040523d82523d6000602084013e6125bf565b606091505b5050505050505050505050505050565b6000826125de57506000610c46565b60006125ea8385612ead565b9050826125f78583612ecc565b146117be5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610b3d565b60006117be83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612991565b60006117be83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612162565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061270757612707612f3b565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561278057600080fd5b505afa158015612794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127b89190613023565b816001815181106127cb576127cb612f3b565b60200260200101906001600160a01b031690816001600160a01b031681525050612816307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846117c5565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac9479061286b908590600090869030904290600401613040565b600060405180830381600087803b15801561288557600080fd5b505af1158015612899573d6000803e3d6000fd5b505050505050565b6128cc307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846117c5565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03169063f305d71990839060c4016060604051808303818588803b15801561295157600080fd5b505af193505050508015612982575060408051601f3d908101601f1916820190925261297f918101906130b1565b60015b61298a575050565b5050505050565b600081836129b25760405162461bcd60e51b8152600401610b3d91906129f1565b5060006121938486612ecc565b6001600160a01b038116811461233a57600080fd5b6000602082840312156129e657600080fd5b81356117be816129bf565b600060208083528351808285015260005b81811015612a1e57858101830151858201604001528201612a02565b81811115612a30576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215612a5957600080fd5b8235612a64816129bf565b946020939093013593505050565b600060208284031215612a8457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612aca57612aca612a8b565b604052919050565b600067ffffffffffffffff821115612aec57612aec612a8b565b5060051b60200190565b600082601f830112612b0757600080fd5b81356020612b1c612b1783612ad2565b612aa1565b82815260059290921b84018101918181019086841115612b3b57600080fd5b8286015b84811015612b565780358352918301918301612b3f565b509695505050505050565b60008060408385031215612b7457600080fd5b823567ffffffffffffffff80821115612b8c57600080fd5b818501915085601f830112612ba057600080fd5b81356020612bb0612b1783612ad2565b82815260059290921b84018101918181019089841115612bcf57600080fd5b948201945b83861015612bf6578535612be7816129bf565b82529482019490820190612bd4565b96505086013592505080821115612c0c57600080fd5b50612c1985828601612af6565b9150509250929050565b600080600060608486031215612c3857600080fd5b8335612c43816129bf565b92506020840135612c53816129bf565b929592945050506040919091013590565b60008060008060808587031215612c7a57600080fd5b5050823594602084013594506040840135936060013592509050565b80358015158114612ca657600080fd5b919050565b60008060408385031215612cbe57600080fd5b8235612cc9816129bf565b9150612cd760208401612c96565b90509250929050565b600060208284031215612cf257600080fd5b6117be82612c96565b60008060408385031215612d0e57600080fd5b8235612d19816129bf565b91506020830135612d29816129bf565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612d7d57607f821691505b60208210811415612d9e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115612df5578160001904821115612ddb57612ddb612da4565b80851615612de857918102915b93841c9390800290612dbf565b509250929050565b600082612e0c57506001610c46565b81612e1957506000610c46565b8160018114612e2f5760028114612e3957612e55565b6001915050610c46565b60ff841115612e4a57612e4a612da4565b50506001821b610c46565b5060208310610133831016604e8410600b8410161715612e78575081810a610c46565b612e828383612dba565b8060001904821115612e9657612e96612da4565b029392505050565b60006117be60ff841683612dfd565b6000816000190483118215151615612ec757612ec7612da4565b500290565b600082612ee957634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602d908201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060408201526c6c6f776572207468616e20312560981b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612f6557612f65612da4565b5060010190565b60008219821115612f7f57612f7f612da4565b500190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60008282101561301e5761301e612da4565b500390565b60006020828403121561303557600080fd5b81516117be816129bf565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156130905784516001600160a01b03168352938301939183019160010161306b565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156130c657600080fd5b835192506020840151915060408401519050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f14aad783ea495284b1bc10d1c4b13f151e27042e6ba8555288087a9cf7b128164736f6c63430008090033

Verified Source Code Partial Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: Yes (200 runs)
Steve.sol 1314 lines
// SPDX-License-Identifier: MIT                                                                               
                                                    
pragma solidity ^0.8.9;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

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

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

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

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}


contract ERC20 is Context, IERC20, IERC20Metadata {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    
    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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



library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }


    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}


interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

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

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

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

contract Steve is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    address public constant deadAddress = address(0xdead);

    bool private swapping;

    address public marketingWallet;
    address public devWallet;
    address public buyBackWallet;
    
    uint256 public maxTransactionAmount;
    uint256 public maxWallet;
    uint8 private _decimals;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;
    bool public rescueSwap = false;
    
    uint256 public tradingActiveBlock;
        
    uint256 public buyTotalFees;
    uint256 public buyMarketingFee;
    uint256 public buyLiquidityFee;
    uint256 public buyDevFee;
    uint256 public buyBuyBackFee;
    
    uint256 public sellTotalFees;
    uint256 public sellMarketingFee;
    uint256 public sellLiquidityFee;
    uint256 public sellDevFee;
    uint256 public sellBuyBackFee;
    
    uint256 public tokensForMarketing;
    uint256 public tokensForLiquidity;
    uint256 public tokensForDev;
    uint256 public tokensForBuyBack;
    
    /******************/

    // exlcude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;

    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);

    event ExcludeFromFees(address indexed account, bool isExcluded);

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

    event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet);
    
    event devWalletUpdated(address indexed newWallet, address indexed oldWallet);
    
    event buyBackWalletUpdated(address indexed newWallet, address indexed oldWallet);

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

    event BuyBackTriggered(uint256 amount);
    
    event OwnerForcedSwapBack(uint256 timestamp);

    constructor() ERC20("Steve", "Steve") {

        address _owner = 0xF036064D74386409D9eA44F35AD0AedF33fC3949;

        _decimals = 9;

        uint256 totalSupply = 420690000000000 * (10**_decimals);
        
        maxTransactionAmount = totalSupply * 3 / 100; // 3% maxTransactionAmountTxn
        maxWallet = totalSupply * 4 / 100; // 4% maxWallet

        buyMarketingFee = 0;
        buyLiquidityFee = 0;
        buyDevFee = 0;
        buyBuyBackFee = 0;
        buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee + buyBuyBackFee;
        
        sellMarketingFee = 0;
        sellLiquidityFee = 0;
        sellDevFee = 0;
        sellBuyBackFee = 0;
        sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee + sellBuyBackFee;

        marketingWallet = address(0xb4A4EE33439051A74f17C8f9eF911546575d3C31); // set as marketing wallet
    	devWallet = address(0xb4A4EE33439051A74f17C8f9eF911546575d3C31); // set as dev wallet
    	buyBackWallet = address(0xb4A4EE33439051A74f17C8f9eF911546575d3C31); // set as buyBackWallet


        address currentRouter;
        
        //Adding Variables for all the routers for easier deployment for our customers.
        if (block.chainid == 56) {
            currentRouter = 0x10ED43C718714eb63d5aA57B78B54704E256024E; // PCS Router
        } else if (block.chainid == 97) {
            currentRouter = 0xD99D1c33F9fC3444f8101754aBC46c52416550D1; // PCS Testnet
        } else if (block.chainid == 43114) {
            currentRouter = 0x60aE616a2155Ee3d9A68541Ba4544862310933d4; //Avax Mainnet
        } else if (block.chainid == 137) {
            currentRouter = 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff; //Polygon Ropsten
        } else if (block.chainid == 250) {
            currentRouter = 0xF491e7B69E4244ad4002BC14e878a34207E38c29; //SpookySwap FTM
        } else if (block.chainid == 3) {
            currentRouter = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; //Ropsten
        } else if (block.chainid == 1 || block.chainid == 4) {
            currentRouter = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; //Mainnet
        } else {
            revert();
        }

        //End of Router Variables.

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(currentRouter);

        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
        
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        // exclude from paying fees or having max transaction amount
        excludeFromFees(_owner, true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        
        excludeFromMaxTransaction(_owner, true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        
        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(_owner, totalSupply);
        transferOwnership(_owner);
    }

    receive() external payable {

  	}

    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
        tradingActiveBlock = block.number;
    }
    
    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool){
        limitsInEffect = false;
        return true;
    }
    
    function airdropToWallets(address[] memory airdropWallets, uint256[] memory amounts) external onlyOwner returns (bool){
        require(!tradingActive, "Trading is already active, cannot airdrop after launch.");
        require(airdropWallets.length == amounts.length, "arrays must be the same length");
        require(airdropWallets.length < 200, "Can only airdrop 200 wallets per txn due to gas limits"); // allows for airdrop + launch at the same exact time, reducing delays and reducing sniper input.
        for(uint256 i = 0; i < airdropWallets.length; i++){
            address wallet = airdropWallets[i];
            uint256 amount = amounts[i];
            _transfer(msg.sender, wallet, amount);
        }
        return true;
    }
    
    function updateMaxAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 100)/(10**_decimals), "Cannot set maxTransactionAmount lower than 1%");
        maxTransactionAmount = newNum * (10**_decimals);
    }
    
    function updateMaxWallet(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 100)/(10**_decimals), "Cannot set maxTransactionAmount lower than 1%");
        maxWallet= newNum * (10**_decimals);
    }
    
    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    function decimals() public view override returns (uint8) {
        return _decimals;
    }
    
    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner(){
        swapEnabled = enabled;
    }

    // only use this to disable swapback and send tax in form of tokens
    function updateRescueSwap(bool enabled) external onlyOwner(){
        rescueSwap = enabled;
    }
    
    function updateBuyFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _devFee, uint256 _buyBackFee) external onlyOwner {
        buyMarketingFee = _marketingFee;
        buyLiquidityFee = _liquidityFee;
        buyDevFee = _devFee;
        buyBuyBackFee = _buyBackFee;
        buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee + buyBuyBackFee;
        require(buyTotalFees <= 10, "Must keep fees at 10% or less");
    }
    
    function updateSellFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _devFee, uint256 _buyBackFee) external onlyOwner {
        sellMarketingFee = _marketingFee;
        sellLiquidityFee = _liquidityFee;
        sellDevFee = _devFee;
        sellBuyBackFee = _buyBackFee;
        sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee + sellBuyBackFee;
        require(sellTotalFees <= 10, "Must keep fees at 10% or less");
    }

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

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

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

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateMarketingWallet(address newMarketingWallet) external onlyOwner {
        emit marketingWalletUpdated(newMarketingWallet, marketingWallet);
        marketingWallet = newMarketingWallet;
    }
    
    function updateDevWallet(address newWallet) external onlyOwner {
        emit devWalletUpdated(newWallet, devWallet);
        devWallet = newWallet;
    }
    
    function updateBuyBackWallet(address newWallet) external onlyOwner {
        emit buyBackWalletUpdated(newWallet, buyBackWallet);
        buyBackWallet = newWallet;
    }
    

    function isExcludedFromFees(address account) external view returns(bool) {
        return _isExcludedFromFees[account];
    }
    
    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");
        if(!tradingActive){
            require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
        }
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
        
        if(limitsInEffect){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !(_isExcludedFromFees[from] || _isExcludedFromFees[to]) &&
                !swapping
            ){
                 
                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                        require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
                
                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else {
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
            }
        }
        
		uint256 contractTokenBalance = balanceOf(address(this));
        
        bool canSwap = contractTokenBalance > 0;

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

            swapping = false;
        }
        
        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }
        
        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if(takeFee){
            
            if(tradingActiveBlock == block.number && (automatedMarketMakerPairs[to] || automatedMarketMakerPairs[from])){
                fees = amount.mul(99).div(100);
                tokensForLiquidity += fees * 33 / 99;
                tokensForBuyBack += fees * 33 / 99;
                tokensForMarketing += fees * 33 / 99;
            }
            // on sell
            else if (automatedMarketMakerPairs[to]){
                if (sellTotalFees > 0){
                    fees = amount.mul(sellTotalFees).div(100);
                    tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                    tokensForDev += fees * sellDevFee / sellTotalFees;
                    tokensForMarketing += fees * sellMarketingFee / sellTotalFees;
                    tokensForBuyBack += fees * sellBuyBackFee / sellTotalFees;
                }
            }
            // on buy
            else if(automatedMarketMakerPairs[from]) {
                if (buyTotalFees > 0){
                    fees = amount.mul(buyTotalFees).div(100);
                    tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                    tokensForDev += fees * buyDevFee / buyTotalFees;
                    tokensForMarketing += fees * buyMarketingFee / buyTotalFees;
                    tokensForBuyBack += fees * buyBuyBackFee / buyTotalFees;
                }
            }
            
            if(fees > 0){    
                super._transfer(from, address(this), fees);
            }
        	
        	amount -= fees;
        }

        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {

        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
        
    }
    
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        try uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            deadAddress,
            block.timestamp
        ) {} catch {}
    }

    function resetTaxAmount() public onlyOwner {
        tokensForLiquidity = 0;
        tokensForMarketing = 0;
        tokensForDev = 0;
        tokensForBuyBack = 0;
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));

        if (rescueSwap){
            if (contractBalance > 0){
                super._transfer(address(this), marketingWallet, contractBalance);
            }
            return;
        }

        uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing + tokensForDev + tokensForBuyBack;
        bool success;
        
        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
        
        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
        
        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(amountToSwapForETH); 
        
        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        
        uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
        uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);
        uint256 ethForBuyBack = ethBalance.mul(tokensForBuyBack).div(totalTokensToSwap);
        
        uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev - ethForBuyBack;
        
        tokensForLiquidity = 0;
        tokensForMarketing = 0;
        tokensForDev = 0;
        tokensForBuyBack = 0;
        
        (success,) = address(devWallet).call{value: ethForDev}("");
        (success,) = address(buyBackWallet).call{value: ethForBuyBack}("");
        
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
        }
        
        (success,) = address(marketingWallet).call{value: address(this).balance}("");
        
    }
}

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyBackWallet 0x1cd348c0 → address
buyBuyBackFee 0x1fe70a98 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
rescueSwap 0x4c24c51d → bool
sellBuyBackFee 0x1a221dbb → uint256
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
symbol 0x95d89b41 → string
tokensForBuyBack 0x0b166d50 → uint256
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 23 functions

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

airdropToWallets 0x2307b441
address[] airdropWallets
uint256[] amounts
returns: bool
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
resetTaxAmount 0x7dd72e8d
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyBackWallet 0x06e7b14d
address newWallet
updateBuyFees 0x2e6ed7ef
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
uint256 _buyBackFee
updateDevWallet 0x1816467f
address newWallet
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxAmount 0x106b5da1
uint256 newNum
updateMaxWallet 0x1c499ab0
uint256 newNum
updateRescueSwap 0x955b225b
bool enabled
updateSellFees 0xe7ad9fcd
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
uint256 _buyBackFee
updateSwapEnabled 0x924de9b7
bool enabled

Recent Transactions

No transactions found for this address