Address Contract Partially Verified
Address
0x0bf44e6e722Fe72Eb0F13C35A11ae4eAF495B578
Balance
0 ETH
Nonce
1
Code Size
11638 bytes
Creator
0x5Ebf6B84...2015 at tx 0x46ec9fd5...65d13c
Indexed Transactions
0
Contract Bytecode
11638 bytes
0x608060405260043610610395575f3560e01c80638da5cb5b116101de578063b6cf8ce611610108578063d85ba0631161009d578063f023f5731161006d578063f023f57314610a77578063f2fde38b14610a96578063f8b45b0514610ab5578063fe575a8714610aca575f5ffd5b8063d85ba063146109f5578063dd62ed3e14610a0a578063e2f4560514610a4e578063e884f26014610a63575f5ffd5b8063c1aea0c3116100d8578063c1aea0c314610993578063c876d0b9146109a8578063c8c8ebe4146109c1578063d257b34f146109d6575f5ffd5b8063b6cf8ce614610922578063bbc0c74214610937578063c024666814610955578063c18bc19514610974575f5ffd5b80639ccf6e211161017e578063aacebbe31161014e578063aacebbe3146108a1578063b2041411146108c0578063b2ccef5e146108d5578063b62496f5146108f4575f5ffd5b80639ccf6e211461082f5780639fccce321461084e578063a457c2d714610863578063a9059cbb14610882575f5ffd5b8063924de9b7116101b9578063924de9b7146107be57806394e8075d146107dd57806395d89b41146107fc5780639a7a23d614610810575f5ffd5b80638da5cb5b1461076d5780638dd846f51461078a578063914a1fb7146107a9575f5ffd5b806339509351116102bf5780636ddd17131161025f578063751039fc1161022f578063751039fc146107075780637571336a1461071b57806375f0a8741461073a5780638a8c523c14610759575f5ffd5b80636ddd1713146106805780636f3da56c1461069f57806370a08231146106bf578063715018a6146106f3575f5ffd5b80634fbee1931161029a5780634fbee193146106005780635b52cdf0146106375780636a486a8e1461064c5780636b1a220514610661575f5ffd5b8063395093511461059557806349bd5a5e146105b45780634a62bb65146105e7575f5ffd5b806318a94cf111610335578063203e727e11610305578063203e727e1461051d57806323b872dd1461053c57806324c0f8171461055b578063313ce5671461057a575f5ffd5b806318a94cf1146104c95780631a59e50d146104de5780631a8145bb146104f35780631f3fed8f14610508575f5ffd5b806310d5de531161037057806310d5de531461041c57806312bf7156146104495780631694505e1461046a57806318160ddd146104b5575f5ffd5b806306fdde03146103a0578063095ea7b3146103ca5780630f93e3ac146103f9575f5ffd5b3661039c57005b5f5ffd5b3480156103ab575f5ffd5b506103b4610b01565b6040516103c191906127fe565b60405180910390f35b3480156103d5575f5ffd5b506103e96103e4366004612855565b610b91565b60405190151581526020016103c1565b348015610404575f5ffd5b5061040e60125481565b6040519081526020016103c1565b348015610427575f5ffd5b506103e961043636600461287f565b602080525f908152604090205460ff1681565b348015610454575f5ffd5b5061046861046336600461289a565b610ba7565b005b348015610475575f5ffd5b5061049d7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016103c1565b3480156104c0575f5ffd5b5060025461040e565b3480156104d4575f5ffd5b5061040e60185481565b3480156104e9575f5ffd5b5061040e601a5481565b3480156104fe575f5ffd5b5061040e601c5481565b348015610513575f5ffd5b5061040e601b5481565b348015610528575f5ffd5b506104686105373660046128c3565b610c06565b348015610547575f5ffd5b506103e96105563660046128da565b610ce3565b348015610566575f5ffd5b5060085461049d906001600160a01b031681565b348015610585575f5ffd5b50604051601281526020016103c1565b3480156105a0575f5ffd5b506103e96105af366004612855565b610d4a565b3480156105bf575f5ffd5b5061049d7f0000000000000000000000005ff2f7b7a411d4defa4634d21c0e4ee3cb719f4781565b3480156105f2575f5ffd5b50600c546103e99060ff1681565b34801561060b575f5ffd5b506103e961061a36600461287f565b6001600160a01b03165f908152601f602052604090205460ff1690565b348015610642575f5ffd5b5061040e60165481565b348015610657575f5ffd5b5061040e60155481565b34801561066c575f5ffd5b5061046861067b366004612918565b610d7f565b34801561068b575f5ffd5b50600c546103e99062010000900460ff1681565b3480156106aa575f5ffd5b50600c546103e9906301000000900460ff1681565b3480156106ca575f5ffd5b5061040e6106d936600461287f565b6001600160a01b03165f9081526020819052604090205490565b3480156106fe575f5ffd5b50610468610de1565b348015610712575f5ffd5b506103e9610e54565b348015610726575f5ffd5b5061046861073536600461295e565b610e90565b348015610745575f5ffd5b5060075461049d906001600160a01b031681565b348015610764575f5ffd5b50610468610ee3565b348015610778575f5ffd5b506005546001600160a01b031661049d565b348015610795575f5ffd5b506104686107a436600461287f565b610f24565b3480156107b4575f5ffd5b5061040e60195481565b3480156107c9575f5ffd5b506104686107d8366004612991565b610f70565b3480156107e8575f5ffd5b5060065461049d906001600160a01b031681565b348015610807575f5ffd5b506103b4610fb6565b34801561081b575f5ffd5b5061046861082a36600461295e565b610fc5565b34801561083a575f5ffd5b506104686108493660046129be565b6110a4565b348015610859575f5ffd5b5061040e601d5481565b34801561086e575f5ffd5b506103e961087d366004612855565b61117d565b34801561088d575f5ffd5b506103e961089c366004612855565b6111ca565b3480156108ac575f5ffd5b506104686108bb36600461287f565b6111d6565b3480156108cb575f5ffd5b5061040e60145481565b3480156108e0575f5ffd5b506104686108ef366004612991565b61125c565b3480156108ff575f5ffd5b506103e961090e36600461287f565b60216020525f908152604090205460ff1681565b34801561092d575f5ffd5b5061040e60175481565b348015610942575f5ffd5b50600c546103e990610100900460ff1681565b348015610960575f5ffd5b5061046861096f36600461295e565b6112a4565b34801561097f575f5ffd5b5061046861098e3660046128c3565b61132c565b34801561099e575f5ffd5b5061040e60135481565b3480156109b3575f5ffd5b506010546103e99060ff1681565b3480156109cc575f5ffd5b5061040e60095481565b3480156109e1575f5ffd5b506103e96109f03660046128c3565b6113fd565b348015610a00575f5ffd5b5061040e60115481565b348015610a15575f5ffd5b5061040e610a24366004612a92565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610a59575f5ffd5b5061040e600a5481565b348015610a6e575f5ffd5b506103e9611553565b348015610a82575f5ffd5b50610468610a9136600461287f565b61158f565b348015610aa1575f5ffd5b50610468610ab036600461287f565b611615565b348015610ac0575f5ffd5b5061040e600b5481565b348015610ad5575f5ffd5b506103e9610ae436600461287f565b6001600160a01b03165f908152600f602052604090205460ff1690565b606060038054610b1090612ac9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3c90612ac9565b8015610b875780601f10610b5e57610100808354040283529160200191610b87565b820191905f5260205f20905b815481529060010190602001808311610b6a57829003601f168201915b5050505050905090565b5f610b9d3384846116ff565b5060015b92915050565b6005546001600160a01b03163314610bda5760405162461bcd60e51b8152600401610bd190612b01565b60405180910390fd5b60128390556013829055601481905580610bf48385612b4a565b610bfe9190612b4a565b601155505050565b6005546001600160a01b03163314610c305760405162461bcd60e51b8152600401610bd190612b01565b670de0b6b3a76400006103e8610c4560025490565b610c50906005612b5d565b610c5a9190612b74565b610c649190612b74565b811015610ccb5760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e352560881b6064820152608401610bd1565b610cdd81670de0b6b3a7640000612b5d565b60095550565b5f610cef848484611823565b610d408433610d3b85604051806060016040528060288152602001612cf4602891396001600160a01b038a165f9081526001602090815260408083203384529091529020549190612195565b6116ff565b5060019392505050565b335f8181526001602090815260408083206001600160a01b03871684529091528120549091610b9d918590610d3b90866121cd565b6005546001600160a01b03163314610da95760405162461bcd60e51b8152600401610bd190612b01565b6016859055601784905560188390556019829055601a81905582610dcd8587612b4a565b610dd79190612b4a565b6015555050505050565b6005546001600160a01b03163314610e0b5760405162461bcd60e51b8152600401610bd190612b01565b6005546040515f916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005545f906001600160a01b03163314610e805760405162461bcd60e51b8152600401610bd190612b01565b50600c805460ff19169055600190565b6005546001600160a01b03163314610eba5760405162461bcd60e51b8152600401610bd190612b01565b6001600160a01b03919091165f9081526020805260409020805460ff1916911515919091179055565b6005546001600160a01b03163314610f0d5760405162461bcd60e51b8152600401610bd190612b01565b600c805462ffff0019166201010017905543601e55565b6005546001600160a01b03163314610f4e5760405162461bcd60e51b8152600401610bd190612b01565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610f9a5760405162461bcd60e51b8152600401610bd190612b01565b600c8054911515620100000262ff000019909216919091179055565b606060048054610b1090612ac9565b6005546001600160a01b03163314610fef5760405162461bcd60e51b8152600401610bd190612b01565b7f0000000000000000000000005ff2f7b7a411d4defa4634d21c0e4ee3cb719f476001600160a01b0316826001600160a01b0316036110965760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610bd1565b6110a08282612232565b5050565b6005546001600160a01b031633146110ce5760405162461bcd60e51b8152600401610bd190612b01565b5f82511161111e5760405162461bcd60e51b815260206004820152601e60248201527f4163636f756e7473206c6973742063616e6e6f7420626520656d7074792e00006044820152606401610bd1565b5f5b82518110156111785781600f5f85848151811061113f5761113f612b93565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055600101611120565b505050565b5f610b9d3384610d3b85604051806060016040528060258152602001612d1c60259139335f9081526001602090815260408083206001600160a01b038d1684529091529020549190612195565b5f610b9d338484611823565b6005546001600160a01b031633146112005760405162461bcd60e51b8152600401610bd190612b01565b6007546040516001600160a01b03918216918316907fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b05674905f90a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146112865760405162461bcd60e51b8152600401610bd190612b01565b600c805491151563010000000263ff00000019909216919091179055565b6005546001600160a01b031633146112ce5760405162461bcd60e51b8152600401610bd190612b01565b6001600160a01b0382165f818152601f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146113565760405162461bcd60e51b8152600401610bd190612b01565b670de0b6b3a76400006103e861136b60025490565b61137690600f612b5d565b6113809190612b74565b61138a9190612b74565b8110156113e55760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263312e352560e01b6064820152608401610bd1565b6113f781670de0b6b3a7640000612b5d565b600b5550565b6005545f906001600160a01b031633146114295760405162461bcd60e51b8152600401610bd190612b01565b620186a061143660025490565b611441906001612b5d565b61144b9190612b74565b8210156114b85760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610bd1565b6103e86114c460025490565b6114cf906005612b5d565b6114d99190612b74565b8211156115455760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610bd1565b50600a81905560015b919050565b6005545f906001600160a01b0316331461157f5760405162461bcd60e51b8152600401610bd190612b01565b506010805460ff19169055600190565b6005546001600160a01b031633146115b95760405162461bcd60e51b8152600401610bd190612b01565b6008546040516001600160a01b03918216918316907f94cc1498503be9a145caf3e96f856665f29cf9b26c7179a93fbe1c1e5f56a0fd905f90a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461163f5760405162461bcd60e51b8152600401610bd190612b01565b6001600160a01b0381166116a45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bd1565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166117615760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bd1565b6001600160a01b0382166117c25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bd1565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166118495760405162461bcd60e51b8152600401610bd190612ba7565b6001600160a01b03821661186f5760405162461bcd60e51b8152600401610bd190612bec565b6001600160a01b0382165f908152600f602052604090205460ff161580156118af57506001600160a01b0383165f908152600f602052604090205460ff16155b6119155760405162461bcd60e51b815260206004820152603160248201527f596f752068617665206265656e20626c61636b6c69737465642066726f6d207460448201527072616e73666572696e6720746f6b656e7360781b6064820152608401610bd1565b805f036119275761117883835f612285565b600c5460ff1615611dd6576005546001600160a01b0384811691161480159061195e57506005546001600160a01b03838116911614155b801561197257506001600160a01b03821615155b801561198957506001600160a01b03821661dead14155b801561199f5750600654600160a01b900460ff16155b15611dd657600c54610100900460ff16611a35576001600160a01b0383165f908152601f602052604090205460ff16806119f057506001600160a01b0382165f908152601f602052604090205460ff165b611a355760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610bd1565b60105460ff1615611b7a576005546001600160a01b03838116911614801590611a9057507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614155b8015611ace57507f0000000000000000000000005ff2f7b7a411d4defa4634d21c0e4ee3cb719f476001600160a01b0316826001600160a01b031614155b15611b7a57325f908152600d60205260409020544311611b685760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a401610bd1565b325f908152600d602052604090204390555b6001600160a01b0383165f9081526021602052604090205460ff168015611bb857506001600160a01b0382165f90815260208052604090205460ff16155b15611c9b57600954811115611c2d5760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610bd1565b600b546001600160a01b0383165f90815260208190526040902054611c529083612b4a565b1115611c965760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610bd1565b611dd6565b6001600160a01b0382165f9081526021602052604090205460ff168015611cd957506001600160a01b0383165f90815260208052604090205460ff16155b15611d4f57600954811115611c965760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610bd1565b6001600160a01b0382165f90815260208052604090205460ff16611dd657600b546001600160a01b0383165f90815260208190526040902054611d929083612b4a565b1115611dd65760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610bd1565b601e54611de3905f612b4a565b4311158015611e2457507f0000000000000000000000005ff2f7b7a411d4defa4634d21c0e4ee3cb719f476001600160a01b0316826001600160a01b031614155b8015611e4d57506001600160a01b038216737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611e72576001600160a01b0382165f908152600f60205260409020805460ff191690555b305f90815260208190526040902054600a5481108015908190611e9d5750600c5462010000900460ff165b8015611eb35750600654600160a01b900460ff16155b8015611ed757506001600160a01b0385165f9081526021602052604090205460ff16155b8015611efb57506001600160a01b0385165f908152601f602052604090205460ff16155b8015611f1f57506001600160a01b0384165f908152601f602052604090205460ff16155b15611f4d576006805460ff60a01b1916600160a01b179055611f3f61238b565b6006805460ff60a01b191690555b6006546001600160a01b0386165f908152601f602052604090205460ff600160a01b909204821615911680611f9957506001600160a01b0385165f908152601f602052604090205460ff165b15611fa157505f5b5f8115612181576001600160a01b0386165f9081526021602052604090205460ff168015611fd057505f601554115b1561208b57611ff56064611fef6015548861251c90919063ffffffff16565b9061259a565b9050601554601754826120089190612b5d565b6120129190612b74565b601c5f8282546120229190612b4a565b90915550506015546018546120379083612b5d565b6120419190612b74565b601d5f8282546120519190612b4a565b90915550506015546016546120669083612b5d565b6120709190612b74565b601b5f8282546120809190612b4a565b909155506121639050565b6001600160a01b0387165f9081526021602052604090205460ff1680156120b357505f601154115b15612163576120d26064611fef6011548861251c90919063ffffffff16565b9050601154601354826120e59190612b5d565b6120ef9190612b74565b601c5f8282546120ff9190612b4a565b90915550506011546014546121149083612b5d565b61211e9190612b74565b601d5f82825461212e9190612b4a565b90915550506011546012546121439083612b5d565b61214d9190612b74565b601b5f82825461215d9190612b4a565b90915550505b801561217457612174873083612285565b61217e8186612c2f565b94505b61218c878787612285565b50505050505050565b5f81848411156121b85760405162461bcd60e51b8152600401610bd191906127fe565b505f6121c48486612c2f565b95945050505050565b5f806121d98385612b4a565b90508381101561222b5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610bd1565b9392505050565b6001600160a01b0382165f81815260216020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b0383166122ab5760405162461bcd60e51b8152600401610bd190612ba7565b6001600160a01b0382166122d15760405162461bcd60e51b8152600401610bd190612bec565b61230d81604051806060016040528060268152602001612cce602691396001600160a01b0386165f908152602081905260409020549190612195565b6001600160a01b038085165f90815260208190526040808220939093559084168152205461233b90826121cd565b6001600160a01b038381165f818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611816565b305f9081526020819052604081205490505f601d54601b54601c546123b09190612b4a565b6123ba9190612b4a565b90505f8215806123c8575081155b156123d257505050565b600a546123e0906014612b5d565b8311156123f857600a546123f5906014612b5d565b92505b5f600283601c548661240a9190612b5d565b6124149190612b74565b61241e9190612b74565b90505f61242b85836125db565b9050476124378261261c565b5f61244247836125db565b90505f61245e87611fef601d548561251c90919063ffffffff16565b5f601c819055601b819055601d8190556008546040519293506001600160a01b031691839181818185875af1925050503d805f81146124b8576040519150601f19603f3d011682016040523d82523d5f602084013e6124bd565b606091505b50506007546040519197506001600160a01b03169047905f81818185875af1925050503d805f811461250a576040519150601f19603f3d011682016040523d82523d5f602084013e61250f565b606091505b5050505050505050505050565b5f825f0361252b57505f610ba1565b5f6125368385612b5d565b9050826125438583612b74565b1461222b5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610bd1565b5f61222b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506127d2565b5f61222b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612195565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061264f5761264f612b93565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126cb573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126ef9190612c42565b8160018151811061270257612702612b93565b60200260200101906001600160a01b031690816001600160a01b03168152505061274d307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846116ff565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906127a19085905f90869030904290600401612c5d565b5f604051808303815f87803b1580156127b8575f5ffd5b505af11580156127ca573d5f5f3e3d5ffd5b505050505050565b5f81836127f25760405162461bcd60e51b8152600401610bd191906127fe565b505f6121c48486612b74565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114612847575f5ffd5b50565b803561154e81612833565b5f5f60408385031215612866575f5ffd5b823561287181612833565b946020939093013593505050565b5f6020828403121561288f575f5ffd5b813561222b81612833565b5f5f5f606084860312156128ac575f5ffd5b505081359360208301359350604090920135919050565b5f602082840312156128d3575f5ffd5b5035919050565b5f5f5f606084860312156128ec575f5ffd5b83356128f781612833565b9250602084013561290781612833565b929592945050506040919091013590565b5f5f5f5f5f60a0868803121561292c575f5ffd5b505083359560208501359550604085013594606081013594506080013592509050565b8035801515811461154e575f5ffd5b5f5f6040838503121561296f575f5ffd5b823561297a81612833565b91506129886020840161294f565b90509250929050565b5f602082840312156129a1575f5ffd5b61222b8261294f565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156129cf575f5ffd5b823567ffffffffffffffff8111156129e5575f5ffd5b8301601f810185136129f5575f5ffd5b803567ffffffffffffffff811115612a0f57612a0f6129aa565b8060051b604051601f19603f830116810181811067ffffffffffffffff82111715612a3c57612a3c6129aa565b604052918252602081840181019290810188841115612a59575f5ffd5b6020850194505b83851015612a7f57612a718561284a565b815260209485019401612a60565b509450612988925050506020840161294f565b5f5f60408385031215612aa3575f5ffd5b8235612aae81612833565b91506020830135612abe81612833565b809150509250929050565b600181811c90821680612add57607f821691505b602082108103612afb57634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ba157610ba1612b36565b8082028115828204841417610ba157610ba1612b36565b5f82612b8e57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610ba157610ba1612b36565b5f60208284031215612c52575f5ffd5b815161222b81612833565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b81811015612cad5783516001600160a01b0316835260209384019390920191600101612c86565b50506001600160a01b03959095166060840152505060800152939250505056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f42542170c7557c548f7a9fcaae6f91775b71cd4b9c952a26feb92baa89897d264736f6c634300081e0033
Verified Source Code Partial Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: Yes (200 runs)
HYPETENSOR.sol 1552 lines
/*
Website: https://hypetensor.xyz
X: https://x.com/hypetensor
Telegram: https://t.me/hypetensor
*/
pragma solidity ^0.8.30;
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 HYPETENSOR is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public Development;
bool private swapping;
address public marketingWallet;
address public DevelopmentWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
bool public enableEarlySellFee = true;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
// Seller Map
mapping(address => uint256) private _holderFirstBuyTimestamp;
// Blacklist Map
mapping(address => bool) private _blacklist;
bool public transferDelayEnabled = true;
uint256 public buyTotalFees;
uint256 public buyHYPEFee;
uint256 public buyLiqFee;
uint256 public buyDevelopmentFee;
uint256 public sellTotalFees;
uint256 public sellHYPEFee;
uint256 public sellLiqFee;
uint256 public sellDevelopmentFee;
uint256 public earlySellLiqFee;
uint256 public earlySellHYPEFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
// block number of opened trading
uint256 launchedAt;
/******************/
// exclude 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 DevelopmentWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event AutoNukeLP();
event ManualNukeLP();
constructor() ERC20(unicode"HypeTensor", unicode"HYPE") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
// #################################################################
marketingWallet = address(0x5Ebf6B84B710245AbBBCcCfda739368a17Ed2015);
DevelopmentWallet = address(0x5Ebf6B84B710245AbBBCcCfda739368a17Ed2015);
// #################################################################
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyHYPEFee = 10;
uint256 _buyLiqFee = 0;
uint256 _buyDevelopmentFee = 0;
uint256 _sellHYPEFee = 10;
uint256 _sellLiqFee = 0;
uint256 _sellDevelopmentFee = 0;
uint256 _earlySellLiqFee = 0;
uint256 _earlySellHYPEFee = 0;
uint256 totalSupply = 21000000 * 1e18;
maxTransactionAmount = (totalSupply * 50) / 10000;
maxWallet = (totalSupply * 20) / 1000;
swapTokensAtAmount = (totalSupply * 20) / 1000;
buyHYPEFee = _buyHYPEFee;
buyLiqFee = _buyLiqFee;
buyDevelopmentFee = _buyDevelopmentFee;
buyTotalFees = buyHYPEFee + buyLiqFee + buyDevelopmentFee;
sellHYPEFee = _sellHYPEFee;
sellLiqFee = _sellLiqFee;
sellDevelopmentFee = _sellDevelopmentFee;
sellTotalFees = sellHYPEFee + sellLiqFee + sellDevelopmentFee;
earlySellLiqFee = _earlySellLiqFee;
earlySellHYPEFee = _earlySellHYPEFee;
// 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(msg.sender, totalSupply);
}
receive() external payable {}
// once enabled, can never be turned off
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
launchedAt = block.number;
}
// remove limits after token is stable
function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
// disable Transfer delay - cannot be reenabled
function disableTransferDelay() external onlyOwner returns (bool) {
transferDelayEnabled = false;
return true;
}
function setEarlySellFee(bool onoff) external onlyOwner {
enableEarlySellFee = onoff;
}
// change the minimum amount of tokens to sell from Fees
function updateSwapTokensAtAmount(
uint256 newAmount
) external onlyOwner returns (bool) {
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxTransactionAmount lower than 0.5%"
);
maxTransactionAmount = newNum * (10 ** 18);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 15) / 1000) / 1e18,
"Cannot set maxWallet lower than 1.5%"
);
maxWallet = newNum * (10 ** 18);
}
function excludeFromMaxTransaction(
address updAds,
bool isEx
) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner {
swapEnabled = enabled;
}
function updateBuyFee(
uint256 _HYPEFee,
uint256 _LiqFee,
uint256 _DevelopmentFee
) external onlyOwner {
buyHYPEFee = _HYPEFee;
buyLiqFee = _LiqFee;
buyDevelopmentFee = _DevelopmentFee;
buyTotalFees = buyHYPEFee + buyLiqFee + buyDevelopmentFee;
}
function updateSellFee(
uint256 _HYPEFee,
uint256 _LiqFee,
uint256 _DevelopmentFee,
uint256 _earlySellLiqFee,
uint256 _earlySellHYPEFee
) external onlyOwner {
sellHYPEFee = _HYPEFee;
sellLiqFee = _LiqFee;
sellDevelopmentFee = _DevelopmentFee;
earlySellLiqFee = _earlySellLiqFee;
earlySellHYPEFee = _earlySellHYPEFee;
sellTotalFees = sellHYPEFee + sellLiqFee + sellDevelopmentFee;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function isBlacklisted(address account) public view returns (bool) {
return _blacklist[account];
}
function blacklistAccounts(
address[] memory accounts,
bool isBlacklisted
) public onlyOwner {
require(accounts.length > 0, "Accounts list cannot be empty.");
for (uint256 i = 0; i < accounts.length; i++) {
_blacklist[accounts[i]] = isBlacklisted;
}
}
function setAutomatedMarketMakerPair(
address pair,
bool value
) public 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 set_Development(address new_Development_address) external onlyOwner {
Development = new_Development_address;
}
function updateDevelopmentWallet(address newWallet) external onlyOwner {
emit DevelopmentWalletUpdated(newWallet, DevelopmentWallet);
DevelopmentWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
event BoughtEarly(address indexed sniper);
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(
!_blacklist[to] && !_blacklist[from],
"You have been blacklisted from transfering tokens"
);
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (limitsInEffect) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
) {
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled) {
if (
to != owner() &&
to != address(uniswapV2Router) &&
to != address(uniswapV2Pair)
) {
require(
_holderLastTransferTimestamp[tx.origin] <
block.number,
"_transfer:: Transfer Delay enabled. Only one purchase per block allowed."
);
_holderLastTransferTimestamp[tx.origin] = block.number;
}
}
//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 if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
}
}
// anti bot logic
if (
block.number <= (launchedAt + 0) &&
to != uniswapV2Pair &&
to != address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D)
) {
_blacklist[to] = false;
}
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 = !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) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
Fees = amount.mul(sellTotalFees).div(100);
tokensForLiquidity += (Fees * sellLiqFee) / sellTotalFees;
tokensForDev += (Fees * sellDevelopmentFee) / sellTotalFees;
tokensForMarketing += (Fees * sellHYPEFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
Fees = amount.mul(buyTotalFees).div(100);
tokensForLiquidity += (Fees * buyLiqFee) / buyTotalFees;
tokensForDev += (Fees * buyDevelopmentFee) / buyTotalFees;
tokensForMarketing += (Fees * buyHYPEFee) / buyTotalFees;
}
if (Fees > 0) {
super._transfer(from, address(this), Fees);
}
amount -= Fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing +
tokensForDev;
bool success...
// [truncated — 51000 bytes total]
Read Contract
Development 0x94e8075d → address
DevelopmentWallet 0x24c0f817 → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevelopmentFee 0xb2041411 → uint256
buyHYPEFee 0x0f93e3ac → uint256
buyLiqFee 0xc1aea0c3 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
earlySellHYPEFee 0x1a59e50d → uint256
earlySellLiqFee 0x914a1fb7 → uint256
enableEarlySellFee 0x6f3da56c → bool
isBlacklisted 0xfe575a87 → bool
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevelopmentFee 0x18a94cf1 → uint256
sellHYPEFee 0x5b52cdf0 → uint256
sellLiqFee 0xb6cf8ce6 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 24 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklistAccounts 0x9ccf6e21
address[] accounts
bool isBlacklisted
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
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
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setEarlySellFee 0xb2ccef5e
bool onoff
set_Development 0x8dd846f5
address new_Development_address
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFee 0x12bf7156
uint256 _HYPEFee
uint256 _LiqFee
uint256 _DevelopmentFee
updateDevelopmentWallet 0xf023f573
address newWallet
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFee 0x6b1a2205
uint256 _HYPEFee
uint256 _LiqFee
uint256 _DevelopmentFee
uint256 _earlySellLiqFee
uint256 _earlySellHYPEFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
Recent Transactions
No transactions found for this address