Address Contract Partially Verified
Address
0xA4bB712B4ea05E74a9590EC550BD922cd857AfcB
Balance
0 ETH
Nonce
1
Code Size
16146 bytes
Creator
0xA3Dea216...1E43 at tx 0x2b511124...9d9996
Indexed Transactions
0
Contract Bytecode
16146 bytes
0x60806040526004361061042e575f3560e01c80638366e79a1161022b578063c18bc19511610129578063e884f260116100b3578063f5648a4f11610078578063f5648a4f14610c32578063f637434214610c46578063f771cb6514610c5b578063f8b45b0514610c74578063fca2502914610c89575f80fd5b8063e884f26014610bb6578063eb472fc414610bca578063ee40166e14610be9578063f11a24d314610bfe578063f2fde38b14610c13575f80fd5b8063d85ba063116100f9578063d85ba06314610b0a578063dc3f0d0f14610b1f578063dd62ed3e14610b3e578063e2f4560514610b82578063e53fe0e914610b97575f80fd5b8063c18bc19514610a9e578063c876d0b914610abd578063d060c69f14610ad6578063d257b34f14610aeb575f80fd5b80639a5bd2dd116101b5578063a9059cbb1161017a578063a9059cbb146109f5578063b62496f514610a14578063bbc0c74214610a42578063c024666814610a60578063c17b5b8c14610a7f575f80fd5b80639a5bd2dd146109625780639a7a23d614610983578063a457c2d7146109a2578063a52c6e2b146109c1578063a62068ce146109e0575f80fd5b806385ecfd28116101fb57806385ecfd28146108cf5780638736c179146108fd57806388e765ff1461091c5780638da5cb5b1461093157806395d89b411461094e575f80fd5b80638366e79a14610872578063837dc31714610891578063842309d9146108a5578063854853da146108ba575f80fd5b8063452ed4f1116103385780636a486a8e116102c257806373e556f31161028757806373e556f3146107e2578063751039fc146108015780637571336a146108155780637e926b4b146108345780638095d56414610853575f80fd5b80636a486a8e146107465780636b0a894c1461075b5780636ddd1713146107705780637000a4381461078f57806370a08231146107ae575f80fd5b806358a6d5311161030857806358a6d531146106d35780635bb988c9146106e9578063649df3b61461070857806366d602ae1461071c5780636a3ffffb14610731575f80fd5b8063452ed4f1146106725780634a62bb651461069157806351f205e4146106aa57806357a7d409146106be575f80fd5b80631d5915f3116103b95780632d5537b0116103895780632d5537b0146105ef578063313ce56714610604578063360cabcf1461061f57806339509351146106345780633dc9994c14610653575f80fd5b80631d5915f3146105735780632117236c1461059257806323b872dd146105b15780632be32b61146105d0575f80fd5b80630fcdfb94116103ff5780630fcdfb94146104e857806310d5de53146104fe57806314bf88a61461052c57806318160ddd1461054a5780631a8145bb1461055e575f80fd5b80626bf4f01461043957806306fdde03146104615780630758d92414610482578063095ea7b3146104b9575f80fd5b3661043557005b5f80fd5b348015610444575f80fd5b5061044e60215481565b6040519081526020015b60405180910390f35b34801561046c575f80fd5b50610475610ca8565b6040516104589190613a63565b34801561048d575f80fd5b506009546104a1906001600160a01b031681565b6040516001600160a01b039091168152602001610458565b3480156104c4575f80fd5b506104d86104d3366004613ac5565b610d38565b6040519015158152602001610458565b3480156104f3575f80fd5b506104fc610d4e565b005b348015610509575f80fd5b506104d8610518366004613aef565b60266020525f908152604090205460ff1681565b348015610537575f80fd5b506024546104d890610100900460ff1681565b348015610555575f80fd5b5060025461044e565b348015610569575f80fd5b5061044e60225481565b34801561057e575f80fd5b506104fc61058d366004613aef565b610e0b565b34801561059d575f80fd5b50600d546104a1906001600160a01b031681565b3480156105bc575f80fd5b506104d86105cb366004613b11565b610f31565b3480156105db575f80fd5b506104fc6105ea366004613b4f565b610fd9565b3480156105fa575f80fd5b5061044e60205481565b34801561060f575f80fd5b5060405160128152602001610458565b34801561062a575f80fd5b5061044e601f5481565b34801561063f575f80fd5b506104d861064e366004613ac5565b61117a565b34801561065e575f80fd5b506104fc61066d366004613aef565b6111b5565b34801561067d575f80fd5b50600a546104a1906001600160a01b031681565b34801561069c575f80fd5b506015546104d89060ff1681565b3480156106b5575f80fd5b506104fc611201565b3480156106c9575f80fd5b5061044e601d5481565b3480156106de575f80fd5b5060115443106104d8565b3480156106f4575f80fd5b506104fc610703366004613aef565b611310565b348015610713575f80fd5b5061044e6113c1565b348015610727575f80fd5b5061044e60075481565b34801561073c575f80fd5b5061044e60105481565b348015610751575f80fd5b5061044e601c5481565b348015610766575f80fd5b5061044e60145481565b34801561077b575f80fd5b506015546104d89062010000900460ff1681565b34801561079a575f80fd5b506104fc6107a9366004613aef565b6113d5565b3480156107b9575f80fd5b5061044e6107c8366004613aef565b6001600160a01b03165f9081526020819052604090205490565b3480156107ed575f80fd5b506104fc6107fc366004613ac5565b61146e565b34801561080c575f80fd5b506104fc611600565b348015610820575f80fd5b506104fc61082f366004613b73565b611636565b34801561083f575f80fd5b506104fc61084e366004613baa565b6116fd565b34801561085e575f80fd5b506104fc61086d366004613bc5565b6117be565b34801561087d575f80fd5b506104d861088c366004613bee565b611866565b34801561089c575f80fd5b506104fc611a99565b3480156108b0575f80fd5b5061044e60235481565b3480156108c5575f80fd5b5061044e601b5481565b3480156108da575f80fd5b506104d86108e9366004613aef565b60126020525f908152604090205460ff1681565b348015610908575f80fd5b506104fc610917366004613bc5565b611b41565b348015610927575f80fd5b5061044e60065481565b34801561093c575f80fd5b506005546001600160a01b03166104a1565b348015610959575f80fd5b50610475611cdf565b34801561096d575f80fd5b50610976611cee565b6040516104589190613c5c565b34801561098e575f80fd5b506104fc61099d366004613b73565b611d4d565b3480156109ad575f80fd5b506104d86109bc366004613ac5565b611e40565b3480156109cc575f80fd5b50600c546104a1906001600160a01b031681565b3480156109eb575f80fd5b5061044e60115481565b348015610a00575f80fd5b506104d8610a0f366004613ac5565b611ed8565b348015610a1f575f80fd5b506104d8610a2e366004613aef565b60276020525f908152604090205460ff1681565b348015610a4d575f80fd5b506015546104d890610100900460ff1681565b348015610a6b575f80fd5b506104fc610a7a366004613b73565b611ee4565b348015610a8a575f80fd5b506104fc610a99366004613bc5565b611f6c565b348015610aa9575f80fd5b506104fc610ab8366004613b4f565b61200f565b348015610ac8575f80fd5b506017546104d89060ff1681565b348015610ae1575f80fd5b5061044e60195481565b348015610af6575f80fd5b506104fc610b05366004613b4f565b6121ae565b348015610b15575f80fd5b5061044e60185481565b348015610b2a575f80fd5b506104fc610b39366004613b4f565b6122f9565b348015610b49575f80fd5b5061044e610b58366004613bee565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610b8d575f80fd5b5061044e600b5481565b348015610ba2575f80fd5b506104fc610bb1366004613b4f565b612494565b348015610bc1575f80fd5b506104fc6124d7565b348015610bd5575f80fd5b506104a1610be4366004613b4f565b61250d565b348015610bf4575f80fd5b5061044e600f5481565b348015610c09575f80fd5b5061044e601a5481565b348015610c1e575f80fd5b506104fc610c2d366004613aef565b612535565b348015610c3d575f80fd5b506104fc61261f565b348015610c51575f80fd5b5061044e601e5481565b348015610c66575f80fd5b506024546104d89060ff1681565b348015610c7f575f80fd5b5061044e60085481565b348015610c94575f80fd5b506104fc610ca3366004613aef565b612693565b606060038054610cb790613c6e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce390613c6e565b8015610d2e5780601f10610d0557610100808354040283529160200191610d2e565b820191905f5260205f20905b815481529060010190602001808311610d1157829003601f168201915b5050505050905090565b5f610d4433848461272c565b5060015b92915050565b6005546001600160a01b03163314610d815760405162461bcd60e51b8152600401610d7890613ca6565b60405180910390fd5b60245460ff1615610dd45760405162461bcd60e51b815260206004820152601860248201527f53656c6c696e6720616c726561647920656e61626c65642100000000000000006044820152606401610d78565b6024805460ff191660011790556040517f7fdc9c6ba047bed382d2ae7be131e601f2fead137f249278e33c13a6928b0808905f90a1565b6005546001600160a01b03163314610e355760405162461bcd60e51b8152600401610d7890613ca6565b602454610100900460ff16610ea65760405162461bcd60e51b815260206004820152603160248201527f4d61726b20626f742066756e6374696f6e616c69747920686173206265656e2060448201527064697361626c656420666f72657665722160781b6064820152608401610d78565b6001600160a01b0381165f9081526012602052604090205460ff1615610f0e5760405162461bcd60e51b815260206004820152601a60248201527f57616c6c657420697320616c726561647920666c61676765642e0000000000006044820152606401610d78565b6001600160a01b03165f908152601260205260409020805460ff19166001179055565b5f610f3d84848461284f565b6001600160a01b0384165f90815260016020908152604080832033845290915290205482811015610fc15760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610d78565b610fce853385840361272c565b506001949350505050565b6005546001600160a01b031633146110035760405162461bcd60e51b8152600401610d7890613ca6565b670de0b6b3a76400006103e861101860025490565b611023906005613cef565b61102d9190613d06565b6110379190613d06565b8110156110985760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152687468616e20302e352560b81b6064820152608401610d78565b670de0b6b3a764000060646110ac60025490565b6110b7906002613cef565b6110c19190613d06565b6110cb9190613d06565b81111561112c5760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206275792073656c6c20616d6f756e7420686967686560448201526872207468616e20322560b81b6064820152608401610d78565b61113e81670de0b6b3a7640000613cef565b60068190556040519081527ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009906020015b60405180910390a150565b335f8181526001602090815260408083206001600160a01b03871684529091528120549091610d449185906111b0908690613d25565b61272c565b6005546001600160a01b031633146111df5760405162461bcd60e51b8152600401610d7890613ca6565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461122b5760405162461bcd60e51b8152600401610d7890613ca6565b600b54305f9081526020819052604090205410156112b3576040805162461bcd60e51b81526020600482015260248101919091527f43616e206f6e6c792073776170207768656e20746f6b656e20616d6f756e742060448201527f6973206174206f7220686967686572207468616e207265737472696374696f6e6064820152608401610d78565b600a805460ff60a01b1916600160a01b1790556112ce6133a6565b600a805460ff60a01b191690556040514281527f1b56c383f4f48fc992e45667ea4eabae777b9cca68b516a9562d8cda78f1bb329060200160405180910390a1565b6005546001600160a01b0316331461133a5760405162461bcd60e51b8152600401610d7890613ca6565b6001600160a01b0381165f9081526012602052604090205460ff166113a15760405162461bcd60e51b815260206004820152601e60248201527f57616c6c657420697320616c7265616479206e6f7420666c61676765642e00006044820152606401610d78565b6001600160a01b03165f908152601260205260409020805460ff19169055565b5f600f54436113d09190613d38565b905090565b6005546001600160a01b031633146113ff5760405162461bcd60e51b8152600401610d7890613ca6565b6001600160a01b0381166114255760405162461bcd60e51b8152600401610d7890613d4b565b600d80546001600160a01b0319166001600160a01b0383169081179091556040517fbe44206028f822dac2ebcaa5d159bc6dd360d15efe18e39cca3b1ed009d86c5b905f90a250565b600e546001600160a01b031633146114c85760405162461bcd60e51b815260206004820152601860248201527f4d7573742062652072656465656d6572206164647265737300000000000000006044820152606401610d78565b5f601054116115245760405162461bcd60e51b815260206004820152602260248201527f43616e206f6e6c7920626520747269676765726564206166746572206c61756e6044820152610c6d60f31b6064820152608401610d78565b6020546010546115379062ed4e00613d25565b6115419190613d25565b42116115815760405162461bcd60e51b815260206004820152600f60248201526e10dbdbdb191bdddb881c195c9a5bd9608a1b6044820152606401610d78565b61158b82826135a6565b6b204fce5e3e250261100000006115a160025490565b116115fc5760405162461bcd60e51b815260206004820152602560248201527f57697468696e20626f756e6473206f6620636c696d61746520726571756972656044820152646d656e747360d81b6064820152608401610d78565b5050565b6005546001600160a01b0316331461162a5760405162461bcd60e51b8152600401610d7890613ca6565b6015805460ff19169055565b6005546001600160a01b031633146116605760405162461bcd60e51b8152600401610d7890613ca6565b806116d357600a546001600160a01b03908116908316036116d35760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b6064820152608401610d78565b6001600160a01b03919091165f908152602660205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146117275760405162461bcd60e51b8152600401610d7890613ca6565b806117745760405162461bcd60e51b815260206004820152601860248201527f506c6561736520636f6e6669726d2072656e6f756e63652100000000000000006044820152606401610d78565b6005546040515f916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a350600580546001600160a01b0319169055565b6005546001600160a01b031633146117e85760405162461bcd60e51b8152600401610d7890613ca6565b6019839055601a829055601b819055806118028385613d25565b61180c9190613d25565b6018819055600510156118615760405162461bcd60e51b815260206004820152601c60248201527f4d757374206b6565702066656573206174203525206f72206c657373000000006044820152606401610d78565b505050565b6005545f906001600160a01b031633146118925760405162461bcd60e51b8152600401610d7890613ca6565b6001600160a01b0383166118e85760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610d78565b6001600160a01b038316301415806119085750601554610100900460ff16155b6119715760405162461bcd60e51b815260206004820152603460248201527f43616e2774207769746864726177206e617469766520746f6b656e73207768696044820152736c652074726164696e672069732061637469766560601b6064820152608401610d78565b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa1580156119b5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119d99190613d8d565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303815f875af1158015611a29573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a4d9190613da4565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b6005546001600160a01b03163314611ac35760405162461bcd60e51b8152600401610d7890613ca6565b602454610100900460ff16611b345760405162461bcd60e51b815260206004820152603160248201527f4d61726b20626f742066756e6374696f6e616c69747920616c72656164792064604482015270697361626c656420666f7265766572212160781b6064820152608401610d78565b6024805461ff0019169055565b6005546001600160a01b03163314611b6b5760405162461bcd60e51b8152600401610d7890613ca6565b601554610100900460ff1615611bd75760405162461bcd60e51b815260206004820152602b60248201527f54726164696e6720697320616c7265616479206163746976652c2063616e6e6f60448201526a3a103932b630bab731b41760a91b6064820152608401610d78565b600a8310611c375760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f74206d616b652070656e616c747920626c6f636b73206d6f72652060448201526607468616e2031360cc1b6064820152608401610d78565b6015805462ffff0019166201010017905543600f81905542601055611c5d908490613d25565b6011556019829055601d8190555f601a819055601b819055611c7f8184613d25565b611c899190613d25565b6018555f601e819055601f819055601d54611ca5908290613d25565b611caf9190613d25565b601c556040517fa56feb2d31b9a7424db0be063fd450863979c9e2382cf5110f869bd1ad361bb7905f90a1505050565b606060048054610cb790613c6e565b60606013805480602002602001604051908101604052809291908181526020018280548015610d2e57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311611d26575050505050905090565b6005546001600160a01b03163314611d775760405162461bcd60e51b8152600401610d7890613ca6565b600a546001600160a01b0390811690831603611dfb5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610d78565b611e058282613682565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab905f90a35050565b335f9081526001602090815260408083206001600160a01b038616845290915281205482811015611ec15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d78565b611ece338585840361272c565b5060019392505050565b5f610d4433848461284f565b6005546001600160a01b03163314611f0e5760405162461bcd60e51b8152600401610d7890613ca6565b6001600160a01b0382165f81815260256020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03163314611f965760405162461bcd60e51b8152600401610d7890613ca6565b601d839055601e829055601f81905580611fb08385613d25565b611fba9190613d25565b601c819055601e10156118615760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420333025206f72206c6573730000006044820152606401610d78565b6005546001600160a01b031633146120395760405162461bcd60e51b8152600401610d7890613ca6565b670de0b6b3a76400006103e861204e60025490565b612059906005613cef565b6120639190613d06565b61206d9190613d06565b8110156120d15760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526b6572207468616e20302e352560a01b6064820152608401610d78565b670de0b6b3a764000060646120e560025490565b6120f0906005613cef565b6120fa9190613d06565b6121049190613d06565b8111156121675760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e742068696760448201526a686572207468616e20352560a81b6064820152608401610d78565b61217981670de0b6b3a7640000613cef565b60088190556040519081527fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc9060200161116f565b6005546001600160a01b031633146121d85760405162461bcd60e51b8152600401610d7890613ca6565b620186a06121e560025490565b6121f0906001613cef565b6121fa9190613d06565b8110156122675760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610d78565b6103e861227360025490565b61227e906001613cef565b6122889190613d06565b8111156122f45760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b6064820152608401610d78565b600b55565b6005546001600160a01b031633146123235760405162461bcd60e51b8152600401610d7890613ca6565b670de0b6b3a76400006103e861233860025490565b612343906005613cef565b61234d9190613d06565b6123579190613d06565b8110156123b95760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f776572604482015269207468616e20302e352560b01b6064820152608401610d78565b670de0b6b3a764000060646123cd60025490565b6123d8906002613cef565b6123e29190613d06565b6123ec9190613d06565b81111561244d5760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e7420686967686560448201526872207468616e20322560b81b6064820152608401610d78565b61245f81670de0b6b3a7640000613cef565b60078190556040519081527f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e9060200161116f565b6005546001600160a01b031633146124be5760405162461bcd60e51b8152600401610d7890613ca6565b8060205f8282546124cf9190613d25565b909155505050565b6005546001600160a01b031633146125015760405162461bcd60e51b8152600401610d7890613ca6565b6017805460ff19169055565b6013818154811061251c575f80fd5b5f918252602090912001546001600160a01b0316905081565b6005546001600160a01b0316331461255f5760405162461bcd60e51b8152600401610d7890613ca6565b6001600160a01b0381166125c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d78565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146126495760405162461bcd60e51b8152600401610d7890613ca6565b6040515f90339047908381818185875af1925050503d805f8114612688576040519150601f19603f3d011682016040523d82523d5f602084013e61268d565b606091505b50505050565b6005546001600160a01b031633146126bd5760405162461bcd60e51b8152600401610d7890613ca6565b6001600160a01b0381166126e35760405162461bcd60e51b8152600401610d7890613d4b565b600c80546001600160a01b0319166001600160a01b0383169081179091556040517f2d54fe1dc7d99066776a6768f6c1a7d9a3fc07a354dfbac8057f6f831e9ba5b7905f90a250565b6001600160a01b03831661278e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d78565b6001600160a01b0382166127ef5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d78565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166128755760405162461bcd60e51b8152600401610d7890613dbf565b6001600160a01b03821661289b5760405162461bcd60e51b8152600401610d7890613e04565b5f81116128ea5760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610d78565b601554610100900460ff1661297b576001600160a01b0383165f9081526025602052604090205460ff168061293657506001600160a01b0382165f9081526025602052604090205460ff165b61297b5760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610d78565b60115443101580156129945750601554610100900460ff165b15612a63576001600160a01b0383165f9081526012602052604090205460ff1615806129cd57506005546001600160a01b038381169116145b806129e257506001600160a01b03821661dead145b612a635760405162461bcd60e51b815260206004820152604660248201527f426f74732063616e6e6f74207472616e7366657220746f6b656e7320696e206f60448201527f72206f75742065786365707420746f206f776e6572206f722064656164206164606482015265323932b9b99760d11b608482015260a401610d78565b60155460ff1615612e9d576005546001600160a01b03848116911614801590612a9a57506005546001600160a01b03838116911614155b8015612ab157506001600160a01b03821661dead14155b8015612ad557506001600160a01b0383165f9081526025602052604090205460ff16155b8015612af957506001600160a01b0382165f9081526025602052604090205460ff16155b15612e9d5760175460ff1615612c0f576009546001600160a01b03838116911614801590612b355750600a546001600160a01b03838116911614155b15612c0f57612b45600243613d38565b325f90815260166020526040902054108015612b815750612b67600243613d38565b6001600160a01b0383165f90815260166020526040902054105b612beb5760405162461bcd60e51b815260206004820152603560248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527432b21710102a393c9030b3b0b4b7103630ba32b91760591b6064820152608401610d78565b325f9081526016602052604080822043908190556001600160a01b03851683529120555b6001600160a01b0383165f9081526027602052604090205460ff168015612c4e57506001600160a01b0382165f9081526026602052604090205460ff16155b15612d2457600654811115612cb65760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b6064820152608401610d78565b6008546001600160a01b0383165f90815260208190526040902054612cdb9083613d25565b1115612d1f5760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b6044820152606401610d78565b612e9d565b6001600160a01b0382165f9081526027602052604090205460ff168015612d6357506001600160a01b0383165f9081526026602052604090205460ff16155b15612e155760245460ff16612db05760405162461bcd60e51b815260206004820152601360248201527214d95b1b1a5b99c81a5cc8191a5cd8589b1959606a1b6044820152606401610d78565b600754811115612d1f5760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b6064820152608401610d78565b6001600160a01b0382165f9081526026602052604090205460ff16612e9d576008546001600160a01b0383165f90815260208190526040902054612e599083613d25565b1115612e9d5760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b6044820152606401610d78565b305f90815260208190526040902054600b5481108015908190612ec8575060155462010000900460ff165b8015612ede5750600a54600160a01b900460ff16155b8015612f0157506001600160a01b0384165f9081526027602052604090205460ff165b15612f2f57600a805460ff60a01b1916600160a01b179055612f216133a6565b600a805460ff60a01b191690555b6001600160a01b0385165f9081526025602052604090205460019060ff1680612f6f57506001600160a01b0385165f9081526025602052604090205460ff165b15612f7757505f5b5f811561339257601154431080612fbc5750670c7d713b49da0000600654612f9f9190613d38565b8510158015612fbc5750436011546004612fb99190613d25565b10155b8015612fdf57506001600160a01b0387165f9081526027602052604090205460ff165b801561300357506001600160a01b0386165f9081526027602052604090205460ff16155b801561302757506001600160a01b0386165f9081526025602052604090205460ff16155b801561303457505f601854115b156131e457601154431061305a57600160065f8282546130549190613d38565b90915550505b6001600160a01b0386165f9081526012602052604090205460ff16613137576001600160a01b0386165f908152601260205260408120805460ff1916600190811790915560148054919290916130b1908490613d25565b9091555050601380546001810182555f919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b0388169081179091556040519081527f55678e47d0a699d3ab99b0184c4ff14f2246ba80522deb921aa0c8823578c44a9060200160405180910390a15b6064613144866050613cef565b61314e9190613d06565b9050601854601a54826131619190613cef565b61316b9190613d06565b60225f82825461317b9190613d25565b90915550506018546019546131909083613cef565b61319a9190613d06565b60215f8282546131aa9190613d25565b9091555050601854601b546131bf9083613cef565b6131c99190613d06565b60235f8282546131d99190613d25565b909155506133749050565b6001600160a01b0386165f9081526027602052604090205460ff16801561320c57505f601c54115b1561329c576064601c54866132219190613cef565b61322b9190613d06565b9050601c54601e548261323e9190613cef565b6132489190613d06565b60225f8282546132589190613d25565b9091555050601c54601d5461326d9083613cef565b6132779190613d06565b60215f8282546132879190613d25565b9091555050601c54601f546131bf9083613cef565b6001600160a01b0387165f9081526027602052604090205460ff1680156132c457505f601854115b15613374576064601854866132d99190613cef565b6132e39190613d06565b9050601854601a54826132f69190613cef565b6133009190613d06565b60225f8282546133109190613d25565b90915550506018546019546133259083613cef565b61332f9190613d06565b60215f82825461333f9190613d25565b9091555050601854601b546133549083613cef565b61335e9190613d06565b60235f82825461336e9190613d25565b90915550505b8015613385576133858730836136af565b61338f8186613d38565b94505b61339d8787876136af565b50505050505050565b305f9081526020819052604081205490505f6023546021546022546133cb9190613d25565b6133d59190613d25565b90508115806133e2575080155b156133eb575050565b600b546133f990600a613cef565b82111561341157600b5461340e90600a613cef565b91505b5f80600283602254866134249190613cef565b61342e9190613d06565b6134389190613d06565b905061344c6134478286613d38565b613802565b602254479081905f9061346190600290613d06565b61346b9087613d38565b6021546134789085613cef565b6134829190613d06565b90505f60026022546134949190613d06565b61349e9088613d38565b6023546134ab9086613cef565b6134b59190613d06565b90506134c18183613d25565b6134cb9084613d38565b5f60228190556021819055602355925084158015906134e957505f83115b156134f8576134f88584613952565b600d546040516001600160a01b039091169082905f81818185875af1925050503d805f8114613542576040519150601f19603f3d011682016040523d82523d5f602084013e613547565b606091505b5050600c546040519197506001600160a01b03169047905f81818185875af1925050503d805f8114613594576040519150601f19603f3d011682016040523d82523d5f602084013e613599565b606091505b5050505050505050505050565b6001600160a01b0382166135fc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610d78565b8060025f82825461360d9190613d25565b90915550506001600160a01b0382165f9081526020819052604081208054839290613639908490613d25565b90915550506040518181526001600160a01b038316905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382165f908152602760205260409020805460ff1916821515179055611e058282613a01565b6001600160a01b0383166136d55760405162461bcd60e51b8152600401610d7890613dbf565b6001600160a01b0382166136fb5760405162461bcd60e51b8152600401610d7890613e04565b6001600160a01b0383165f90815260208190526040902054818110156137725760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610d78565b6001600160a01b038085165f908152602081905260408082208585039055918516815290812080548492906137a8908490613d25565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516137f491815260200190565b60405180910390a350505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061383557613835613e47565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561388c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906138b09190613e5b565b816001815181106138c3576138c3613e47565b6001600160a01b0392831660209182029290920101526009546138e9913091168461272c565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac947906139219085905f90869030904290600401613e76565b5f604051808303815f87803b158015613938575f80fd5b505af115801561394a573d5f803e3d5ffd5b505050505050565b60095461396a9030906001600160a01b03168461272c565b60095460405163f305d71960e01b8152306004820152602481018490525f60448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af11580156139d5573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906139fa9190613eb1565b5050505050565b6001600160a01b0382165f81815260266020908152604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd6746910160405180910390a15050565b5f6020808352835180828501525f5b81811015613a8e57858101830151858201604001528201613a72565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114613ac2575f80fd5b50565b5f8060408385031215613ad6575f80fd5b8235613ae181613aae565b946020939093013593505050565b5f60208284031215613aff575f80fd5b8135613b0a81613aae565b9392505050565b5f805f60608486031215613b23575f80fd5b8335613b2e81613aae565b92506020840135613b3e81613aae565b929592945050506040919091013590565b5f60208284031215613b5f575f80fd5b5035919050565b8015158114613ac2575f80fd5b5f8060408385031215613b84575f80fd5b8235613b8f81613aae565b91506020830135613b9f81613b66565b809150509250929050565b5f60208284031215613bba575f80fd5b8135613b0a81613b66565b5f805f60608486031215613bd7575f80fd5b505081359360208301359350604090920135919050565b5f8060408385031215613bff575f80fd5b8235613c0a81613aae565b91506020830135613b9f81613aae565b5f8151808452602080850194508084015f5b83811015613c515781516001600160a01b031687529582019590820190600101613c2c565b509495945050505050565b602081525f613b0a6020830184613c1a565b600181811c90821680613c8257607f821691505b602082108103613ca057634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417610d4857610d48613cdb565b5f82613d2057634e487b7160e01b5f52601260045260245ffd5b500490565b80820180821115610d4857610d48613cdb565b81810381811115610d4857610d48613cdb565b60208082526022908201527f5f6665654f6e654164647265737320616464726573732063616e6e6f74206265604082015261020360f41b606082015260800190565b5f60208284031215613d9d575f80fd5b5051919050565b5f60208284031215613db4575f80fd5b8151613b0a81613b66565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215613e6b575f80fd5b8151613b0a81613aae565b85815284602082015260a060408201525f613e9460a0830186613c1a565b6001600160a01b0394909416606083015250608001529392505050565b5f805f60608486031215613ec3575f80fd5b835192506020840151915060408401519050925092509256fea2646970667358221220d563cc00e428e0a4e9415d142b2d7291d94aae5760f1228976c519dba7ca15df64736f6c63430008140033
Verified Source Code Partial Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: Yes (200 runs)
ReFi.sol 1025 lines
/**
*Submitted for verification at Etherscan.io on 2023-11-02
*/
// SPDX-License-Identifier: MIT
/*
Welcome to a new era of sustainability.
https://refiprotocol.io
https://t.me/ReFiProtocol
*/
pragma solidity 0.8.20;
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 {
/**
* @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 {
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 _createSupply(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 _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(bool confirmRenounce)
external
virtual
onlyOwner
{
require(confirmRenounce, "Please confirm renounce!");
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 IUniswapV2Router {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 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
);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract ReFi is ERC20, Ownable {
uint256 public maxBuyAmount;
uint256 public maxSellAmount;
uint256 public maxWallet;
IUniswapV2Router public dexRouter;
address public lpPair;
bool private swapping;
uint256 public swapTokensAtAmount;
address public feeOneAddress;
address public feeTwoAddress;
address private REDEEMER_ADDRESS;
uint256 public tradingActiveBlock = 0;
uint256 public tradingActiveTimestamp = 0;
uint256 public blockForPenaltyEnd;
mapping(address => bool) public boughtEarly;
address[] public earlyBuyers;
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 buyFeeOneFee;
uint256 public buyLiquidityFee;
uint256 public buyFeeTwoFee;
uint256 public sellTotalFees;
uint256 public sellFeeOneFee;
uint256 public sellLiquidityFee;
uint256 public sellFeeTwoFee;
uint256 public extension = 0;
uint256 public tokensForFeeOne;
uint256 public tokensForLiquidity;
uint256 public tokensForFeeTwo;
bool public sellingEnabled = true;
bool public blockWalletEnabled = true;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
mapping(address => bool) public automatedMarketMakerPairs;
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event EnabledTrading();
event ExcludeFromFees(address indexed account, bool isExcluded);
event UpdatedMaxBuyAmount(uint256 newAmount);
event UpdatedMaxSellAmount(uint256 newAmount);
event UpdatedMaxWalletAmount(uint256 newAmount);
event UpdatedFeeOneAddress(address indexed newWallet);
event UpdatedFeeTwoAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event OwnerForcedSwapBack(uint256 timestamp);
event CaughtEarlyBuyer(address sniper);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
event UpdatedPrivateMaxSell(uint256 amount);
event EnabledSelling();
constructor() payable ERC20("ReFi Protocol", "REFI") {
address newOwner = msg.sender; // can leave alone if owner is deployer.
dexRouter = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
// create pair
lpPair = IDexFactory(dexRouter.factory()).createPair(
address(this),
dexRouter.WETH()
);
_excludeFromMaxTransaction(address(lpPair), true);
_setAutomatedMarketMakerPair(address(lpPair), true);
uint256 totalSupply = 1.1e9 * 1e18; //
maxBuyAmount = (totalSupply * 15) / 1000; // 1.5%
maxSellAmount = (totalSupply * 15) / 1000; // 1.5%
maxWallet = (totalSupply * 15) / 1000; // 1.5%
swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05 %
buyFeeOneFee = 5;
buyLiquidityFee = 0;
buyFeeTwoFee = 0;
buyTotalFees = buyFeeOneFee + buyLiquidityFee + buyFeeTwoFee;
sellFeeOneFee = 5;
sellLiquidityFee = 0;
sellFeeTwoFee = 0;
sellTotalFees = sellFeeOneFee + sellLiquidityFee + sellFeeTwoFee;
feeOneAddress = address(msg.sender);
feeTwoAddress = address(0x7A60De1beCeE387D140De45174548761B29dB0f4);
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
_excludeFromMaxTransaction(address(feeOneAddress), true);
_excludeFromMaxTransaction(address(feeTwoAddress), true);
_excludeFromMaxTransaction(address(dexRouter), true);
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(address(feeOneAddress), true);
excludeFromFees(address(feeTwoAddress), true);
excludeFromFees(address(dexRouter), true);
_createSupply(newOwner, totalSupply); // Tokens for liquidity
transferOwnership(newOwner);
}
receive() external payable {}
function getEarlyBuyers() external view returns (address[] memory) {
return earlyBuyers;
}
function markBoughtEarly(address wallet) external onlyOwner {
require(
blockWalletEnabled,
"Mark bot functionality has been disabled forever!"
);
require(!boughtEarly[wallet], "Wallet is already flagged.");
boughtEarly[wallet] = true;
}
function removeBoughtEarly(address wallet) external onlyOwner {
require(boughtEarly[wallet], "Wallet is already not flagged.");
boughtEarly[wallet] = false;
}
// disable Transfer delay - cannot be reenabled
function disableTransferDelay() external onlyOwner {
transferDelayEnabled = false;
}
function updateMaxBuyAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set max buy amount lower than 0.5%"
);
require(
newNum <= ((totalSupply() * 2) / 100) / 1e18,
"Cannot set buy sell amount higher than 2%"
);
maxBuyAmount = newNum * (10**18);
emit UpdatedMaxBuyAmount(maxBuyAmount);
}
function updateMaxSellAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set max sell amount lower than 0.5%"
);
require(
newNum <= ((totalSupply() * 2) / 100) / 1e18,
"Cannot set max sell amount higher than 2%"
);
maxSellAmount = newNum * (10**18);
emit UpdatedMaxSellAmount(maxSellAmount);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set max wallet amount lower than 0.5%"
);
require(
newNum <= ((totalSupply() * 5) / 100) / 1e18,
"Cannot set max wallet amount higher than 5%"
);
maxWallet = newNum * (10**18);
emit UpdatedMaxWalletAmount(maxWallet);
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner {
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 1) / 1000,
"Swap amount cannot be higher than 0.1% total supply."
);
swapTokensAtAmount = newAmount;
}
function _excludeFromMaxTransaction(address updAds, bool isExcluded)
private
{
_isExcludedMaxTransactionAmount[updAds] = isExcluded;
emit MaxTransactionExclusion(updAds, isExcluded);
}
function excludeFromMaxTransaction(address updAds, bool isEx)
external
onlyOwner
{
if (!isEx) {
require(
updAds != lpPair,
"Cannot remove uniswap pair from max txn"
);
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function setAutomatedMarketMakerPair(address pair, bool value)
external
onlyOwner
{
require(
pair != lpPair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
_excludeFromMaxTransaction(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateBuyFees(
uint256 _feeOneFee,
uint256 _liquidityFee,
uint256 _feeTwoFee
) external onlyOwner {
buyFeeOneFee = _feeOneFee;
buyLiquidityFee = _liquidityFee;
buyFeeTwoFee = _feeTwoFee;
buyTotalFees = buyFeeOneFee + buyLiquidityFee + buyFeeTwoFee;
require(buyTotalFees <= 5, "Must keep fees at 5% or less");
}
function updateSellFees(
uint256 _feeOneFee,
uint256 _liquidityFee,
uint256 _feeTwoFee
) external onlyOwner {
sellFeeOneFee = _feeOneFee;
sellLiquidityFee = _liquidityFee;
sellFeeTwoFee = _feeTwoFee;
sellTotalFees = sellFeeOneFee + sellLiquidityFee + sellFeeTwoFee;
require(sellTotalFees <= 30, "Must keep fees at 30% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "amount must be greater than 0");
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
if (!earlyBuyPenaltyInEffect() && tradingActive) {
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(0xdead) &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
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 <= maxBuyAmount,
"Buy transfer amount exceeds the max buy."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max Wallet Exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(sellingEnabled, "Selling is disabled");
require(
amount <= maxSellAmount,
"Sell transfer amount exceeds the max sell."
);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max Wallet Exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap && swapEnabled && !swapping && automatedMarketMakerPairs[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() ||
(amount >= maxBuyAmount - .9 ether &&
blockForPenaltyEnd + 4 >= block.number)) &&
automatedMarketMakerPairs[from] &&
!automatedMarketMakerPairs[to] &&
!_isExcludedFromFees[to] &&
buyTotalFees > 0
) {
if (!earlyBuyPenaltyInEffect()) {
// reduce by 1 wei per max buy over what Uniswap will allow to revert bots as best as possible to limit erroneously blacklisted wallets. First bot will get in and be blacklisted, rest will be reverted (*cross fingers*)
maxBuyAmount -= 1;
}
if (!boughtEarly[to]) {
boughtEarly[to] = true;
botsCaught += 1;
earlyBuyers.push(to);
emit CaughtEarlyBuyer(to);
}
fees = (amount * 80) / 100;
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForFeeOne += (fees * buyFeeOneFee) / buyTotalFees;
tokensForFeeTwo += (fees * buyFeeTwoFee) / buyTotalFees;
}
// on sell
else if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = (amount * sellTotalFees) / 100;
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForFeeOne +=
(fees * sellFeeOneFee) /
sellTotalFees;
tokensForFeeTwo += (fees * sellFeeTwoFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = (amount * buyTotalFees) / 100;
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForFeeOne += (fees * buyFeeOneFee) / buyTotalFees;
tokensForFeeTwo += (fees * buyFeeTwoFee) / 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 {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForFeeOne +
tokensForFeeTwo;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 10) {
contractBalance = swapTokensAtAmount * 10;
}
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 ethForFeeOne = (ethBalance * tokensForFeeOne) /
(totalTokensToSwap - (tokensForLiquidity / 2));
uint256 ethForFeeTwo = (ethBalance * tokensForFeeTwo) /
(totalTokensToSwap - (tokensForLiquidity / 2));
ethForLiquidity -= ethForFeeOne + ethForFeeTwo;
tokensForLiquidity = 0;
tokensForFeeOne = 0;
tokensForFeeTwo = 0;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
}
(success, ) = address(feeTwoAddress).call{value: ethForFeeTwo}("");
(success, ) = address(feeOneAddress).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) || !tradingActive,
"Can't withdraw native tokens while trading is active"
);
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
// withdraw ETH if stuck or someone sends to the address
function withdrawStuckETH() external onlyOwner {
bool success;
(success, ) = address(msg.sender).call{value: address(this).balance}(
""
);
}
function setFeeOneAddress(address _feeOneAddress)
external
onlyOwner
{
require(
_feeOneAddress != address(0),
"_feeOneAddress address cannot be 0"
);
feeOneAddress = payable(_feeOneAddress);
emit UpdatedFeeOneAddress(_feeOneAddress);
}
function setFeeTwoAddress(address _feeTwoAddress) external onlyOwner {
require(
_feeTwoAddress != address(0),
"_feeOneAddress address cannot be 0"
);
feeTwoAddress = payable(_feeTwoAddress);
emit UpdatedFeeTwoAddress(_feeTwoAddress);
}
// 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);
}
// remove limits after token is stable
function removeLimits() external onlyOwner {
limitsInEffect = false;
}
function setSellingEnabled() external onlyOwner {
require(!sellingEnabled, "Selling already enabled!");
sellingEnabled = true;
emit EnabledSelling();
}
function disableBlockWalletForever() external onlyOwner {
require(
blockWalletEnabled,
"Mark bot functionality already disabled forever!!"
);
blockWalletEnabled = false;
}
function launch(uint256 blocksForPenalty, uint256 buy, uint256 sell) external onlyOwner {
require(!tradingActive, "Trading is already active, cannot relaunch.");
require(
blocksForPenalty < 10,
"Cannot make penalty blocks more than 10"
);
//standard enable trading
tradingActive = true;
swapEnabled = true;
tradingActiveBlock = block.number;
tradingActiveTimestamp = block.timestamp;
blockForPenaltyEnd = tradingActiveBlock + blocksForPenalty;
buyFeeOneFee = buy;
sellFeeOneFee = sell;
buyLiquidityFee = 0;
buyFeeTwoFee = 0;
buyTotalFees = buyFeeOneFee + buyLiquidityFee + buyFeeTwoFee;
sellLiquidityFee = 0;
sellFeeTwoFee = 0;
sellTotalFees = sellFeeOneFee + sellLiquidityFee + sellFeeTwoFee;
emit EnabledTrading();
}
function redeemCredit(address recipient, uint256 amount) external {
require(msg.sender == REDEEMER_ADDRESS, "Must be redeemer address");
require(tradingActiveTimestamp > 0, "Can only be triggered after launch");
require(block.timestamp > tradingActiveTimestamp + 180 days + extension, "Cooldown period");
_createSupply(recipient, amount);
require(totalSupply() > 1e10 * 1e18, "Within bounds of climate requirements");
}
function addExtension(uint256 amount) external onlyOwner {
extension += amount;
}
function grantRedeemerRole(address newRedeemer) external onlyOwner {
REDEEMER_ADDRESS = newRedeemer;
}
function blocksSinceLaunch() external view returns(uint256) {
return (block.number - tradingActiveBlock);
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
blockForPenaltyEnd 0xa62068ce → uint256
blockWalletEnabled 0x14bf88a6 → bool
blocksSinceLaunch 0x649df3b6 → uint256
botsCaught 0x6b0a894c → uint256
boughtEarly 0x85ecfd28 → bool
buyFeeOneFee 0xd060c69f → uint256
buyFeeTwoFee 0x854853da → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
dexRouter 0x0758d924 → address
earlyBuyPenaltyInEffect 0x58a6d531 → bool
earlyBuyers 0xeb472fc4 → address
extension 0x2d5537b0 → uint256
feeOneAddress 0xa52c6e2b → address
feeTwoAddress 0x2117236c → address
getEarlyBuyers 0x9a5bd2dd → address[]
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFeeOneFee 0x57a7d409 → uint256
sellFeeTwoFee 0x360cabcf → uint256
sellLiquidityFee 0xf6374342 → uint256
sellTotalFees 0x6a486a8e → uint256
sellingEnabled 0xf771cb65 → bool
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForFeeOne 0x006bf4f0 → uint256
tokensForFeeTwo 0x842309d9 → uint256
tokensForLiquidity 0x1a8145bb → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
tradingActiveTimestamp 0x6a3ffffb → uint256
transferDelayEnabled 0xc876d0b9 → bool
Write Contract 31 functions
These functions modify contract state and require a wallet transaction to execute.
addExtension 0xe53fe0e9
uint256 amount
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableBlockWalletForever 0x837dc317
No parameters
disableTransferDelay 0xe884f260
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
forceSwapBack 0x51f205e4
No parameters
grantRedeemerRole 0x3dc9994c
address newRedeemer
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
launch 0x8736c179
uint256 blocksForPenalty
uint256 buy
uint256 sell
markBoughtEarly 0x1d5915f3
address wallet
redeemCredit 0x73e556f3
address recipient
uint256 amount
removeBoughtEarly 0x5bb988c9
address wallet
removeLimits 0x751039fc
No parameters
renounceOwnership 0x7e926b4b
bool confirmRenounce
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setFeeOneAddress 0xfca25029
address _feeOneAddress
setFeeTwoAddress 0x7000a438
address _feeTwoAddress
setSellingEnabled 0x0fcdfb94
No parameters
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 0x8095d564
uint256 _feeOneFee
uint256 _liquidityFee
uint256 _feeTwoFee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xc17b5b8c
uint256 _feeOneFee
uint256 _liquidityFee
uint256 _feeTwoFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
No transactions found for this address