Address Contract Partially Verified
Address
0xf2A3FD199bfD6620eab9f84f8c29055FE7f496Fa
Balance
0 ETH
Nonce
1
Code Size
14745 bytes
Creator
0x22BE64a5...d12D at tx 0x5ce7ee5c...2c930f
Indexed Transactions
0
Contract Bytecode
14745 bytes
0x6080604052600436106103d25760003560e01c806385ecfd28116101fd578063bbc0c74211610118578063e7ad9fcd116100ab578063f2fde38b1161007a578063f2fde38b14610ad6578063f5648a4f14610af6578063f637434214610b0b578063f8b45b0514610b21578063fb002c9714610b3757600080fd5b8063e7ad9fcd14610a75578063e884f26014610a95578063ee40166e14610aaa578063f11a24d314610ac057600080fd5b8063d85ba063116100e7578063d85ba063146109ed578063dd62ed3e14610a03578063e2f4560514610a49578063e71dc3f514610a5f57600080fd5b8063bbc0c74214610974578063c024666814610993578063c876d0b9146109b3578063d0d41fe1146109cd57600080fd5b8063a62068ce11610190578063ae56cee61161015f578063ae56cee6146108ee578063b62496f51461090e578063b8eb35461461093e578063b94279ea1461095457600080fd5b8063a62068ce14610882578063a9059cbb14610898578063a9d3cd8a146108b8578063adb873bd146108d857600080fd5b80639c3b4fdc116101cc5780639c3b4fdc146108205780639fccce3214610836578063a0d82dc51461084c578063a457c2d71461086257600080fd5b806385ecfd281461079d5780638da5cb5b146107cd5780639164f9db146107eb57806395d89b411461080b57600080fd5b806346f1f5de116102ed5780636b0a894c1161028057806370db69d61161024f57806370db69d61461073d578063715018a614610753578063751039fc146107685780638366e79a1461077d57600080fd5b80636b0a894c146106c75780636ddd1713146106dd578063707789c5146106fd57806370a082311461071d57600080fd5b806358881304116102bc578063588813041461066457806358a6d531146106845780635a139dd41461069b5780636a486a8e146106b157600080fd5b806346f1f5de146105ff5780634a62bb651461061f5780634f77f6c01461063957806351f205e41461064f57600080fd5b80631d777856116103655780632e6ed7ef116103345780632e6ed7ef14610583578063313ce567146105a357806339509351146105bf578063452ed4f1146105df57600080fd5b80631d7778561461051857806323b872dd1461052e578063249ec2bb1461054e5780632e5091031461056e57600080fd5b806310d5de53116103a157806310d5de531461049357806318160ddd146104c35780631a8145bb146104e25780631c499ab0146104f857600080fd5b8063053f9040146103de57806306fdde03146104005780630758d9241461042b578063095ea7b31461046357600080fd5b366103d957005b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046134dc565b610b4d565b005b34801561040c57600080fd5b50610415610d9a565b60405161042291906134f5565b60405180910390f35b34801561043757600080fd5b5060095461044b906001600160a01b031681565b6040516001600160a01b039091168152602001610422565b34801561046f57600080fd5b5061048361047e366004613562565b610e2c565b6040519015158152602001610422565b34801561049f57600080fd5b506104836104ae36600461358e565b60246020526000908152604090205460ff1681565b3480156104cf57600080fd5b506002545b604051908152602001610422565b3480156104ee57600080fd5b506104d460205481565b34801561050457600080fd5b506103fe6105133660046134dc565b610e42565b34801561052457600080fd5b506104d460225481565b34801561053a57600080fd5b506104836105493660046135b2565b610f52565b34801561055a57600080fd5b506103fe610569366004613601565b610ffc565b34801561057a57600080fd5b506103fe6110c4565b34801561058f57600080fd5b506103fe61059e36600461363a565b61120e565b3480156105af57600080fd5b5060405160128152602001610422565b3480156105cb57600080fd5b506104836105da366004613562565b6112c7565b3480156105eb57600080fd5b50600a5461044b906001600160a01b031681565b34801561060b57600080fd5b506103fe61061a3660046134dc565b611303565b34801561062b57600080fd5b506012546104839060ff1681565b34801561064557600080fd5b506104d4601b5481565b34801561065b57600080fd5b506103fe61144e565b34801561067057600080fd5b506103fe61067f3660046134dc565b611557565b34801561069057600080fd5b50600f544310610483565b3480156106a757600080fd5b506104d460165481565b3480156106bd57600080fd5b506104d4601a5481565b3480156106d357600080fd5b506104d460115481565b3480156106e957600080fd5b506012546104839062010000900460ff1681565b34801561070957600080fd5b506103fe61071836600461358e565b61165d565b34801561072957600080fd5b506104d461073836600461358e565b61170e565b34801561074957600080fd5b506104d460065481565b34801561075f57600080fd5b506103fe611729565b34801561077457600080fd5b506103fe61179d565b34801561078957600080fd5b5061048361079836600461366c565b611808565b3480156107a957600080fd5b506104836107b836600461358e565b60106020526000908152604090205460ff1681565b3480156107d957600080fd5b506005546001600160a01b031661044b565b3480156107f757600080fd5b506103fe6108063660046134dc565b611a11565b34801561081757600080fd5b50610415611b18565b34801561082c57600080fd5b506104d460185481565b34801561084257600080fd5b506104d460215481565b34801561085857600080fd5b506104d4601d5481565b34801561086e57600080fd5b5061048361087d366004613562565b611b27565b34801561088e57600080fd5b506104d4600f5481565b3480156108a457600080fd5b506104836108b3366004613562565b611bc0565b3480156108c457600080fd5b506103fe6108d3366004613601565b611bcd565b3480156108e457600080fd5b506104d4601e5481565b3480156108fa57600080fd5b506103fe6109093660046134dc565b611c9b565b34801561091a57600080fd5b5061048361092936600461358e565b60256020526000908152604090205460ff1681565b34801561094a57600080fd5b506104d460075481565b34801561096057600080fd5b506103fe61096f366004613601565b611d6e565b34801561098057600080fd5b5060125461048390610100900460ff1681565b34801561099f57600080fd5b506103fe6109ae366004613601565b611dc3565b3480156109bf57600080fd5b506014546104839060ff1681565b3480156109d957600080fd5b506103fe6109e836600461358e565b611e4c565b3480156109f957600080fd5b506104d460155481565b348015610a0f57600080fd5b506104d4610a1e36600461366c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a5557600080fd5b506104d4600b5481565b348015610a6b57600080fd5b506104d460195481565b348015610a8157600080fd5b506103fe610a9036600461363a565b611eee565b348015610aa157600080fd5b506103fe611fa1565b348015610ab657600080fd5b506104d4600e5481565b348015610acc57600080fd5b506104d460175481565b348015610ae257600080fd5b506103fe610af136600461358e565b611fd7565b348015610b0257600080fd5b506103fe6120c2565b348015610b1757600080fd5b506104d4601c5481565b348015610b2d57600080fd5b506104d460085481565b348015610b4357600080fd5b506104d4601f5481565b6005546001600160a01b03163314610b805760405162461bcd60e51b8152600401610b779061369a565b60405180910390fd5b678ac7230489e80000811115610c0e5760405162461bcd60e51b815260206004820152604760248201527f4d6179206e6f7420627579206d6f7265207468616e2031302045544820696e2060448201527f612073696e676c652062757920746f207265647563652073616e64776963682060648201526661747461636b7360c81b608482015260a401610b77565b6040805160028082526060820183526000926020830190803683375050600954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015610c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9c91906136cf565b81600081518110610caf57610caf6136ec565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110610ce357610ce36136ec565b6001600160a01b03928316602091820292909201015260095460405163b6f9de9560e01b815291169063b6f9de95908490610d2b90600090869061dead904290600401613746565b6000604051808303818588803b158015610d4457600080fd5b505af1158015610d58573d6000803e3d6000fd5b50505050507fa017c1567cfcdd2d750a8c01e39fe2a846bcebc293c7d078477014d68482056882604051610d8e91815260200190565b60405180910390a15050565b606060038054610da99061377b565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd59061377b565b8015610e225780601f10610df757610100808354040283529160200191610e22565b820191906000526020600020905b815481529060010190602001808311610e0557829003601f168201915b5050505050905090565b6000610e3933848461212e565b50600192915050565b6005546001600160a01b03163314610e6c5760405162461bcd60e51b8152600401610b779061369a565b670de0b6b3a76400006103e8610e8160025490565b610e8c9060036137cb565b610e9691906137ea565b610ea091906137ea565b811015610f045760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526b6572207468616e20302e332560a01b6064820152608401610b77565b610f1681670de0b6b3a76400006137cb565b60088190556040519081527fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc906020015b60405180910390a150565b6000610f5f848484612253565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610fe45760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610b77565b610ff1853385840361212e565b506001949350505050565b6005546001600160a01b031633146110265760405162461bcd60e51b8152600401610b779061369a565b8061109957600a546001600160a01b03908116908316036110995760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b6064820152608401610b77565b6001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146110ee5760405162461bcd60e51b8152600401610b779061369a565b6014601b8190556000601c819055601d819055601e81905590819061111490829061380c565b61111e919061380c565b611128919061380c565b601a8190556032101561117d5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610b77565b6037601681905560006017819055601881905560198190559081906111a390829061380c565b6111ad919061380c565b6111b7919061380c565b60158190556037101561120c5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610b77565b565b6005546001600160a01b031633146112385760405162461bcd60e51b8152600401610b779061369a565b60168490556017839055601882905560198190558082611258858761380c565b611262919061380c565b61126c919061380c565b6015819055603210156112c15760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610b77565b50505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610e399185906112fe90869061380c565b61212e565b6005546001600160a01b0316331461132d5760405162461bcd60e51b8152600401610b779061369a565b620186a061133a60025490565b6113459060016137cb565b61134f91906137ea565b8110156113bc5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610b77565b6103e86113c860025490565b6113d39060016137cb565b6113dd91906137ea565b8111156114495760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b6064820152608401610b77565b600b55565b6005546001600160a01b031633146114785760405162461bcd60e51b8152600401610b779061369a565b600b546114843061170e565b10156114fa576040805162461bcd60e51b81526020600482015260248101919091527f43616e206f6e6c792073776170207768656e20746f6b656e20616d6f756e742060448201527f6973206174206f7220686967686572207468616e207265737472696374696f6e6064820152608401610b77565b600a805460ff60a01b1916600160a01b179055611515612d88565b600a805460ff60a01b191690556040514281527f1b56c383f4f48fc992e45667ea4eabae777b9cca68b516a9562d8cda78f1bb329060200160405180910390a1565b6005546001600160a01b031633146115815760405162461bcd60e51b8152600401610b779061369a565b670de0b6b3a76400006103e861159660025490565b6115a19060026137cb565b6115ab91906137ea565b6115b591906137ea565b8110156116165760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152687468616e20302e322560b81b6064820152608401610b77565b61162881670de0b6b3a76400006137cb565b60068190556040519081527ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de4100990602001610f47565b6005546001600160a01b031633146116875760405162461bcd60e51b8152600401610b779061369a565b6001600160a01b0381166116ec5760405162461bcd60e51b815260206004820152602660248201527f5f6f7065726174696f6e734164647265737320616464726573732063616e6e6f60448201526507420626520360d41b6064820152608401610b77565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b031633146117535760405162461bcd60e51b8152600401610b779061369a565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146117c75760405162461bcd60e51b8152600401610b779061369a565b6012805460ff199081169091556014805490911690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b6005546000906001600160a01b031633146118355760405162461bcd60e51b8152600401610b779061369a565b6001600160a01b03831661188b5760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610b77565b306001600160a01b038416036118e35760405162461bcd60e51b815260206004820152601c60248201527f43616e2774207769746864726177206e617469766520746f6b656e73000000006044820152606401610b77565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa15801561192a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194e9190613824565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303816000875af11580156119a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c5919061383d565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b6005546001600160a01b03163314611a3b5760405162461bcd60e51b8152600401610b779061369a565b670de0b6b3a76400006103e8611a5060025490565b611a5b9060026137cb565b611a6591906137ea565b611a6f91906137ea565b811015611ad15760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f776572604482015269207468616e20302e322560b01b6064820152608401610b77565b611ae381670de0b6b3a76400006137cb565b60078190556040519081527f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e90602001610f47565b606060048054610da99061377b565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611ba95760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b77565b611bb6338585840361212e565b5060019392505050565b6000610e39338484612253565b6005546001600160a01b03163314611bf75760405162461bcd60e51b8152600401610b779061369a565b600a546001600160a01b0390811690831603611c555760405162461bcd60e51b815260206004820152601a60248201527f54686520706169722063616e6e6f742062652072656d6f7665640000000000006044820152606401610b77565b611c5f8282612fc7565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b03163314611cc55760405162461bcd60e51b8152600401610b779061369a565b601254610100900460ff1615611d1d5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207265656e61626c652074726164696e670000000000000000006044820152606401610b77565b6012805462ffff0019166201010017905543600e819055611d3f90829061380c565b600f556040517fba61a96074b3d636edeee92caddc86293c917d5b6818b7d3698bb52e02ec86c890600090a150565b6005546001600160a01b03163314611d985760405162461bcd60e51b8152600401610b779061369a565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b6005546001600160a01b03163314611ded5760405162461bcd60e51b8152600401610b779061369a565b6001600160a01b038216600081815260236020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03163314611e765760405162461bcd60e51b8152600401610b779061369a565b6001600160a01b038116611ecc5760405162461bcd60e51b815260206004820152601f60248201527f5f6465764164647265737320616464726573732063616e6e6f742062652030006044820152606401610b77565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611f185760405162461bcd60e51b8152600401610b779061369a565b601b849055601c839055601d829055601e8190558082611f38858761380c565b611f42919061380c565b611f4c919061380c565b601a819055603710156112c15760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610b77565b6005546001600160a01b03163314611fcb5760405162461bcd60e51b8152600401610b779061369a565b6014805460ff19169055565b6005546001600160a01b031633146120015760405162461bcd60e51b8152600401610b779061369a565b6001600160a01b0381166120665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b77565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146120ec5760405162461bcd60e51b8152600401610b779061369a565b604051600090339047908381818185875af1925050503d80600081146112c1576040519150601f19603f3d011682016040523d82523d6000602084013e6112c1565b6001600160a01b0383166121905760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b77565b6001600160a01b0382166121f15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b77565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166122795760405162461bcd60e51b8152600401610b779061385a565b6001600160a01b03821661229f5760405162461bcd60e51b8152600401610b779061389f565b600081116122ef5760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610b77565b601254610100900460ff16612382576001600160a01b03831660009081526023602052604090205460ff168061233d57506001600160a01b03821660009081526023602052604090205460ff165b6123825760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610b77565b600f5415612455576001600160a01b03831660009081526010602052604090205460ff1615806123bf57506005546001600160a01b038381169116145b806123d457506001600160a01b03821661dead145b6124555760405162461bcd60e51b815260206004820152604660248201527f426f74732063616e6e6f74207472616e7366657220746f6b656e7320696e206f60448201527f72206f75742065786365707420746f206f776e6572206f722064656164206164606482015265323932b9b99760d11b608482015260a401610b77565b60125460ff1615612851576005546001600160a01b0384811691161480159061248c57506005546001600160a01b03838116911614155b80156124a057506001600160a01b03821615155b80156124b757506001600160a01b03821661dead14155b80156124dc57506001600160a01b03831660009081526023602052604090205460ff16155b801561250157506001600160a01b03821660009081526023602052604090205460ff16155b156128515760145460ff161561261a576009546001600160a01b0383811691161480159061253d5750600a546001600160a01b03838116911614155b1561261a5761254d6002436138e2565b3260009081526013602052604090205410801561258b57506125706002436138e2565b6001600160a01b038316600090815260136020526040902054105b6125f55760405162461bcd60e51b815260206004820152603560248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527432b21710102a393c9030b3b0b4b7103630ba32b91760591b6064820152608401610b77565b3260009081526013602052604080822043908190556001600160a01b03851683529120555b6001600160a01b03831660009081526025602052604090205460ff16801561265b57506001600160a01b03821660009081526024602052604090205460ff16155b15612727576006548111156126c35760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b6064820152608401610b77565b6008546126cf8361170e565b6126d9908361380c565b11156127225760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610b77565b612851565b6001600160a01b03821660009081526025602052604090205460ff16801561276857506001600160a01b03831660009081526024602052604090205460ff16155b156127d2576007548111156127225760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b6064820152608401610b77565b6001600160a01b03821660009081526024602052604090205460ff16612851576008546127fe8361170e565b612808908361380c565b11156128515760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610b77565b600061285c3061170e565b600b549091508110801590819061287b575060125462010000900460ff165b80156128915750600a54600160a01b900460ff16155b80156128b657506001600160a01b03851660009081526025602052604090205460ff16155b80156128db57506001600160a01b03851660009081526023602052604090205460ff16155b801561290057506001600160a01b03841660009081526023602052604090205460ff16155b1561292e57600a805460ff60a01b1916600160a01b179055612920612d88565b600a805460ff60a01b191690555b6001600160a01b03851660009081526023602052604090205460019060ff168061297057506001600160a01b03851660009081526023602052604090205460ff165b15612979575060005b60008115612d7457600f54431080156129aa57506001600160a01b03871660009081526025602052604090205460ff165b80156129cf57506001600160a01b03861660009081526025602052604090205460ff16155b80156129dd57506000601554115b15612b5d576001600160a01b03861660009081526010602052604090205460ff16612a7d576001600160a01b0386166000908152601060205260408120805460ff191660019081179091556011805491929091612a3b90849061380c565b90915550506040516001600160a01b03871681527f55678e47d0a699d3ab99b0184c4ff14f2246ba80522deb921aa0c8823578c44a9060200160405180910390a15b6064612a8a8660636137cb565b612a9491906137ea565b905060155460175482612aa791906137cb565b612ab191906137ea565b60206000828254612ac2919061380c565b9091555050601554601654612ad790836137cb565b612ae191906137ea565b601f6000828254612af2919061380c565b9091555050601554601854612b0790836137cb565b612b1191906137ea565b60216000828254612b22919061380c565b9091555050601554601954612b3790836137cb565b612b4191906137ea565b60226000828254612b52919061380c565b90915550612d569050565b6001600160a01b03861660009081526025602052604090205460ff168015612b8757506000601a54115b15612c49576064601a5486612b9c91906137cb565b612ba691906137ea565b9050601a54601c5482612bb991906137cb565b612bc391906137ea565b60206000828254612bd4919061380c565b9091555050601a54601b54612be990836137cb565b612bf391906137ea565b601f6000828254612c04919061380c565b9091555050601a54601d54612c1990836137cb565b612c2391906137ea565b60216000828254612c34919061380c565b9091555050601a54601e54612b3790836137cb565b6001600160a01b03871660009081526025602052604090205460ff168015612c7357506000601554115b15612d5657606460155486612c8891906137cb565b612c9291906137ea565b905060155460175482612ca591906137cb565b612caf91906137ea565b60206000828254612cc0919061380c565b9091555050601554601654612cd590836137cb565b612cdf91906137ea565b601f6000828254612cf0919061380c565b9091555050601554601854612d0590836137cb565b612d0f91906137ea565b60216000828254612d20919061380c565b9091555050601554601954612d3590836137cb565b612d3f91906137ea565b60226000828254612d50919061380c565b90915550505b8015612d6757612d67873083612ff5565b612d7181866138e2565b94505b612d7f878787612ff5565b50505050505050565b6000602254118015612da45750602254612da13061170e565b10155b15612db557612db53060225461314a565b60006022819055612dc53061170e565b90506000602154601f54602054612ddc919061380c565b612de6919061380c565b9050811580612df3575080155b15612dfc575050565b600b54612e0a9060146137cb565b821115612e2257600b54612e1f9060146137cb565b91505b60008060028360205486612e3691906137cb565b612e4091906137ea565b612e4a91906137ea565b9050612e5e612e5982866138e2565b613274565b60205447908190600090612e74906002906137ea565b612e7e90876138e2565b601f54612e8b90856137cb565b612e9591906137ea565b905060006002602054612ea891906137ea565b612eb290886138e2565b602154612ebf90866137cb565b612ec991906137ea565b9050612ed5818361380c565b612edf90846138e2565b60006020819055601f819055602181905560225592508415801590612f045750600083115b15612f1357612f1385846133ce565b600d546040516001600160a01b03909116908290600081818185875af1925050503d8060008114612f60576040519150601f19603f3d011682016040523d82523d6000602084013e612f65565b606091505b5050600c546040519197506001600160a01b0316904790600081818185875af1925050503d8060008114612fb5576040519150601f19603f3d011682016040523d82523d6000602084013e612fba565b606091505b5050505050505050505050565b6001600160a01b0382166000908152602560205260409020805460ff1916821515179055611c5f8282613480565b6001600160a01b03831661301b5760405162461bcd60e51b8152600401610b779061385a565b6001600160a01b0382166130415760405162461bcd60e51b8152600401610b779061389f565b6001600160a01b038316600090815260208190526040902054818110156130b95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b77565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906130f090849061380c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161313c91815260200190565b60405180910390a350505050565b6001600160a01b0382166131aa5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b77565b6001600160a01b0382166000908152602081905260409020548181101561321e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b77565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101612246565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106132a9576132a96136ec565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613302573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061332691906136cf565b81600181518110613339576133396136ec565b6001600160a01b03928316602091820292909201015260095461335f913091168461212e565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac947906133989085906000908690309042906004016138f9565b600060405180830381600087803b1580156133b257600080fd5b505af11580156133c6573d6000803e3d6000fd5b505050505050565b6009546133e69030906001600160a01b03168461212e565b60095460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015613454573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906134799190613935565b5050505050565b6001600160a01b038216600081815260246020908152604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd67469101610d8e565b6000602082840312156134ee57600080fd5b5035919050565b600060208083528351808285015260005b8181101561352257858101830151858201604001528201613506565b81811115613534576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461355f57600080fd5b50565b6000806040838503121561357557600080fd5b82356135808161354a565b946020939093013593505050565b6000602082840312156135a057600080fd5b81356135ab8161354a565b9392505050565b6000806000606084860312156135c757600080fd5b83356135d28161354a565b925060208401356135e28161354a565b929592945050506040919091013590565b801515811461355f57600080fd5b6000806040838503121561361457600080fd5b823561361f8161354a565b9150602083013561362f816135f3565b809150509250929050565b6000806000806080858703121561365057600080fd5b5050823594602084013594506040840135936060013592509050565b6000806040838503121561367f57600080fd5b823561368a8161354a565b9150602083013561362f8161354a565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156136e157600080fd5b81516135ab8161354a565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b8381101561373b5781516001600160a01b031687529582019590820190600101613716565b509495945050505050565b84815260806020820152600061375f6080830186613702565b6001600160a01b03949094166040830152506060015292915050565b600181811c9082168061378f57607f821691505b6020821081036137af57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156137e5576137e56137b5565b500290565b60008261380757634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561381f5761381f6137b5565b500190565b60006020828403121561383657600080fd5b5051919050565b60006020828403121561384f57600080fd5b81516135ab816135f3565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6000828210156138f4576138f46137b5565b500390565b85815284602082015260a06040820152600061391860a0830186613702565b6001600160a01b0394909416606083015250608001529392505050565b60008060006060848603121561394a57600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220ace5349220e151fade2e2109d43805c9af89bcccea2c201eb24f6c05f80b40a464736f6c634300080f0033
Verified Source Code Partial Match
Compiler: v0.8.15+commit.e14f2714
EVM: london
Optimization: Yes (200 runs)
LELON.sol 737 lines
/**
https://x.com/lasereyeselon
lasereyeselon.com
https://t.me/LaserEyesElon
**/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
function _createInitialSupply(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() external virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract LELON is ERC20, Ownable {
uint256 public maxBuy;
uint256 public maxSell;
uint256 public maxWallet;
IDexRouter public dexRouter;
address public lpPair;
bool private swapping;
uint256 public swapTokensAtAmount;
address operationsAddress;
address devAddress;
uint256 public tradingActiveBlock = 0; // 0 means trading is not active
uint256 public blockForPenaltyEnd;
mapping (address => bool) public boughtEarly;
uint256 public botsCaught;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
bool public transferDelayEnabled = true;
uint256 public buyTotalFees;
uint256 public buyOperationsFee;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public buyBurnFee;
uint256 public sellTotalFees;
uint256 public sellOperationsFee;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public sellBurnFee;
uint256 public tokensForOperations;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
uint256 public tokensForBurn;
/******************/
// 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 SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event Launched();
event RemovedLimits();
event ExcludeFromFees(address indexed account, bool isExcluded);
event UpdatedMaxBuyAmount(uint256 newAmount);
event UpdatedMaxSellAmount(uint256 newAmount);
event UpdatedMaxWalletAmount(uint256 newAmount);
event UpdatedOperationsAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event BuyBackTriggered(uint256 amount);
event OwnerForcedSwapBack(uint256 timestamp);
event CaughtEarlyBuyer(address sniper);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
constructor() ERC20("Laser Eyes Elon", "LELON") {
address newOwner = msg.sender;
IDexRouter _dexRouter = IDexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
dexRouter = _dexRouter;
// create pair
lpPair = IDexFactory(_dexRouter.factory()).createPair(address(this), _dexRouter.WETH());
_excludeFromMaxTransaction(address(lpPair), true);
_setAutomatedMarketMakerPair(address(lpPair), true);
uint256 totalSupply = 1 * 1e9 * 1e18;
maxBuy = totalSupply * 2 / 100;
maxSell = totalSupply * 2 / 100;
maxWallet = totalSupply * 2 / 100;
swapTokensAtAmount = totalSupply * 5 / 10000;
buyOperationsFee = 20;
buyLiquidityFee = 0;
buyDevFee = 0;
buyBurnFee = 0;
buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
sellOperationsFee = 20;
sellLiquidityFee = 0;
sellDevFee = 0;
sellBurnFee = 0;
sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
operationsAddress = address(newOwner);
devAddress = address(newOwner);
_createInitialSupply(newOwner, totalSupply);
transferOwnership(newOwner);
}
receive() external payable {}
// only enable if no plan to airdrop
function dropLive(uint256 _deadblocks) external onlyOwner {
require(!tradingActive, "Cannot reenable trading");
tradingActive = true;
swapEnabled = true;
tradingActiveBlock = block.number;
blockForPenaltyEnd = tradingActiveBlock + _deadblocks;
emit Launched();
}
// remove limits after token is stable
function removeLimits() external onlyOwner {
limitsInEffect = false;
transferDelayEnabled = false;
emit RemovedLimits();
}
function manageEarly(address wallet, bool flag) external onlyOwner {
boughtEarly[wallet] = flag;
}
function disableTransferDelay() external onlyOwner {
transferDelayEnabled = false;
}
function updateMaxBuy(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max buy amount lower than 0.2%");
maxBuy = newNum * (10**18);
emit UpdatedMaxBuyAmount(maxBuy);
}
function updateMaxSell(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max sell amount lower than 0.2%");
maxSell = newNum * (10**18);
emit UpdatedMaxSellAmount(maxSell);
}
function updateMaxWallet(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 3 / 1000)/1e18, "Cannot set max wallet amount lower than 0.3%");
maxWallet = newNum * (10**18);
emit UpdatedMaxWalletAmount(maxWallet);
}
function updateSwapTokens(uint256 newAmount) external onlyOwner {
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 1 / 1000, "Swap amount cannot be higher than 0.1% total supply.");
swapTokensAtAmount = newAmount;
}
function _excludeFromMaxTransaction(address updAds, bool isExcluded) private {
_isExcludedMaxTransactionAmount[updAds] = isExcluded;
emit MaxTransactionExclusion(updAds, isExcluded);
}
function excludeFromMax(address updAds, bool isEx) external onlyOwner {
if(!isEx){
require(updAds != lpPair, "Cannot remove uniswap pair from max txn");
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function setAMM(address pair, bool value) external onlyOwner {
require(pair != lpPair, "The pair cannot be removed");
_setAutomatedMarketMakerPair(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
_excludeFromMaxTransaction(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateBuyFees(uint256 _operationsFee, uint256 _liquidityFee, uint256 _DevFee, uint256 _burnFee) external onlyOwner {
buyOperationsFee = _operationsFee;
buyLiquidityFee = _liquidityFee;
buyDevFee = _DevFee;
buyBurnFee = _burnFee;
buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
require(buyTotalFees <= 50, "Must keep fees at 20% or less");
}
function updateSellFees(uint256 _operationsFee, uint256 _liquidityFee, uint256 _DevFee, uint256 _burnFee) external onlyOwner {
sellOperationsFee = _operationsFee;
sellLiquidityFee = _liquidityFee;
sellDevFee = _DevFee;
sellBurnFee = _burnFee;
sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
require(sellTotalFees <= 55, "Must keep fees at 25% or less");
}
function returnToStandardTax() external onlyOwner {
sellOperationsFee = 20;
sellLiquidityFee = 0;
sellDevFee = 0;
sellBurnFee = 0;
sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
require(sellTotalFees <= 50, "Must keep fees at 20% or less");
buyOperationsFee = 55;
buyLiquidityFee = 0;
buyDevFee = 0;
buyBurnFee = 0;
buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
require(buyTotalFees <= 55, "Must keep fees at 25% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function _transfer(address from, address to, uint256 amount) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "amount must be greater than 0");
if(!tradingActive){
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
}
if(blockForPenaltyEnd > 0){
require(!boughtEarly[from] || to == owner() || to == address(0xdead), "Bots cannot transfer tokens in or out except to owner or dead address.");
}
if(limitsInEffect){
if (from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled){
if (to != address(dexRouter) && to != address(lpPair)){
require(_holderLastTransferTimestamp[tx.origin] < block.number - 2 && _holderLastTransferTimestamp[to] < block.number - 2, "_transfer:: Transfer Delay enabled. Try again later.");
_holderLastTransferTimestamp[tx.origin] = block.number;
_holderLastTransferTimestamp[to] = block.number;
}
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxBuy, "Buy transfer amount exceeds the max buy.");
require(amount + balanceOf(to) <= maxWallet, "Cannot Exceed max wallet");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxSell, "Sell transfer amount exceeds the max sell.");
}
else if (!_isExcludedMaxTransactionAmount[to]){
require(amount + balanceOf(to) <= maxWallet, "Cannot Exceed max wallet");
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if(canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = true;
// if 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){
// bot/sniper penalty.
if(earlyBuyPenaltyInEffect() && automatedMarketMakerPairs[from] && !automatedMarketMakerPairs[to] && buyTotalFees > 0){
if(!boughtEarly[to]){
boughtEarly[to] = true;
botsCaught += 1;
emit CaughtEarlyBuyer(to);
}
fees = amount * 99 / 100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForOperations += fees * buyOperationsFee / buyTotalFees;
tokensForDev += fees * buyDevFee / buyTotalFees;
tokensForBurn += fees * buyBurnFee / buyTotalFees;
}
// on sell
else if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
fees = amount * sellTotalFees / 100;
tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
tokensForOperations += fees * sellOperationsFee / sellTotalFees;
tokensForDev += fees * sellDevFee / sellTotalFees;
tokensForBurn += fees * sellBurnFee / sellTotalFees;
}
// on buy
else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount * buyTotalFees / 100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForOperations += fees * buyOperationsFee / buyTotalFees;
tokensForDev += fees * buyDevFee / buyTotalFees;
tokensForBurn += fees * buyBurnFee / buyTotalFees;
}
if(fees > 0){
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function earlyBuyPenaltyInEffect() public view returns (bool){
return block.number < blockForPenaltyEnd;
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = dexRouter.WETH();
_approve(address(this), address(dexRouter), tokenAmount);
// make the swap
dexRouter.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(dexRouter), tokenAmount);
// add the liquidity
dexRouter.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
address(0xdead),
block.timestamp
);
}
function swapBack() private {
if(tokensForBurn > 0 && balanceOf(address(this)) >= tokensForBurn) {
_burn(address(this), tokensForBurn);
}
tokensForBurn = 0;
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForOperations + tokensForDev;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 20){
contractBalance = swapTokensAtAmount * 20;
}
bool success;
// Halve the amount of liquidity tokens
uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
swapTokensForEth(contractBalance - liquidityTokens);
uint256 ethBalance = address(this).balance;
uint256 ethForLiquidity = ethBalance;
uint256 ethForOperations = ethBalance * tokensForOperations / (totalTokensToSwap - (tokensForLiquidity/2));
uint256 ethForDev = ethBalance * tokensForDev / (totalTokensToSwap - (tokensForLiquidity/2));
ethForLiquidity -= ethForOperations + ethForDev;
tokensForLiquidity = 0;
tokensForOperations = 0;
tokensForDev = 0;
tokensForBurn = 0;
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
}
(success,) = address(devAddress).call{value: ethForDev}("");
(success,) = address(operationsAddress).call{value: address(this).balance}("");
}
function transferForeignToken(address _token, address _to) external onlyOwner returns (bool _sent) {
require(_token != address(0), "_token address cannot be 0");
require(_token != address(this), "Can't withdraw native tokens");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
function withdrawStuckETH() external onlyOwner {
bool success;
(success,) = address(msg.sender).call{value: address(this).balance}("");
}
function setOpsAddress(address _operationsAddress) external onlyOwner {
require(_operationsAddress != address(0), "_operationsAddress address cannot be 0");
operationsAddress = payable(_operationsAddress);
}
function setDevAddress(address _devAddress) external onlyOwner {
require(_devAddress != address(0), "_devAddress address cannot be 0");
devAddress = payable(_devAddress);
}
// force Swap back if slippage issues.
function forceSwapBack() external onlyOwner {
require(balanceOf(address(this)) >= swapTokensAtAmount, "Can only swap when token amount is at or higher than restriction");
swapping = true;
swapBack();
swapping = false;
emit OwnerForcedSwapBack(block.timestamp);
}
// useful for buybacks or to reclaim any ETH on the contract in a way that helps holders.
function buyBack(uint256 amountInWei) external onlyOwner {
require(amountInWei <= 10 ether, "May not buy more than 10 ETH in a single buy to reduce sandwich attacks");
address[] memory path = new address[](2);
path[0] = dexRouter.WETH();
path[1] = address(this);
// make the swap
dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountInWei}(
0, // accept any amount of Ethereum
path,
address(0xdead),
block.timestamp
);
emit BuyBackTriggered(amountInWei);
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
blockForPenaltyEnd 0xa62068ce → uint256
botsCaught 0x6b0a894c → uint256
boughtEarly 0x85ecfd28 → bool
buyBurnFee 0xe71dc3f5 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyOperationsFee 0x5a139dd4 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
dexRouter 0x0758d924 → address
earlyBuyPenaltyInEffect 0x58a6d531 → bool
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
maxBuy 0x70db69d6 → uint256
maxSell 0xb8eb3546 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellBurnFee 0xadb873bd → uint256
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellOperationsFee 0x4f77f6c0 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForBurn 0x1d777856 → uint256
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
transferDelayEnabled 0xc876d0b9 → bool
Write Contract 27 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
buyBack 0x053f9040
uint256 amountInWei
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
dropLive 0xae56cee6
uint256 _deadblocks
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMax 0x249ec2bb
address updAds
bool isEx
forceSwapBack 0x51f205e4
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manageEarly 0xb94279ea
address wallet
bool flag
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
returnToStandardTax 0x2e509103
No parameters
setAMM 0xa9d3cd8a
address pair
bool value
setDevAddress 0xd0d41fe1
address _devAddress
setOpsAddress 0x707789c5
address _operationsAddress
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x2e6ed7ef
uint256 _operationsFee
uint256 _liquidityFee
uint256 _DevFee
uint256 _burnFee
updateMaxBuy 0x58881304
uint256 newNum
updateMaxSell 0x9164f9db
uint256 newNum
updateMaxWallet 0x1c499ab0
uint256 newNum
updateSellFees 0xe7ad9fcd
uint256 _operationsFee
uint256 _liquidityFee
uint256 _DevFee
uint256 _burnFee
updateSwapTokens 0x46f1f5de
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
No transactions found for this address