Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x2F8221E82E0D4669AD66eABf02a5bAeD43ea49E7
Balance 0.040877 ETH
Nonce 1
Code Size 11970 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11970 bytes
0x6080604052600436106103595760003560e01c80637571336a116101bb578063c8c8ebe4116100f7578063e2f4560511610095578063f98a9c021161006f578063f98a9c0214610a69578063f9f92be4146109fd578063fde83a3414610a92578063fe575a8714610aa857600080fd5b8063e2f4560514610a1d578063f2fde38b14610a33578063f8b45b0514610a5357600080fd5b8063d257b34f116100d1578063d257b34f1461097c578063d85ba0631461099c578063dd62ed3e146109b7578063e19b2823146109fd57600080fd5b8063c8c8ebe414610912578063cdb5f8c614610928578063d00efb2f1461094857600080fd5b806395d89b4111610164578063a9059cbb1161013e578063a9059cbb14610882578063b62496f5146108a2578063c0246668146108d2578063c18bc195146108f257600080fd5b806395d89b411461082d5780639a7a23d614610842578063a457c2d71461086257600080fd5b80637cb332bb116101955780637cb332bb146107da57806384dd4452146107fa5780638da5cb5b1461080f57600080fd5b80637571336a1461077a57806375e3661e1461079a5780637ca8448a146107ba57600080fd5b80633dc599ff1161029557806359927044116102335780636a486a8e1161020d5780636a486a8e146106f557806370a082311461071a578063715018a614610750578063751039fc1461076557600080fd5b806359927044146106a05780635f189361146106c057806363f54101146106d557600080fd5b80634a62bb651161026f5780634a62bb65146106025780634bb2c785146106215780634e6fd6c4146106515780634fbee1931461066757600080fd5b80633dc599ff1461058d5780633f07c0ce146105ad57806349bd5a5e146105ce57600080fd5b80631a8145bb1161030257806330b878ff116102dc57806330b878ff146104d5578063313ce5671461052a57806339509351146105465780633b48874a1461056657600080fd5b80631a8145bb1461047f578063203e727e1461049557806323b872dd146104b557600080fd5b8063095ea7b311610333578063095ea7b3146103e45780631694505e1461041457806318160ddd1461046057600080fd5b80630408d7561461036557806306d8eb1a146103a057806306fdde03146103c257600080fd5b3661036057005b600080fd5b34801561037157600080fd5b50600a5461038890640100000000900461ffff1681565b60405161ffff90911681526020015b60405180910390f35b3480156103ac57600080fd5b506103c06103bb366004612aee565b610ae1565b005b3480156103ce57600080fd5b506103d7610beb565b6040516103979190612b31565b3480156103f057600080fd5b506104046103ff366004612b94565b610c7d565b6040519015158152602001610397565b34801561042057600080fd5b506104487f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610397565b34801561046c57600080fd5b506002545b604051908152602001610397565b34801561048b57600080fd5b50610471600b5481565b3480156104a157600080fd5b506103c06104b0366004612bc0565b610c97565b3480156104c157600080fd5b506104046104d0366004612bd9565b610d60565b3480156104e157600080fd5b506105097f000000000000000000000000000000000000000000000000000000000000000581565b6040516fffffffffffffffffffffffffffffffff9091168152602001610397565b34801561053657600080fd5b5060405160128152602001610397565b34801561055257600080fd5b50610404610561366004612b94565b610d84565b34801561057257600080fd5b50600a546103889068010000000000000000900461ffff1681565b34801561059957600080fd5b50600d546104049062010000900460ff1681565b3480156105b957600080fd5b50600a546103889062010000900461ffff1681565b3480156105da57600080fd5b506104487f0000000000000000000000006fdf03d96c40736f787b6354aed7ca3ae8e3d37281565b34801561060e57600080fd5b50600d5461040490610100900460ff1681565b34801561062d57600080fd5b5061040461063c366004612c1a565b60106020526000908152604090205460ff1681565b34801561065d57600080fd5b5061044861dead81565b34801561067357600080fd5b50610404610682366004612c1a565b6001600160a01b03166000908152600f602052604090205460ff1690565b3480156106ac57600080fd5b50600654610448906001600160a01b031681565b3480156106cc57600080fd5b506103c0610dc3565b3480156106e157600080fd5b506103c06106f0366004612aee565b610dde565b34801561070157600080fd5b50600a54610388906601000000000000900461ffff1681565b34801561072657600080fd5b50610471610735366004612c1a565b6001600160a01b031660009081526020819052604090205490565b34801561075c57600080fd5b506103c0610f08565b34801561077157600080fd5b50610404610f1c565b34801561078657600080fd5b506103c0610795366004612c4c565b610f37565b3480156107a657600080fd5b506103c06107b5366004612c1a565b610f6a565b3480156107c657600080fd5b506103c06107d5366004612c1a565b610f93565b3480156107e657600080fd5b506103c06107f5366004612c1a565b610fff565b34801561080657600080fd5b506103c0611071565b34801561081b57600080fd5b506005546001600160a01b0316610448565b34801561083957600080fd5b506103d7611173565b34801561084e57600080fd5b506103c061085d366004612c4c565b611182565b34801561086e57600080fd5b5061040461087d366004612b94565b61123b565b34801561088e57600080fd5b5061040461089d366004612b94565b6112e5565b3480156108ae57600080fd5b506104046108bd366004612c1a565b60116020526000908152604090205460ff1681565b3480156108de57600080fd5b506103c06108ed366004612c4c565b6112f3565b3480156108fe57600080fd5b506103c061090d366004612bc0565b61135a565b34801561091e57600080fd5b5061047160075481565b34801561093457600080fd5b506103c0610943366004612c85565b611409565b34801561095457600080fd5b506105097f00000000000000000000000000000000000000000000000000000000011277a081565b34801561098857600080fd5b50610404610997366004612bc0565b61154f565b3480156109a857600080fd5b50600a546103889061ffff1681565b3480156109c357600080fd5b506104716109d2366004612c85565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a0957600080fd5b506103c0610a18366004612c1a565b611694565b348015610a2957600080fd5b5061047160085481565b348015610a3f57600080fd5b506103c0610a4e366004612c1a565b611809565b348015610a5f57600080fd5b5061047160095481565b348015610a7557600080fd5b50600a54610388906a0100000000000000000000900461ffff1681565b348015610a9e57600080fd5b50610471600c5481565b348015610ab457600080fd5b50610404610ac3366004612c1a565b6001600160a01b03166000908152600e602052604090205460ff1690565b610ae9611899565b600a805461ffff8481166401000000000265ffff000000001991871662010000029190911665ffffffff00001990921691909117179055610b2a8284612cc9565b61ffff16606414610b825760405162461bcd60e51b815260206004820152601960248201527f546f74616c2070657263656e74206d757374206265203130300000000000000060448201526064015b60405180910390fd5b600a805461ffff191661ffff831690811790915560051015610be65760405162461bcd60e51b815260206004820152601660248201527f4275792066656573206d757374206265203c3d20352e000000000000000000006044820152606401610b79565b505050565b606060038054610bfa90612ceb565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2690612ceb565b8015610c735780601f10610c4857610100808354040283529160200191610c73565b820191906000526020600020905b815481529060010190602001808311610c5657829003601f168201915b5050505050905090565b600033610c8b8185856118f3565b60019150505b92915050565b610c9f611899565b670de0b6b3a76400006103e8610cb460025490565b610cbf906005612d25565b610cc99190612d3c565b610cd39190612d3c565b811015610d485760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201527f6c6f776572207468616e20302e352500000000000000000000000000000000006064820152608401610b79565b610d5a81670de0b6b3a7640000612d25565b60075550565b600033610d6e858285611a17565b610d79858585611aa3565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610c8b9082908690610dbe908790612d5e565b6118f3565b610dcb611899565b600d805462ff0000191662010000179055565b610de6611899565b600a805461ffff8481166a0100000000000000000000026bffff00000000000000000000199187166801000000000000000002919091166bffffffff00000000000000001990921691909117179055610e3f8284612cc9565b61ffff16606414610e925760405162461bcd60e51b815260206004820152601960248201527f546f74616c2070657263656e74206d75737420626520313030000000000000006044820152606401610b79565b600a805467ffff0000000000001916660100000000000061ffff84169081029190911790915560051015610be65760405162461bcd60e51b815260206004820152601760248201527f53656c6c2066656573206d757374206265203c3d20352e0000000000000000006044820152606401610b79565b610f10611899565b610f1a600061224b565b565b6000610f26611899565b50600d805461ff0019169055600190565b610f3f611899565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b610f72611899565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b610f9b611899565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610fe8576040519150601f19603f3d011682016040523d82523d6000602084013e610fed565b606091505b5050905080610ffb57600080fd5b5050565b611007611899565b6006546040516001600160a01b03918216918316907fd9a2a08302ed3220f4e646ff99d6780d87e27baddf1af05679dc930ce811309590600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611079611899565b6040516370a0823160e01b815230600482018190526000916370a0823190602401602060405180830381865afa1580156110b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110db9190612d71565b60405163a9059cbb60e01b815233600482015260248101829052909150309063a9059cbb906044016020604051808303816000875af1158015611122573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111469190612d8a565b5060405133904780156108fc02916000818181858888f19350505050158015610ffb573d6000803e3d6000fd5b606060048054610bfa90612ceb565b61118a611899565b7f0000000000000000000000006fdf03d96c40736f787b6354aed7ca3ae8e3d3726001600160a01b0316826001600160a01b0316036112315760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610b79565b610ffb82826122aa565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112d85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b79565b610d7982868684036118f3565b600033610c8b818585611aa3565b6112fb611899565b6001600160a01b0382166000818152600f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b611362611899565b670de0b6b3a76400006103e861137760025490565b61138290600a612d25565b61138c9190612d3c565b6113969190612d3c565b8110156113f15760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263312e302560e01b6064820152608401610b79565b61140381670de0b6b3a7640000612d25565b60095550565b611411611899565b6001600160a01b0382166114675760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610b79565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156114ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d29190612d71565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af1158015611525573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115499190612d8a565b50505050565b6000611559611899565b620186a061156660025490565b611571906001612d25565b61157b9190612d3c565b8210156115f05760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527f20302e3030312520746f74616c20737570706c792e00000000000000000000006064820152608401610b79565b6103e86115fc60025490565b611607906005612d25565b6116119190612d3c565b8211156116865760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527f6e20302e352520746f74616c20737570706c792e0000000000000000000000006064820152608401610b79565b50600881905560015b919050565b61169c611899565b600d5462010000900460ff16156116ff5760405162461bcd60e51b815260206004820152602160248201527f5465616d20686173207265766f6b656420626c61636b6c6973742072696768746044820152607360f81b6064820152608401610b79565b7f0000000000000000000000006fdf03d96c40736f787b6354aed7ca3ae8e3d3726001600160a01b0316816001600160a01b03161415801561177357507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316816001600160a01b031614155b6117e55760405162461bcd60e51b815260206004820152602e60248201527f43616e6e6f7420626c61636b6c69737420746f6b656e277320763220726f757460448201527f6572206f7220763220706f6f6c2e0000000000000000000000000000000000006064820152608401610b79565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b611811611899565b6001600160a01b03811661188d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b79565b6118968161224b565b50565b6005546001600160a01b03163314610f1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b79565b6001600160a01b0383166119555760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b79565b6001600160a01b0382166119b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b79565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146115495781811015611a965760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b79565b61154984848484036118f3565b6001600160a01b038316611b075760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b79565b6001600160a01b038216611b695760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b79565b6001600160a01b0383166000908152600e602052604090205460ff1615611bd25760405162461bcd60e51b815260206004820152601360248201527f53656e646572205f626c61636b6c6973746564000000000000000000000000006044820152606401610b79565b6001600160a01b0382166000908152600e602052604090205460ff1615611c3b5760405162461bcd60e51b815260206004820152601560248201527f5265636569766572205f626c61636b6c697374656400000000000000000000006044820152606401610b79565b80600003611c4f57610be6838360006122fe565b600d54610100900460ff168015611f54576005546001600160a01b03858116911614801590611c8c57506005546001600160a01b03848116911614155b8015611ca057506001600160a01b03831615155b8015611cb757506001600160a01b03831661dead14155b8015611cc65750600d5460ff16155b15611f54576001600160a01b03841660009081526011602052604090205460ff168015611d0c57506001600160a01b03831660009081526010602052604090205460ff16155b15611e0257600754821115611d895760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527f6d61785472616e73616374696f6e416d6f756e742e00000000000000000000006064820152608401610b79565b6009546001600160a01b038416600090815260208190526040902054611daf9084612d5e565b1115611dfd5760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401610b79565b611f54565b6001600160a01b03831660009081526011602052604090205460ff168015611e4357506001600160a01b03841660009081526010602052604090205460ff16155b15611ec057600754821115611dfd5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560448201527f206d61785472616e73616374696f6e416d6f756e742e000000000000000000006064820152608401610b79565b6001600160a01b03831660009081526010602052604090205460ff16611f54576009546001600160a01b038416600090815260208190526040902054611f069084612d5e565b1115611f545760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401610b79565b3060009081526020819052604090205460085481108015908190611f7b5750600d5460ff16155b8015611fa057506001600160a01b03861660009081526011602052604090205460ff16155b8015611fc557506001600160a01b0386166000908152600f602052604090205460ff16155b8015611fea57506001600160a01b0385166000908152600f602052604090205460ff16155b1561200f57600d805460ff191660011790556120046124b9565b600d805460ff191690555b600d546001600160a01b0387166000908152600f602052604090205460ff9182161591168061205657506001600160a01b0386166000908152600f602052604090205460ff165b1561205f575060005b60008115612236576001600160a01b03871660009081526011602052604090205460ff16801561209e5750600a546601000000000000900461ffff1615155b1561214d5760646120ae8661267a565b6120b89088612d25565b6120c29190612d3c565b600a549091506064906120e59068010000000000000000900461ffff1683612d25565b6120ef9190612d3c565b600b60008282546121009190612d5e565b9091555050600a54606490612127906a0100000000000000000000900461ffff1683612d25565b6121319190612d3c565b600c60008282546121429190612d5e565b909155506122189050565b6001600160a01b03881660009081526011602052604090205460ff16801561217a5750600a5461ffff1615155b1561221857606461218a86612773565b6121949088612d25565b61219e9190612d3c565b600a549091506064906121bb9062010000900461ffff1683612d25565b6121c59190612d3c565b600b60008282546121d69190612d5e565b9091555050600a546064906121f790640100000000900461ffff1683612d25565b6122019190612d3c565b600c60008282546122129190612d5e565b90915550505b8015612229576122298830836122fe565b6122338187612da7565b95505b6122418888886122fe565b5050505050505050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216600081815260116020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b0383166123625760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b79565b6001600160a01b0382166123c45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b79565b6001600160a01b038316600090815260208190526040902054818110156124535760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b79565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611549565b3060009081526020819052604081205490506000600c54600b546124dd9190612d5e565b905060008215806124ec575081155b156124f657505050565b600854612504906014612d25565b83111561251c57600854612519906014612d25565b92505b6000600283600b548661252f9190612d25565b6125399190612d3c565b6125439190612d3c565b905060006125518286612da7565b90504761255d826127fe565b60006125698247612da7565b905060006002600b5461257c9190612d3c565b6125869088612da7565b600c546125939084612d25565b61259d9190612d3c565b905060006125ab8284612da7565b6000600b819055600c8190556006546040519293506001600160a01b031691849181818185875af1925050503d8060008114612603576040519150601f19603f3d011682016040523d82523d6000602084013e612608565b606091505b5090975050851580159061261c5750600081115b1561266f5761262b86826129be565b600b54604080518781526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b505050505050505050565b600081612697575050600a546601000000000000900461ffff1690565b600a5461ffff6601000000000000909104166fffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000011277a08116907f00000000000000000000000000000000000000000000000000000000000000051661270a8183612d5e565b43111561272b575050600a546601000000000000900461ffff169392505050565b60006127378343612da7565b9050600082612747836064612d25565b6127519190612d3c565b61275c906064612da7565b9050848110156127695750835b9695505050505050565b600081612786575050600a5461ffff1690565b600a5461ffff166fffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000011277a08116907f0000000000000000000000000000000000000000000000000000000000000005166127ee8183612d5e565b43111561272b5750909392505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061283357612833612dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156128b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d59190612dd0565b816001815181106128e8576128e8612dba565b60200260200101906001600160a01b031690816001600160a01b031681525050612933307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846118f3565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790612988908590600090869030904290600401612ded565b600060405180830381600087803b1580156129a257600080fd5b505af11580156129b6573d6000803e3d6000fd5b505050505050565b6129e9307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846118f3565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d719823085600080612a306005546001600160a01b031690565b60405160e088901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015612ab0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612ad59190612e5e565b5050505050565b803561ffff8116811461168f57600080fd5b600080600060608486031215612b0357600080fd5b612b0c84612adc565b9250612b1a60208501612adc565b9150612b2860408501612adc565b90509250925092565b600060208083528351808285015260005b81811015612b5e57858101830151858201604001528201612b42565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461189657600080fd5b60008060408385031215612ba757600080fd5b8235612bb281612b7f565b946020939093013593505050565b600060208284031215612bd257600080fd5b5035919050565b600080600060608486031215612bee57600080fd5b8335612bf981612b7f565b92506020840135612c0981612b7f565b929592945050506040919091013590565b600060208284031215612c2c57600080fd5b8135612c3781612b7f565b9392505050565b801515811461189657600080fd5b60008060408385031215612c5f57600080fd5b8235612c6a81612b7f565b91506020830135612c7a81612c3e565b809150509250929050565b60008060408385031215612c9857600080fd5b8235612ca381612b7f565b91506020830135612c7a81612b7f565b634e487b7160e01b600052601160045260246000fd5b61ffff818116838216019080821115612ce457612ce4612cb3565b5092915050565b600181811c90821680612cff57607f821691505b602082108103612d1f57634e487b7160e01b600052602260045260246000fd5b50919050565b8082028115828204841417610c9157610c91612cb3565b600082612d5957634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610c9157610c91612cb3565b600060208284031215612d8357600080fd5b5051919050565b600060208284031215612d9c57600080fd5b8151612c3781612c3e565b81810381811115610c9157610c91612cb3565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612de257600080fd5b8151612c3781612b7f565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612e3d5784516001600160a01b031683529383019391830191600101612e18565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612e7357600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220bafc9f057fe6792e82b4d09609fb528f4947fe120bc70476905c4e82423212fb64736f6c63430008130033

Verified Source Code Full Match

Compiler: v0.8.19+commit.7dd6d404 EVM: paris Optimization: Yes (800 runs)
NewslyToken.sol 497 lines
// SPDX-License-Identifier: MIT

/*
 Newsly - The News Trading Terminal in Your Pocket
 Website: https://www.newsly.news/
 Twitter: https://twitter.com/newslybot
 Community: https://t.me/+Jm3OIlXxemc5ZDI0
 TG Bot: https://t.me/NewslyNews_bot
*/

pragma solidity ^0.8.19;

import "openzeppelin/token/ERC20/ERC20.sol";
import "openzeppelin/access/Ownable.sol";

import "uniswap/periphery/interfaces/IUniswapV2Router02.sol";
import "uniswap/core/interfaces/IUniswapV2Factory.sol";

contract NewslyToken is ERC20, Ownable {
    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    uint128 public immutable launchBlock;
    uint128 public immutable antibotPeriod;
    address public constant DEAD_ADDRESS = address(0xdead);

    address public teamWallet;

    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;

    uint16 public buyTotalFees;
    uint16 public buyLiquidityFeePct;
    uint16 public buyTeamFeePct;

    uint16 public sellTotalFees;
    uint16 public sellLiquidityFeePct;
    uint16 public sellTeamFeePct;

    uint256 public tokensForLiquidity;
    uint256 public tokensForTeam;

    bool private _swapping;
    bool public limitsInEffect = true;
    bool public blacklistRenounced = false;

    // Anti-bot and anti-whale mappings and variables
    mapping(address => bool) _blacklisted;

    /******************/

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

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

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

    event ExcludeFromFees(address indexed account, bool isExcluded);

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

    event TeamWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    );

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

    constructor(IUniswapV2Router02 _uniswapRouter, uint128 _antibotPeriod) ERC20("Newsly", "NEWS") {

        launchBlock = uint128(block.number);
        antibotPeriod = _antibotPeriod; 

        excludeFromMaxTransaction(address(_uniswapRouter), true);
        uniswapV2Router = _uniswapRouter;

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

        uint256 totalSupply = 100_000_000 * 1e18;

        maxTransactionAmount = totalSupply * 25 / 10000; // 0.25%
        maxWallet = totalSupply * 25 / 10000; // 0.25%
        swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05% 

        buyLiquidityFeePct = 20;
        buyTeamFeePct = 80;
        buyTotalFees = 5;

        sellLiquidityFeePct = 20;
        sellTeamFeePct = 80;
        sellTotalFees = 5;

        teamWallet = owner(); // set as team wallet

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);

        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(msg.sender, totalSupply);
    }

    receive() external payable {}

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = false;
        return true;
    }

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

    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(
            newNum >= ((totalSupply() * 5) / 1000) / 1e18,
            "Cannot set maxTransactionAmount lower than 0.5%"
        );
        maxTransactionAmount = newNum * (10**18);
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(
            newNum >= ((totalSupply() * 10) / 1000) / 1e18,
            "Cannot set maxWallet lower than 1.0%"
        );
        maxWallet = newNum * (10**18);
    }

    function updateBuyFees(
        uint16 _liquidityFeePercent,
        uint16 _teamFeePercent,
        uint16 _buyTotalFees
    ) external onlyOwner {
        buyLiquidityFeePct = _liquidityFeePercent;
        buyTeamFeePct = _teamFeePercent;
        require(_liquidityFeePercent + _teamFeePercent == 100, 'Total percent must be 100');
        buyTotalFees = _buyTotalFees;
        require(_buyTotalFees <= 5, "Buy fees must be <= 5.");
    }

    function updateSellFees(
        uint16 _liquidityFeePercent,
        uint16 _teamFeePercent,
        uint16 _sellTotalFees
    ) external onlyOwner {
        sellLiquidityFeePct = _liquidityFeePercent;
        sellTeamFeePct = _teamFeePercent;
        require(_liquidityFeePercent + _teamFeePercent == 100, 'Total percent must be 100');
        sellTotalFees = _sellTotalFees;
        require(_sellTotalFees <= 5, "Sell fees must be <= 5.");
    }

    function updateTeamWallet(address newWallet) external onlyOwner {
        emit TeamWalletUpdated(newWallet, teamWallet);
        teamWallet = newWallet;
    }

    function withdrawStuckToken() external onlyOwner {
        uint256 balance = IERC20(address(this)).balanceOf(address(this));
        IERC20(address(this)).transfer(msg.sender, balance);
        payable(msg.sender).transfer(address(this).balance);
    }

    function withdrawStuckErc20(address _token, address _to) external onlyOwner {
        require(_token != address(0), "_token address cannot be 0");
        uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
        IERC20(_token).transfer(_to, _contractBalance);
    }

    function withdrawStuckEth(address toAddr) external onlyOwner {
        (bool success, ) = toAddr.call{
            value: address(this).balance
        } ("");
        require(success);
    }

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

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner
    {
        isExcludedMaxTransactionAmount[updAds] = isEx;
    }

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

        _setAutomatedMarketMakerPair(pair, value);
    }

    // @dev team renounce blacklist commands
    function renounceBlacklist() public onlyOwner {
        blacklistRenounced = true;
    }

    function blacklist(address _addr) public onlyOwner {
        require(!blacklistRenounced, "Team has revoked blacklist rights");
        require(
            _addr != address(uniswapV2Pair) && _addr != address(uniswapV2Router), 
            "Cannot blacklist token's v2 router or v2 pool."
        );
        _blacklisted[_addr] = true;
    }

    // @dev blacklist v3 pools; can unblacklist() down the road to suit project and community
    function blacklistLiquidityPool(address lpAddress) public onlyOwner {
        require(!blacklistRenounced, "Team has revoked blacklist rights");
        require(
            lpAddress != address(uniswapV2Pair) && lpAddress != address(uniswapV2Router), 
            "Cannot blacklist token's v2 router or v2 pool."
        );
        _blacklisted[lpAddress] = true;
    }

    // @dev unblacklist address; not affected by blacklistRenounced incase team wants to unblacklist v3 pools down the road
    function unblacklist(address _addr) public onlyOwner {
        _blacklisted[_addr] = false;
    }

    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    function isBlacklisted(address account) public view returns (bool) {
        return _blacklisted[account];
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(!_blacklisted[from],"Sender _blacklisted");
        require(!_blacklisted[to],"Receiver _blacklisted");

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        bool _limitsInEffect = limitsInEffect;

        if (_limitsInEffect) {
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !_swapping
            ) {
                //when buy
                if (
                    automatedMarketMakerPairs[from] &&
                    !isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTransactionAmount."
                    );
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
                //when sell
                else if (
                    automatedMarketMakerPairs[to] &&
                    !isExcludedMaxTransactionAmount[from]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Sell transfer amount exceeds the maxTransactionAmount."
                    );
                } else if (!isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

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

            _swapBack();

            _swapping = false;
        }

        bool takeFee = !_swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = amount * _getSellTotalFees(_limitsInEffect) / 100;
                tokensForLiquidity += (fees * sellLiquidityFeePct) / 100;
                tokensForTeam += (fees * sellTeamFeePct) / 100;
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount * _getBuyTotalFees(_limitsInEffect) / 100;
                tokensForLiquidity += (fees * buyLiquidityFeePct) / 100;
                tokensForTeam += (fees * buyTeamFeePct) / 100;
            }

            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }

            amount -= fees;
        }

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

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

        emit SetAutomatedMarketMakerPair(pair, value);
    }

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

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

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

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

    function _swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForTeam;
        bool success;

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

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

        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = (contractBalance * tokensForLiquidity) / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance - liquidityTokens;

        uint256 initialETHBalance = address(this).balance;

        _swapTokensForEth(amountToSwapForETH);

        uint256 ethBalance = address(this).balance - initialETHBalance;
        uint256 ethForTeam = (ethBalance * tokensForTeam) / (totalTokensToSwap - (tokensForLiquidity / 2));

        uint256 ethForLiquidity = ethBalance - ethForTeam;

        tokensForLiquidity = 0;
        tokensForTeam = 0;

        (success, ) = address(teamWallet).call{value: ethForTeam}("");

        if (liquidityTokens > 0 && ethForLiquidity > 0) {
            _addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(
                amountToSwapForETH,
                ethForLiquidity,
                tokensForLiquidity
            );
        }
    }

    function _getSellTotalFees(bool _limitsInEffect) private view returns (uint256) {
        if(!_limitsInEffect)
            return sellTotalFees;

        uint256 _sellTotalFees = sellTotalFees;
        uint256 _launchBlock = launchBlock;
        uint256 _antibotPeriod = antibotPeriod;

        if(block.number > _launchBlock + _antibotPeriod)
            return sellTotalFees;

        uint256 progressThroughAntibot = block.number - _launchBlock;
        uint256 antiBotTax = 100 - (100 * progressThroughAntibot / _antibotPeriod);
        if(antiBotTax < _sellTotalFees)
            antiBotTax = _sellTotalFees;

        return antiBotTax;
    }

    function _getBuyTotalFees(bool _limitsInEffect) private view returns (uint256) {
        if(!_limitsInEffect)
            return buyTotalFees;
        
        uint256 _buyTotalFees = buyTotalFees;
        uint256 _launchBlock = launchBlock;
        uint256 _antibotPeriod = antibotPeriod;

        if(block.number > _launchBlock + _antibotPeriod)
            return _buyTotalFees;

        uint256 progressThroughAntibot = block.number - _launchBlock;
        uint256 antiBotTax = 100 - (100 * progressThroughAntibot / _antibotPeriod);
        if(antiBotTax < _buyTotalFees)
            antiBotTax = _buyTotalFees;

        return antiBotTax;
    }
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
IUniswapV2Factory.sol 17 lines
pragma solidity >=0.5.0;

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

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

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
ERC20.sol 365 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
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;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

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

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}
IUniswapV2Router01.sol 95 lines
pragma solidity >=0.6.2;

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

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

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
IUniswapV2Router02.sol 44 lines
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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);
}

Read Contract

DEAD_ADDRESS 0x4e6fd6c4 → address
allowance 0xdd62ed3e → uint256
antibotPeriod 0x30b878ff → uint128
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
blacklistRenounced 0x3dc599ff → bool
buyLiquidityFeePct 0x3f07c0ce → uint16
buyTeamFeePct 0x0408d756 → uint16
buyTotalFees 0xd85ba063 → uint16
decimals 0x313ce567 → uint8
isBlacklisted 0xfe575a87 → bool
isExcludedFromFees 0x4fbee193 → bool
isExcludedMaxTransactionAmount 0x4bb2c785 → bool
launchBlock 0xd00efb2f → uint128
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellLiquidityFeePct 0x3b48874a → uint16
sellTeamFeePct 0xf98a9c02 → uint16
sellTotalFees 0x6a486a8e → uint16
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamWallet 0x59927044 → address
tokensForLiquidity 0x1a8145bb → uint256
tokensForTeam 0xfde83a34 → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 24 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklist 0xf9f92be4
address _addr
blacklistLiquidityPool 0xe19b2823
address lpAddress
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceBlacklist 0x5f189361
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unblacklist 0x75e3661e
address _addr
updateBuyFees 0x06d8eb1a
uint16 _liquidityFeePercent
uint16 _teamFeePercent
uint16 _buyTotalFees
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0x63f54101
uint16 _liquidityFeePercent
uint16 _teamFeePercent
uint16 _sellTotalFees
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updateTeamWallet 0x7cb332bb
address newWallet
withdrawStuckErc20 0xcdb5f8c6
address _token
address _to
withdrawStuckEth 0x7ca8448a
address toAddr
withdrawStuckToken 0x84dd4452
No parameters

Recent Transactions

No transactions found for this address