Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xA0db0048A8413DbB5e30F4e9Db1Ad565312b5999
Balance 0 ETH
Nonce 2
Code Size 15235 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15235 bytes
0x608060405260043610610471575f3560e01c80638a8c523c1161024c578063c492f0461161013f578063e8792c1a116100be578063efcc1b2f11610083578063efcc1b2f14610d2b578063f2fde38b14610d40578063f54afa7814610d5f578063fb002c9714610d74578063fd361d0e14610d89578063fd72e22a14610da2575f80fd5b8063e8792c1a14610cb9578063e884f26014610cce578063e98030c714610ce2578063ee40166e14610d01578063ee44b44e14610d16575f80fd5b8063d0a3981411610104578063d0a3981414610c18578063d257b34f14610c2d578063dd62ed3e14610c4c578063e2f4560514610c90578063e7841ec014610ca5575f80fd5b8063c492f04614610ba2578063c7c61e2c14610bc1578063c876d0b914610bd5578063ccb6135814610bee578063ccd146b214610c03575f80fd5b8063a716b773116101cb578063befd2fac11610190578063befd2fac14610b07578063c024666814610b26578063c0f306ef14610b45578063c17b5b8c14610b64578063c18bc19514610b83575f80fd5b8063a716b77314610a68578063a9059cbb14610a87578063b62496f514610aa6578063b9e9370014610ad4578063bbc0c74214610ae9575f80fd5b80639a36f932116102115780639a36f932146109ec5780639a7a23d614610a015780639c1b8af514610a20578063a26579ad14610a35578063a457c2d714610a49575f80fd5b80638a8c523c146109695780638da5cb5b1461097d578063924de9b71461099a57806392b59626146109b957806395d89b41146109d8575f80fd5b80634e71d92d11610364578063715018a6116102e3578063763cef49116102a8578063763cef49146108ee578063783102eb146109025780637fa787ba146109175780638095d5641461092b578063871c128d1461094a575f80fd5b8063715018a61461087e57806371778e7d146108925780637506cbd8146108a6578063751039fc146108bb5780637571336a146108cf575f80fd5b80636843cd84116103295780636843cd84146107ee5780636ddd17131461080d578063700bb1911461082c57806370a082311461084b578063712c29851461086a575f80fd5b80634e71d92d1461070d5780634fbee193146107215780635645cd8614610757578063632459f01461077657806364b0f653146107da575f80fd5b8063204f11a8116103f057806331e79db0116103b557806331e79db01461066e578063395093511461068d57806349bd5a5e146106ac5780634a62bb65146106df5780634af6f7ee146106f8575f80fd5b8063204f11a8146105d557806323b872dd146105f45780632c1f52161461061357806330d5d18d14610632578063313ce56714610653575f80fd5b806310d5de531161043657806310d5de531461051e5780631694505e1461054c57806318160ddd146105975780631a8145bb146105ab5780631fc851bd146105c0575f80fd5b8063058054c91461047c57806306fdde03146104a4578063095ea7b3146104c5578063099d0d30146104f45780630f4432e314610509575f80fd5b3661047857005b5f80fd5b348015610487575f80fd5b50610491601c5481565b6040519081526020015b60405180910390f35b3480156104af575f80fd5b506104b8610dc1565b60405161049b91906135c9565b3480156104d0575f80fd5b506104e46104df366004613628565b610e51565b604051901515815260200161049b565b3480156104ff575f80fd5b5061049160135481565b348015610514575f80fd5b50610491600a5481565b348015610529575f80fd5b506104e4610538366004613652565b60216020525f908152604090205460ff1681565b348015610557575f80fd5b5061057f7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161049b565b3480156105a2575f80fd5b50600254610491565b3480156105b6575f80fd5b50610491601a5481565b3480156105cb575f80fd5b50610491600c5481565b3480156105e0575f80fd5b506104916105ef36600461366d565b610e67565b3480156105ff575f80fd5b506104e461060e3660046136a4565b610ee2565b34801561061e575f80fd5b5060065461057f906001600160a01b031681565b34801561063d575f80fd5b5061065161064c366004613652565b610f8f565b005b34801561065e575f80fd5b506040516012815260200161049b565b348015610679575f80fd5b50610651610688366004613652565b61106b565b348015610698575f80fd5b506104e46106a7366004613628565b6110f3565b3480156106b7575f80fd5b5061057f7f000000000000000000000000360562c6f040a83ddc3f4b42475ea7855cb2b77881565b3480156106ea575f80fd5b50600d546104e49060ff1681565b348015610703575f80fd5b5061049160155481565b348015610718575f80fd5b5061065161112e565b34801561072c575f80fd5b506104e461073b366004613652565b6001600160a01b03165f90815260208052604090205460ff1690565b348015610762575f80fd5b50610491610771366004613652565b6111a2565b348015610781575f80fd5b506107956107903660046136e2565b61120f565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161049b565b3480156107e5575f80fd5b506104916112b0565b3480156107f9575f80fd5b50610491610808366004613652565b611320565b348015610818575f80fd5b50600d546104e49062010000900460ff1681565b348015610837575f80fd5b50610651610846366004613705565b611352565b348015610856575f80fd5b50610491610865366004613652565b611420565b348015610875575f80fd5b5061049161143a565b348015610889575f80fd5b5061065161145c565b34801561089d575f80fd5b506104916114cf565b3480156108b1575f80fd5b5061049160125481565b3480156108c6575f80fd5b506104e4611516565b3480156108da575f80fd5b506106516108e9366004613729565b61155e565b3480156108f9575f80fd5b506106516115e7565b34801561090d575f80fd5b50610491601f5481565b348015610922575f80fd5b506106516117bd565b348015610936575f80fd5b50610651610945366004613755565b611871565b348015610955575f80fd5b50610651610964366004613705565b61191a565b348015610974575f80fd5b50610651611a5c565b348015610988575f80fd5b506005546001600160a01b031661057f565b3480156109a5575f80fd5b506106516109b436600461377e565b611af5565b3480156109c4575f80fd5b506107956109d336600461366d565b611b3b565b3480156109e3575f80fd5b506104b8611b84565b3480156109f7575f80fd5b506104916103e881565b348015610a0c575f80fd5b50610651610a1b366004613729565b611b93565b348015610a2b575f80fd5b50610491601b5481565b348015610a40575f80fd5b50610491611c7c565b348015610a54575f80fd5b506104e4610a63366004613628565b611cc3565b348015610a73575f80fd5b50610651610a82366004613652565b611d5b565b348015610a92575f80fd5b506104e4610aa1366004613628565b611df5565b348015610ab1575f80fd5b506104e4610ac0366004613652565b60226020525f908152604090205460ff1681565b348015610adf575f80fd5b5061049160145481565b348015610af4575f80fd5b50600d546104e490610100900460ff1681565b348015610b12575f80fd5b50610651610b21366004613705565b611e01565b348015610b31575f80fd5b50610651610b40366004613729565b611f35565b348015610b50575f80fd5b50610651610b5f366004613652565b611fb4565b348015610b6f575f80fd5b50610651610b7e366004613755565b612010565b348015610b8e575f80fd5b50610651610b9d366004613705565b6120b4565b348015610bad575f80fd5b50610651610bbc366004613799565b61216c565b348015610bcc575f80fd5b50610651612245565b348015610be0575f80fd5b50600f546104e49060ff1681565b348015610bf9575f80fd5b5061049160175481565b348015610c0e575f80fd5b5061049160115481565b348015610c23575f80fd5b5061049160105481565b348015610c38575f80fd5b50610651610c47366004613705565b6122ad565b348015610c57575f80fd5b50610491610c6636600461366d565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610c9b575f80fd5b5061049160085481565b348015610cb0575f80fd5b5061049161230d565b348015610cc4575f80fd5b5061049160095481565b348015610cd9575f80fd5b506104e4612354565b348015610ced575f80fd5b50610651610cfc366004613705565b612390565b348015610d0c575f80fd5b50610491600b5481565b348015610d21575f80fd5b50610491601d5481565b348015610d36575f80fd5b5061049160165481565b348015610d4b575f80fd5b50610651610d5a366004613652565b6123eb565b348015610d6a575f80fd5b5061049160185481565b348015610d7f575f80fd5b5061049160195481565b348015610d94575f80fd5b50601e546104e49060ff1681565b348015610dad575f80fd5b5060075461057f906001600160a01b031681565b606060038054610dd090613818565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfc90613818565b8015610e475780601f10610e1e57610100808354040283529160200191610e47565b820191905f5260205f20905b815481529060010190602001808311610e2a57829003601f168201915b5050505050905090565b5f610e5d3384846124d5565b5060015b92915050565b600654604051630409e23560e31b81526001600160a01b03848116600483015283811660248301525f92169063204f11a890604401602060405180830381865afa158015610eb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610edb9190613850565b9392505050565b5f610eee8484846125f8565b6001600160a01b0384165f90815260016020908152604080832033845290915290205482811015610f775760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610f8485338584036124d5565b506001949350505050565b6007546001600160a01b0316336001600160a01b031614610fae575f80fd5b6001600160a01b0381166110045760405162461bcd60e51b815260206004820152601860248201527f6d6179206e6f742073657420746f2030206164647265737300000000000000006044820152606401610f6e565b61100f816001611f35565b6007546040516001600160a01b03918216918316907f086aa05ff00214e2d0c7c02b8a46b2614ad955732e6b43aa8afca69ed1ad76f8905f90a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146110955760405162461bcd60e51b8152600401610f6e90613867565b60065460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b5f604051808303815f87803b1580156110da575f80fd5b505af11580156110ec573d5f803e3d5ffd5b5050505050565b335f8181526001602090815260408083206001600160a01b03871684529091528120549091610e5d9185906111299086906138b0565b6124d5565b60065460405163bc4c4b3760e01b81523360048201525f60248201526001600160a01b039091169063bc4c4b37906044016020604051808303815f875af115801561117b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061119f91906138c3565b50565b6006546040516326b72f0160e11b81526001600160a01b0383811660048301525f921690634d6e5e02906024015b602060405180830381865afa1580156111eb573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e619190613850565b600654604051638c503bf560e01b8152600481018490526001600160a01b0383811660248301525f928392839283928392839283928392911690638c503bf5906044015b61010060405180830381865afa15801561126f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061129391906138de565b975097509750975097509750975097509295985092959890939650565b600654604080516304ddf6ef60e11b815290515f926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa1580156112f7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061131b9190613850565b905090565b60065460405163156dbbf560e31b81526001600160a01b0383811660048301525f92169063ab6ddfa8906024016111d0565b6006546040516001624d3b8760e01b03198152600481018390525f91829182916001600160a01b03169063ffb2c479906024016060604051808303815f875af11580156113a1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113c59190613943565b604080518481526020810184905290810182905260608101889052929550909350915032905f907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a98906080015b60405180910390a350505050565b6001600160a01b03165f9081526020819052604090205490565b601e545f9060ff161561145757601d54601c5461131b91906138b0565b505f90565b6005546001600160a01b031633146114865760405162461bcd60e51b8152600401610f6e90613867565b6005546040515f916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6006546040805163ad7a672f60e01b815290515f926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa1580156112f7573d5f803e3d5ffd5b6005545f906001600160a01b031633146115425760405162461bcd60e51b8152600401610f6e90613867565b50600d805460ff19908116909155600f80549091169055600190565b6005546001600160a01b031633146115885760405162461bcd60e51b8152600401610f6e90613867565b6001600160a01b0382165f81815260216020908152604091829020805460ff191685151590811790915591519182527f575f9d01836c9206322151b9e9ec3f2b77b87e71176933b9b44d2d732f768d9591015b60405180910390a25050565b6005546001600160a01b031633146116115760405162461bcd60e51b8152600401610f6e90613867565b61161961143a565b421015801561162e57505f61162c61143a565b115b6116735760405162461bcd60e51b815260206004820152601660248201527526bab9ba103932b8bab2b9ba1030b732103bb0b4ba1760511b6044820152606401610f6e565b5f601c819055601e805460ff19169055601f546040516370a0823160e01b8152306004820152606491907f000000000000000000000000360562c6f040a83ddc3f4b42475ea7855cb2b7786001600160a01b0316906370a0823190602401602060405180830381865afa1580156116ec573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117109190613850565b61171a919061396e565b6117249190613985565b5f601f5560405163a9059cbb60e01b8152336004820152602481018290529091507f000000000000000000000000360562c6f040a83ddc3f4b42475ea7855cb2b7786001600160a01b03169063a9059cbb906044016020604051808303815f875af1158015611795573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117b991906138c3565b5050565b6005546001600160a01b031633146117e75760405162461bcd60e51b8152600401610f6e90613867565b6040515f90339047908381818185875af1925050503d805f8114611826576040519150601f19603f3d011682016040523d82523d5f602084013e61182b565b606091505b505090508061119f5760405162461bcd60e51b81526020600482015260126024820152716661696c656420746f20776974686472617760701b6044820152606401610f6e565b6005546001600160a01b0316331461189b5760405162461bcd60e51b8152600401610f6e90613867565b601683905560158290556017819055806118b583856138b0565b6118bf91906138b0565b60148190556101f410156119155760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420353025206f72206c6573730000006044820152606401610f6e565b505050565b6005546001600160a01b031633146119445760405162461bcd60e51b8152600401610f6e90613867565b62030d40811015801561195a57506207a1208111155b6119c45760405162461bcd60e51b815260206004820152603560248201527f20676173466f7250726f63657373696e67206d7573742062652062657477656560448201527406e203230302c30303020616e64203530302c30303605c1b6064820152608401610f6e565b601b548103611a2a5760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f742075706461746520676173466f7250726f63657373696e67207460448201526b6f2073616d652076616c756560a01b6064820152608401610f6e565b601b5460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db7905f90a3601b55565b6005546001600160a01b03163314611a865760405162461bcd60e51b8152600401610f6e90613867565b600d54610100900460ff1615611ade5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742072652d656e61626c652074726164696e6700000000000000006044820152606401610f6e565b600d805462ffff0019166201010017905543600b55565b6005546001600160a01b03163314611b1f5760405162461bcd60e51b8152600401610f6e90613867565b600d8054911515620100000262ff000019909216919091179055565b60065460405163fd59084760e01b81526001600160a01b03848116600483015283811660248301525f92839283928392839283928392839291169063fd59084790604401611253565b606060048054610dd090613818565b6005546001600160a01b03163314611bbd5760405162461bcd60e51b8152600401610f6e90613867565b7f000000000000000000000000360562c6f040a83ddc3f4b42475ea7855cb2b7786001600160a01b0316826001600160a01b031603611c725760405162461bcd60e51b815260206004820152604560248201527f5468652050616e63616b655377617020706169722063616e6e6f74206265207260448201527f656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572606482015264506169727360d81b608482015260a401610f6e565b6117b98282612da8565b60065460408051631bc9e27b60e21b815290515f926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa1580156112f7573d5f803e3d5ffd5b335f9081526001602090815260408083206001600160a01b038616845290915281205482811015611d445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610f6e565b611d5133858584036124d5565b5060019392505050565b6005546001600160a01b03163314611d855760405162461bcd60e51b8152600401610f6e90613867565b611d90816001611f35565b60065460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015f604051808303815f87803b158015611dd4575f80fd5b505af1158015611de6573d5f803e3d5ffd5b5050505061119f81600161155e565b5f610e5d3384846125f8565b6005546001600160a01b03163314611e2b5760405162461bcd60e51b8152600401610f6e90613867565b601e5460ff1615611e985760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f74207265717565737420616761696e20756e74696c206669727374604482015270103932b8bab2b9ba1034b99037bb32b91760791b6064820152608401610f6e565b60648111158015611ea857505f81115b611ef45760405162461bcd60e51b815260206004820152601a60248201527f4e65656420746f20736574206265747765656e20312d313030250000000000006044820152606401610f6e565b42601c55601e805460ff19166001179055601f8190556040517fd99a77b2f3951cd076e75814e44db497e6abc203dd251329da0b62c288f9f48b905f90a150565b6005546001600160a01b03163314611f5f5760405162461bcd60e51b8152600401610f6e90613867565b6001600160a01b0382165f8181526020808052604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791016115db565b6005546001600160a01b03163314611fde5760405162461bcd60e51b8152600401610f6e90613867565b60065460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef906024016110c3565b6005546001600160a01b0316331461203a5760405162461bcd60e51b8152600401610f6e90613867565b6012839055601182905560138190558061205483856138b0565b61205e91906138b0565b601081905561038410156119155760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420393025206f72206c6573730000006044820152606401610f6e565b6007546001600160a01b0316336001600160a01b0316146120d3575f80fd5b670de0b6b3a764000060646120e760025490565b6120f290600161396e565b6120fc9190613985565b6121069190613985565b81116121545760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420736574206d617854786e206c6f776572207468616e203125006044820152606401610f6e565b61216681670de0b6b3a764000061396e565b60095550565b6005546001600160a01b031633146121965760405162461bcd60e51b8152600401610f6e90613867565b5f5b82811015612204578160205f8686858181106121b6576121b66139a4565b90506020020160208101906121cb9190613652565b6001600160a01b0316815260208101919091526040015f20805460ff1916911515919091179055806121fc816139b8565b915050612198565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b35838383604051612238939291906139d0565b60405180910390a1505050565b6005546001600160a01b0316331461226f5760405162461bcd60e51b8152600401610f6e90613867565b601e805460ff191690555f601f819055601c8190556040517ffbcc1c208c9c4d1d9f557267b55c5ae316e74ce676a0db72ef18c6d5f5767c619190a1565b6007546001600160a01b0316336001600160a01b0316146122cc575f80fd5b600181101580156122de575060c88111155b6122e6575f80fd5b612710816122f360025490565b6122fd919061396e565b6123079190613985565b60085550565b6006546040805163039e107b60e61b815290515f926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa1580156112f7573d5f803e3d5ffd5b6005545f906001600160a01b031633146123805760405162461bcd60e51b8152600401610f6e90613867565b50600f805460ff19169055600190565b6005546001600160a01b031633146123ba5760405162461bcd60e51b8152600401610f6e90613867565b60065460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c7906024016110c3565b6005546001600160a01b031633146124155760405162461bcd60e51b8152600401610f6e90613867565b6001600160a01b03811661247a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f6e565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166125375760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610f6e565b6001600160a01b0382166125985760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610f6e565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661261e5760405162461bcd60e51b8152600401610f6e90613a28565b6001600160a01b0382166126445760405162461bcd60e51b8152600401610f6e90613a6d565b805f036126565761191583835f612e71565b600d54610100900460ff166126ec576001600160a01b0383165f90815260208052604090205460ff16806126a057506001600160a01b0382165f90815260208052604090205460ff165b6126ec5760405162461bcd60e51b815260206004820152601a60248201527f54726164696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610f6e565b600d5460ff16156128ba576005546001600160a01b0384811691161480159061272357506005546001600160a01b03838116911614155b801561273757506001600160a01b03821615155b801561274e57506001600160a01b03821661dead14155b80156127645750600554600160a01b900460ff16155b156128ba576001600160a01b0383165f9081526022602052604090205460ff1680156127a857506001600160a01b0382165f9081526021602052604090205460ff16155b156128375743600b5460036127bd91906138b0565b11156127ce57813b156127ce575f80fd5b6009546127da83611420565b6127e490836138b0565b11156128325760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610f6e565b6128ba565b6001600160a01b0382165f9081526021602052604090205460ff166128ba5760095461286283611420565b61286c90836138b0565b11156128ba5760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610f6e565b5f6128c430611420565b600854909150811080159081906128e35750600d5462010000900460ff165b80156128f95750600554600160a01b900460ff16155b801561291d57506001600160a01b0385165f9081526022602052604090205460ff16155b801561294057506001600160a01b0385165f90815260208052604090205460ff16155b801561296357506001600160a01b0384165f90815260208052604090205460ff16155b15612991576005805460ff60a01b1916600160a01b179055612983612fb6565b6005805460ff60a01b191690555b6005546001600160a01b0386165f90815260208052604090205460ff600160a01b9092048216159116806129db57506001600160a01b0385165f90815260208052604090205460ff165b156129e357505f5b5f8115612bc5576001600160a01b0386165f9081526022602052604090205460ff168015612a1257505f601054115b15612ace57612a386103e8612a32601054886131d390919063ffffffff16565b90613251565b905060105460115482612a4b919061396e565b612a559190613985565b60185f828254612a6591906138b0565b9091555050601054601354612a7a908361396e565b612a849190613985565b601a5f828254612a9491906138b0565b9091555050601054601254612aa9908361396e565b612ab39190613985565b60195f828254612ac391906138b0565b90915550612ba79050565b6001600160a01b0387165f9081526022602052604090205460ff168015612af657505f601454115b15612ba757612b166103e8612a32601454886131d390919063ffffffff16565b905060145460155482612b29919061396e565b612b339190613985565b60185f828254612b4391906138b0565b9091555050601454601754612b58908361396e565b612b629190613985565b601a5f828254612b7291906138b0565b9091555050601454601654612b87908361396e565b612b919190613985565b60195f828254612ba191906138b0565b90915550505b8015612bb857612bb8873083612e71565b612bc28186613ab0565b94505b612bd0878787612e71565b6006546001600160a01b031663e30443bc88612beb81611420565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b158015612c2e575f80fd5b505af1158015612c40573d5f803e3d5ffd5b50506006546001600160a01b0316915063e30443bc905087612c6181611420565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b158015612ca4575f80fd5b505af1158015612cb6573d5f803e3d5ffd5b5050600554600160a01b900460ff16159150508015612cd657505f601b54115b15612d9f57601b546006546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303815f875af1925050508015612d47575060408051601f3d908101601f19168201909252612d4491810190613943565b60015b15612d9d5760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b50505050505050565b6001600160a01b0382165f908152602260205260409020805460ff1916821515179055612dd5828261155e565b8015612e365760065460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db0906024015f604051808303815f87803b158015612e1f575f80fd5b505af1158015612e31573d5f803e3d5ffd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab905f90a35050565b6001600160a01b038316612e975760405162461bcd60e51b8152600401610f6e90613a28565b6001600160a01b038216612ebd5760405162461bcd60e51b8152600401610f6e90613a6d565b6001600160a01b0383165f9081526020819052604090205481811015612f345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610f6e565b6001600160a01b038085165f90815260208190526040808220858503905591851681529081208054849290612f6a9084906138b0565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161141291815260200190565b5f612fc030611420565b90505f601854601954601a54612fd691906138b0565b612fe091906138b0565b9050811580612fed575080155b15612ff6575050565b5f600282601a5485613008919061396e565b6130129190613985565b61301c9190613985565b90505f6130298483613292565b905047613035826132d3565b5f6130404783613292565b90505f61306d6002601a546130559190613985565b61305f9088613ab0565b601954612a329085906131d3565b90505f61309a6002601a546130829190613985565b61308c9089613ab0565b601854612a329086906131d3565b90505f816130a88486613ab0565b6130b29190613ab0565b5f601a8190556019819055601855905086158015906130d057505f81115b15613123576130df8782613489565b601a54604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6006546040515f916001600160a01b03169084908381818185875af1925050503d805f811461316d576040519150601f19603f3d011682016040523d82523d5f602084013e613172565b606091505b50506007546040519192506001600160a01b03169047905f81818185875af1925050503d805f81146131bf576040519150601f19603f3d011682016040523d82523d5f602084013e6131c4565b606091505b50505050505050505050505050565b5f825f036131e257505f610e61565b5f6131ed838561396e565b9050826131fa8583613985565b14610edb5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610f6e565b5f610edb83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613565565b5f610edb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061359a565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110613306576133066139a4565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613382573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906133a69190613ac3565b816001815181106133b9576133b96139a4565b60200260200101906001600160a01b031690816001600160a01b031681525050613404307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846124d5565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906134589085905f90869030904290600401613ade565b5f604051808303815f87803b15801561346f575f80fd5b505af1158015613481573d5f803e3d5ffd5b505050505050565b6134b4307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846124d5565b60075460405163f305d71960e01b8152306004820152602481018490525f6044820181905260648201526001600160a01b0391821660848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063f305d71990839060c40160606040518083038185885af1158015613540573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906110ec9190613943565b5f81836135855760405162461bcd60e51b8152600401610f6e91906135c9565b505f6135918486613985565b95945050505050565b5f81848411156135bd5760405162461bcd60e51b8152600401610f6e91906135c9565b505f6135918486613ab0565b5f6020808352835180828501525f5b818110156135f4578581018301518582016040015282016135d8565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461119f575f80fd5b5f8060408385031215613639575f80fd5b823561364481613614565b946020939093013593505050565b5f60208284031215613662575f80fd5b8135610edb81613614565b5f806040838503121561367e575f80fd5b823561368981613614565b9150602083013561369981613614565b809150509250929050565b5f805f606084860312156136b6575f80fd5b83356136c181613614565b925060208401356136d181613614565b929592945050506040919091013590565b5f80604083850312156136f3575f80fd5b82359150602083013561369981613614565b5f60208284031215613715575f80fd5b5035919050565b801515811461119f575f80fd5b5f806040838503121561373a575f80fd5b823561374581613614565b915060208301356136998161371c565b5f805f60608486031215613767575f80fd5b505081359360208301359350604090920135919050565b5f6020828403121561378e575f80fd5b8135610edb8161371c565b5f805f604084860312156137ab575f80fd5b833567ffffffffffffffff808211156137c2575f80fd5b818601915086601f8301126137d5575f80fd5b8135818111156137e3575f80fd5b8760208260051b85010111156137f7575f80fd5b6020928301955093505084013561380d8161371c565b809150509250925092565b600181811c9082168061382c57607f821691505b60208210810361384a57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215613860575f80fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610e6157610e6161389c565b5f602082840312156138d3575f80fd5b8151610edb8161371c565b5f805f805f805f80610100898b0312156138f6575f80fd5b885161390181613614565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b5f805f60608486031215613955575f80fd5b8351925060208401519150604084015190509250925092565b8082028115828204841417610e6157610e6161389c565b5f8261399f57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f600182016139c9576139c961389c565b5060010190565b604080825281018390525f8460608301825b86811015613a125782356139f581613614565b6001600160a01b03168252602092830192909101906001016139e2565b5080925050508215156020830152949350505050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610e6157610e6161389c565b5f60208284031215613ad3575f80fd5b8151610edb81613614565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b81811015613b2c5784516001600160a01b031683529383019391830191600101613b07565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122082a0f08dd77373990992fa8edc7fd721c04a6dc8102e9db082ea121a9ccf409864736f6c63430008140033

Verified Source Code Partial Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: Yes (200 runs)
BABYPEPE.sol 1728 lines
/**

// BabyPepe [$$Babypepe] - PEPE Rewards


// https://officialbabypepe.com

// https://t.me/babypepe_officialtoken

// https://x.com/babypepeofc


**/

// SPDX-License-Identifier: MIT   

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 IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

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 _createInitialSupply(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    function _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);
    }
}

interface DividendPayingTokenOptionalInterface {
  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function withdrawableDividendOf(address _owner, address _rewardToken) external view returns(uint256);

  /// @notice View the amount of dividend in wei that an address has withdrawn.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has withdrawn.
  function withdrawnDividendOf(address _owner, address _rewardToken) external view returns(uint256);

  /// @notice View the amount of dividend in wei that an address has earned in total.
  /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has earned in total.
  function accumulativeDividendOf(address _owner, address _rewardToken) external view returns(uint256);
}

interface DividendPayingTokenInterface {
  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function dividendOf(address _owner, address _rewardToken) external view returns(uint256);

  /// @notice Distributes ether to token holders as dividends.
  /// @dev SHOULD distribute the paid ether to token holders as dividends.
  ///  SHOULD NOT directly transfer ether to token holders in this function.
  ///  MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0.
  function distributeDividends() external payable;

  /// @notice Withdraws the ether distributed to the sender.
  /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer.
  ///  MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0.
  function withdrawDividend(address _rewardToken) external;

  /// @dev This event MUST emit when ether is distributed to token holders.
  /// @param from The address which sends ether to this contract.
  /// @param weiAmount The amount of distributed ether in wei.
  event DividendsDistributed(
    address indexed from,
    uint256 weiAmount
  );

  /// @dev This event MUST emit when an address withdraws their dividend.
  /// @param to The address which withdraws ether from this contract.
  /// @param weiAmount The amount of withdrawn ether in wei.
  event DividendWithdrawn(
    address indexed to,
    uint256 weiAmount
  );
}

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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


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

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

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

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

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

contract DividendPayingToken is DividendPayingTokenInterface, DividendPayingTokenOptionalInterface, Ownable {
  using SafeMath for uint256;
  using SafeMathUint for uint256;
  using SafeMathInt for int256;

  // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
  // For more discussion about choosing the value of `magnitude`,
  //  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
  uint256 constant internal magnitude = 2**128;

  mapping(address => uint256) internal magnifiedDividendPerShare;
  address[] public rewardTokens;
  address public nextRewardToken;
  uint256 public rewardTokenCounter;
  
  IUniswapV2Router02 public immutable uniswapV2Router;
  
  
  // About dividendCorrection:
  // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
  //   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
  // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
  //   `dividendOf(_user)` should not be changed,
  //   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
  // To keep the `dividendOf(_user)` unchanged, we add a correction term:
  //   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
  //   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
  //   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
  // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
  mapping(address => mapping(address => int256)) internal magnifiedDividendCorrections;
  mapping(address => mapping(address => uint256)) internal withdrawnDividends;
  
  mapping (address => uint256) public holderBalance;
  uint256 public totalBalance;

  mapping(address => uint256) public totalDividendsDistributed;
  
  constructor(){
      IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
      uniswapV2Router = _uniswapV2Router; 
      
      // Mainnet

      rewardTokens.push(address(0x6982508145454Ce325dDbE47a25d4ec3d2311933)); // PEPE - 0x6982508145454Ce325dDbE47a25d4ec3d2311933
      
      nextRewardToken = rewardTokens[0];
  }

  /// @dev Distributes dividends whenever ether is paid to this contract.
  receive() external payable {
    distributeDividends();
  }

  /// @notice Distributes ether to token holders as dividends.
  /// @dev It reverts if the total supply of tokens is 0.
  /// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0.
  /// About undistributed ether:
  ///   In each distribution, there is a small amount of ether not distributed,
  ///     the magnified amount of which is
  ///     `(msg.value * magnitude) % totalSupply()`.
  ///   With a well-chosen `magnitude`, the amount of undistributed ether
  ///     (de-magnified) in a distribution can be less than 1 wei.
  ///   We can actually keep track of the undistributed ether in a distribution
  ///     and try to distribute it in the next distribution,
  ///     but keeping track of such data on-chain costs much more than
  ///     the saved ether, so we don't do that.
    
  function distributeDividends() public override payable { 
    require(totalBalance > 0);
    uint256 initialBalance = IERC20(nextRewardToken).balanceOf(address(this));
    buyTokens(msg.value, nextRewardToken);
    uint256 newBalance = IERC20(nextRewardToken).balanceOf(address(this)).sub(initialBalance);
    if (newBalance > 0) {
      magnifiedDividendPerShare[nextRewardToken] = magnifiedDividendPerShare[nextRewardToken].add(
        (newBalance).mul(magnitude) / totalBalance
      );
      emit DividendsDistributed(msg.sender, newBalance);

      totalDividendsDistributed[nextRewardToken] = totalDividendsDistributed[nextRewardToken].add(newBalance);
    }
    rewardTokenCounter = rewardTokenCounter == rewardTokens.length - 1 ? 0 : rewardTokenCounter + 1;
    nextRewardToken = rewardTokens[rewardTokenCounter];
  }
  
  // useful for buybacks or to reclaim any BNB on the contract in a way that helps holders.
    function buyTokens(uint256 bnbAmountInWei, address rewardToken) internal {
        // generate the uniswap pair path of weth -> eth
        address[] memory path = new address[](2);
        path[0] = uniswapV2Router.WETH();
        path[1] = rewardToken;

        // make the swap
        uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmountInWei}(
            0, // accept any amount of Ethereum
            path,
            address(this),
            block.timestamp
        );
    }
  
  /// @notice Withdraws the ether distributed to the sender.
  /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
  function withdrawDividend(address _rewardToken) external virtual override {
    _withdrawDividendOfUser(payable(msg.sender), _rewardToken);
  }

  /// @notice Withdraws the ether distributed to the sender.
  /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
  function _withdrawDividendOfUser(address payable user, address _rewardToken) internal returns (uint256) {
    uint256 _withdrawableDividend = withdrawableDividendOf(user, _rewardToken);
    if (_withdrawableDividend > 0) {
      withdrawnDividends[user][_rewardToken] = withdrawnDividends[user][_rewardToken].add(_withdrawableDividend);
      emit DividendWithdrawn(user, _withdrawableDividend);
      IERC20(_rewardToken).transfer(user, _withdrawableDividend);
      return _withdrawableDividend;
    }

    return 0;
  }


  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function dividendOf(address _owner, address _rewardToken) external view override returns(uint256) {
    return withdrawableDividendOf(_owner, _rewardToken);
  }

  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function withdrawableDividendOf(address _owner, address _rewardToken) public view override returns(uint256) {
    return accumulativeDividendOf(_owner,_rewardToken).sub(withdrawnDividends[_owner][_rewardToken]);
  }

  /// @notice View the amount of dividend in wei that an address has withdrawn.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has withdrawn.
  function withdrawnDividendOf(address _owner, address _rewardToken) external view override returns(uint256) {
    return withdrawnDividends[_owner][_rewardToken];
  }


  /// @notice View the amount of dividend in wei that an address has earned in total.
  /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
  /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has earned in total.
  function accumulativeDividendOf(address _owner, address _rewardToken) public view override returns(uint256) {
    return magnifiedDividendPerShare[_rewardToken].mul(holderBalance[_owner]).toInt256Safe()
      .add(magnifiedDividendCorrections[_rewardToken][_owner]).toUint256Safe() / magnitude;
  }

  /// @dev Internal function that increases tokens to an account.
  /// Update magnifiedDividendCorrections to keep dividends unchanged.
  /// @param account The account that will receive the created tokens.
  /// @param value The amount that will be created.
  function _increase(address account, uint256 value) internal {
    for (uint256 i; i < rewardTokens.length; i++){
        magnifiedDividendCorrections[rewardTokens[i]][account] = magnifiedDividendCorrections[rewardTokens[i]][account]
          .sub((magnifiedDividendPerShare[rewardTokens[i]].mul(value)).toInt256Safe());
    }
  }

  /// @dev Internal function that reduces an amount of the token of a given account.
  /// Update magnifiedDividendCorrections to keep dividends unchanged.
  /// @param account The account whose tokens will be burnt.
  /// @param value The amount that will be burnt.
  function _reduce(address account, uint256 value) internal {
      for (uint256 i; i < rewardTokens.length; i++){
        magnifiedDividendCorrections[rewardTokens[i]][account] = magnifiedDividendCorrections[rewardTokens[i]][account]
          .add( (magnifiedDividendPerShare[rewardTokens[i]].mul(value)).toInt256Safe() );
      }
  }

  function _setBalance(address account, uint256 newBalance) internal {
    uint256 currentBalance = holderBalance[account];
    holderBalance[account] = newBalance;
    if(newBalance > currentBalance) {
      uint256 increaseAmount = newBalance.sub(currentBalance);
      _increase(account, increaseAmount);
      totalBalance += increaseAmount;
    } else if(newBalance < currentBalance) {
      uint256 reduceAmount = currentBalance.sub(newBalance);
      _reduce(account, reduceAmount);
      totalBalance -= reduceAmount;
    }
  }
}

contract DividendTracker is DividendPayingToken {
    using SafeMath for uint256;
    using SafeMathInt for int256;

    struct Map {
        address[] keys;
        mapping(address => uint) values;
        mapping(address => uint) indexOf;
        mapping(address => bool) inserted;
    }

    function get(address key) private view returns (uint) {
        return tokenHoldersMap.values[key];
    }

    function getIndexOfKey(address key) private view returns (int) {
        if(!tokenHoldersMap.inserted[key]) {
            return -1;
        }
        return int(tokenHoldersMap.indexOf[key]);
    }

    function getKeyAtIndex(uint index) private view returns (address) {
        return tokenHoldersMap.keys[index];
    }



    function size() private view returns (uint) {
        return tokenHoldersMap.keys.length;
    }

    function set(address key, uint val) private {
        if (tokenHoldersMap.inserted[key]) {
            tokenHoldersMap.values[key] = val;
        } else {
            tokenHoldersMap.inserted[key] = true;
            tokenHoldersMap.values[key] = val;
            tokenHoldersMap.indexOf[key] = tokenHoldersMap.keys.length;
            tokenHoldersMap.keys.push(key);
        }
    }

    function remove(address key) private {
        if (!tokenHoldersMap.inserted[key]) {
            return;
        }

        delete tokenHoldersMap.inserted[key];
        delete tokenHoldersMap.values[key];

        uint index = tokenHoldersMap.indexOf[key];
        uint lastIndex = tokenHoldersMap.keys.length - 1;
        address lastKey = tokenHoldersMap.keys[lastIndex];

        tokenHoldersMap.indexOf[lastKey] = index;
        delete tokenHoldersMap.indexOf[key];

        tokenHoldersMap.keys[index] = lastKey;
        tokenHoldersMap.keys.pop();
    }

    Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;

    mapping (address => bool) public excludedFromDividends;

    mapping (address => uint256) public lastClaimTimes;

    uint256 public claimWait;
    uint256 public immutable minimumTokenBalanceForDividends;

    event ExcludeFromDividends(address indexed account);
    event IncludeInDividends(address indexed account);
    event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue);

    event Claim(address indexed account, uint256 amount, bool indexed automatic);

    constructor() {
        claimWait = 1200;
        minimumTokenBalanceForDividends = 1000 * (10**18);
    }

    function excludeFromDividends(address account) external onlyOwner {
        excludedFromDividends[account] = true;

        _setBalance(account, 0);
        remove(account);

        emit ExcludeFromDividends(account);
    }
    
    function includeInDividends(address account) external onlyOwner {
        require(excludedFromDividends[account]);
        excludedFromDividends[account] = false;

        emit IncludeInDividends(account);
    }

    function updateClaimWait(uint256 newClaimWait) external onlyOwner {
        require(newClaimWait >= 1200 && newClaimWait <= 86400, "Dividend_Tracker: claimWait must be updated to between 1 and 24 hours");
        require(newClaimWait != claimWait, "Dividend_Tracker: Cannot update claimWait to same value");
        emit ClaimWaitUpdated(newClaimWait, claimWait);
        claimWait = newClaimWait;
    }

    function getLastProcessedIndex() external view returns(uint256) {
        return lastProcessedIndex;
    }

    function getNumberOfTokenHolders() external view returns(uint256) {
        return tokenHoldersMap.keys.length;
    }

    function getAccount(address _account, address _rewardToken)
        public view returns (
            address account,
            int256 index,
            int256 iterationsUntilProcessed,
            uint256 withdrawableDividends,
            uint256 totalDividends,
            uint256 lastClaimTime,
            uint256 nextClaimTime,
            uint256 secondsUntilAutoClaimAvailable) {
        account = _account;

        index = getIndexOfKey(account);

        iterationsUntilProcessed = -1;

        if(index >= 0) {
            if(uint256(index) > lastProcessedIndex) {
                iterationsUntilProcessed = index.sub(int256(lastProcessedIndex));
            }
            else {
                uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ?
                                                        tokenHoldersMap.keys.length.sub(lastProcessedIndex) :
                                                        0;


                iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray));
            }
        }


        withdrawableDividends = withdrawableDividendOf(account, _rewardToken);
        totalDividends = accumulativeDividendOf(account, _rewardToken);

        lastClaimTime = lastClaimTimes[account];

        nextClaimTime = lastClaimTime > 0 ?
                                    lastClaimTime.add(claimWait) :
                                    0;

        secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ?
                                                    nextClaimTime.sub(block.timestamp) :
                                                    0;
    }

    function getAccountAtIndex(uint256 index, address _rewardToken)
        external view returns (
            address,
            int256,
            int256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256) {
        if(index >= size()) {
            return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0);
        }

        address account = getKeyAtIndex(index);

        return getAccount(account, _rewardToken);
    }

    function canAutoClaim(uint256 lastClaimTime) private view returns (bool) {
        if(lastClaimTime > block.timestamp)  {
            return false;
        }

        return block.timestamp.sub(lastClaimTime) >= claimWait;
    }

    function setBalance(address payable account, uint256 newBalance) external onlyOwner {
        if(excludedFromDividends[account]) {
            return;
        }

        if(newBalance >= minimumTokenBalanceForDividends) {
            _setBalance(account, newBalance);
            set(account, newBalance);
        }
        else {
            _setBalance(account, 0);
            remove(account);
        }

        processAccount(account, true);
    }
    
    function process(uint256 gas) external returns (uint256, uint256, uint256) {
        uint256 numberOfTokenHolders = tokenHoldersMap.keys.length;

        if(numberOfTokenHolders == 0) {
            return (0, 0, lastProcessedIndex);
        }

        uint256 _lastProcessedIndex = lastProcessedIndex;

        uint256 gasUsed = 0;

        uint256 gasLeft = gasleft();

        uint256 iterations = 0;
        uint256 claims = 0;

        while(gasUsed < gas && iterations < numberOfTokenHolders) {
            _lastProcessedIndex++;

            if(_lastProcessedIndex >= tokenHoldersMap.keys.length) {
                _lastProcessedIndex = 0;
            }

            address account = tokenHoldersMap.keys[_lastProcessedIndex];

            if(canAutoClaim(lastClaimTimes[account])) {
                if(processAccount(payable(account), true)) {
                    claims++;
                }
            }

            iterations++;

            uint256 newGasLeft = gasleft();

            if(gasLeft > newGasLeft) {
                gasUsed = gasUsed.add(gasLeft.sub(newGasLeft));
            }
            gasLeft = newGasLeft;
        }

        lastProcessedIndex = _lastProcessedIndex;

        return (iterations, claims, lastProcessedIndex);
    }

    function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) {
        uint256 amount;
        bool paid;
        for (uint256 i; i < rewardTokens.length; i++){
            amount = _withdrawDividendOfUser(account, rewardTokens[i]);
            if(amount > 0) {
                lastClaimTimes[account] = block.timestamp;
                emit Claim(account, amount, automatic);
                paid = true;
            }
        }
        return paid;
    }
}

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

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;

    bool private swapping;

    DividendTracker public dividendTracker;

    address public operationsWallet;
    
    uint256 public swapTokensAtAmount;
    uint256 public maxTxn;
    
    uint256 public liquidityActiveBlock = 0; // 0 means liquidity is not active yet
    uint256 public tradingActiveBlock = 0; // 0 means trading is not active
    uint256 public earlyBuyPenaltyEnd; // determines when snipers/bots can sell without extra penalty
    
    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 constant feeDivisor = 1000;

    uint256 public totalSellFees;
    uint256 public rewardsSellFee;
    uint256 public operationsSellFee;
    uint256 public liquiditySellFee;
    
    uint256 public totalBuyFees;
    uint256 public rewardsBuyFee;
    uint256 public operationsBuyFee;
    uint256 public liquidityBuyFee;
    
    uint256 public tokensForRewards;
    uint256 public tokensForOperations;
    uint256 public tokensForLiquidity;
    
    uint256 public gasForProcessing = 0;

    uint256 public lpWithdrawRequestTimestamp;
    uint256 public lpWithdrawRequestDuration = 3 days;
    bool public lpWithdrawRequestPending;
    uint256 public lpPercToWithDraw;

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

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

    mapping (address => bool) public _isExcludedMaxTransactionAmount;

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

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);
    event ExcludedMaxTransactionAmount(address indexed account, bool isExcluded);

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

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

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

    event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue);
    
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    event SendDividends(
        uint256 tokensSwapped,
        uint256 amount
    );

    event ProcessedDividendTracker(
        uint256 iterations,
        uint256 claims,
        uint256 lastProcessedIndex,
        bool indexed automatic,
        uint256 gas,
        address indexed processor
    );

    event RequestedLPWithdraw();
    
    event WithdrewLPForMigration();

    event CanceledLpWithdrawRequest();

    constructor() ERC20("BabyPepe", "BPEPE") {

        uint256 totalSupply = 21 * 1e6 * 1e18;
        
        swapTokensAtAmount = totalSupply * 2 / 100; // 2% swap tokens amount
        maxTxn = totalSupply * 2 / 100; // 2% Max wallet

        rewardsBuyFee = 30;
        operationsBuyFee = 170;
        liquidityBuyFee = 0;
        totalBuyFees = rewardsBuyFee + operationsBuyFee + liquidityBuyFee;
        
        rewardsSellFee = 400;
        operationsSellFee = 400;
        liquiditySellFee = 0;
        totalSellFees = rewardsSellFee + operationsSellFee + liquiditySellFee;

        dividendTracker = new DividendTracker();
        
        operationsWallet = address(0x26FDEe2C3399A9EB4a7164e7a508008A89281b04); // set as operations wallet

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);//0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        
         // Create a uniswap pair for this new token
        address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        // exclude from receiving dividends
        dividendTracker.excludeFromDividends(address(dividendTracker));
        dividendTracker.excludeFromDividends(address(this));
        dividendTracker.excludeFromDividends(owner());
        dividendTracker.excludeFromDividends(address(_uniswapV2Router));
        dividendTracker.excludeFromDividends(address(0xdead));
        
        // 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(dividendTracker), true);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        excludeFromMaxTransaction(address(0xdead), true);

        _createInitialSupply(address(owner()), totalSupply);
    }

    receive() external payable {

    }

    // only use if conducting a presale
    function addPresaleAddressForExclusions(address _presaleAddress) external onlyOwner {
        excludeFromFees(_presaleAddress, true);
        dividendTracker.excludeFromDividends(_presaleAddress);
        excludeFromMaxTransaction(_presaleAddress, true);
    }

     // disable Transfer delay - cannot be reenabled
    function disableTransferDelay() external onlyOwner returns (bool){
        transferDelayEnabled = false;
        return true;
    }

    // excludes wallets and contracts from dividends (such as CEX hotwallets, etc.)
    function excludeFromDividends(address account) external onlyOwner {
        dividendTracker.excludeFromDividends(account);
    }

    // removes exclusion on wallets and contracts from dividends (such as CEX hotwallets, etc.)
    function includeInDividends(address account) external onlyOwner {
        dividendTracker.includeInDividends(account);
    }
    
    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        require(!tradingActive, "Cannot re-enable trading");
        tradingActive = true;
        swapEnabled = true;
        tradingActiveBlock = block.number;
    }
    
    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner(){
        swapEnabled = enabled;
    }

    function updateMaxWalletAmount(uint256 newNum) external {
        require(_msgSender() == operationsWallet);

        require(newNum > (totalSupply() * 1 / 100)/1e18, "Cannot set maxTxn lower than 1%");
        maxTxn = newNum * (10**18);
    }
    
    function updateBuyFees(uint256 _operationsFee, uint256 _rewardsFee, uint256 _liquidityFee) external onlyOwner {
        operationsBuyFee = _operationsFee;
        rewardsBuyFee = _rewardsFee;
        liquidityBuyFee = _liquidityFee;
        totalBuyFees = operationsBuyFee + rewardsBuyFee + liquidityBuyFee;
        require(totalBuyFees <= 500, "Must keep fees at 50% or less");
    }
    
    function updateSellFees(uint256 _operationsFee, uint256 _rewardsFee, uint256 _liquidityFee) external onlyOwner {
        operationsSellFee = _operationsFee;
        rewardsSellFee = _rewardsFee;
        liquiditySellFee = _liquidityFee;
        totalSellFees = operationsSellFee + rewardsSellFee + liquiditySellFee;
        require(totalSellFees <= 900, "Must keep fees at 90% or less");
    }

   ...

// [truncated — 63547 bytes total]

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
dividendTokenBalanceOf 0x6843cd84 → uint256
dividendTracker 0x2c1f5216 → address
earlyBuyPenaltyEnd 0x1fc851bd → uint256
feeDivisor 0x9a36f932 → uint256
gasForProcessing 0x9c1b8af5 → uint256
getAccountDividendsInfo 0x92b59626 → address, int256, int256, uint256, uint256, uint256, uint256, uint256
getAccountDividendsInfoAtIndex 0x632459f0 → address, int256, int256, uint256, uint256, uint256, uint256, uint256
getClaimWait 0xa26579ad → uint256
getLastProcessedIndex 0xe7841ec0 → uint256
getNumberOfDividendTokenHolders 0x64b0f653 → uint256
getNumberOfDividends 0x71778e7d → uint256
getTotalDividendsDistributed 0x5645cd86 → uint256
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
liquidityActiveBlock 0x0f4432e3 → uint256
liquidityBuyFee 0xccb61358 → uint256
liquiditySellFee 0x099d0d30 → uint256
lpPercToWithDraw 0x783102eb → uint256
lpWithdrawRequestDuration 0xee44b44e → uint256
lpWithdrawRequestPending 0xfd361d0e → bool
lpWithdrawRequestTimestamp 0x058054c9 → uint256
maxTxn 0xe8792c1a → uint256
name 0x06fdde03 → string
nextAvailableLpWithdrawDate 0x712c2985 → uint256
operationsBuyFee 0xefcc1b2f → uint256
operationsSellFee 0x7506cbd8 → uint256
operationsWallet 0xfd72e22a → address
owner 0x8da5cb5b → address
rewardsBuyFee 0x4af6f7ee → uint256
rewardsSellFee 0xccd146b2 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
tokensForRewards 0xf54afa78 → uint256
totalBuyFees 0xb9e93700 → uint256
totalSellFees 0xd0a39814 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
withdrawableDividendOf 0x204f11a8 → uint256

Write Contract 31 functions

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

addPresaleAddressForExclusions 0xa716b773
address _presaleAddress
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
cancelLPWithdrawRequest 0xc7c61e2c
No parameters
claim 0x4e71d92d
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromDividends 0x31e79db0
address account
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
excludeMultipleAccountsFromFees 0xc492f046
address[] accounts
bool excluded
includeInDividends 0xc0f306ef
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
processDividendTracker 0x700bb191
uint256 gas
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
requestToWithdrawLP 0xbefd2fac
uint256 percToWithdraw
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _operationsFee
uint256 _rewardsFee
uint256 _liquidityFee
updateClaimWait 0xe98030c7
uint256 claimWait
updateGasForProcessing 0x871c128d
uint256 newValue
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateOperationsWallet 0x30d5d18d
address newOperationsWallet
updateSellFees 0xc17b5b8c
uint256 _operationsFee
uint256 _rewardsFee
uint256 _liquidityFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 _value
withdrawRequestedLP 0x763cef49
No parameters
withdrawStuckEth 0x7fa787ba
No parameters

Recent Transactions

No transactions found for this address