Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xeBF56B58Be8339A827F9E9Bed5FeAE3A6C63A562
Balance 0 ETH
Nonce 1
Code Size 10063 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

10063 bytes
0x6080604052600436106102295760003560e01c806379eb8d1d11610123578063a9059cbb116100ab578063d6c180bf1161006f578063d6c180bf14610726578063dd62ed3e1461073c578063ea2f0b3714610782578063f2fde38b146107a2578063f6794fdb146107c257600080fd5b8063a9059cbb1461069a578063c49b9a80146106ba578063c816841b146106da578063d12a7688146106fa578063d44e586e1461071057600080fd5b806395d89b41116100f257806395d89b41146105da5780639a7a23d61461060a5780639ba5e4d51461062a578063a457c2d71461065a578063a5ece9411461067a57600080fd5b806379eb8d1d1461054357806388f82020146105635780638da5cb5b1461059c578063906e9dd0146105ba57600080fd5b806339509351116101b15780635342acb4116101755780635342acb41461044257806370a082311461047b578063715018a61461049b5780637688c584146104b05780637949a4031461051357600080fd5b806339509351146103a1578063437823ec146103c15780634549b039146103e15780634a74bb021461040157806352390c021461042257600080fd5b806318160ddd116101f857806318160ddd1461030657806323b872dd146103255780632d83811914610345578063313ce567146103655780633685d4191461038157600080fd5b80630467978014610235578063055add0d1461025757806306fdde0314610299578063095ea7b3146102d657600080fd5b3661023057005b600080fd5b34801561024157600080fd5b506102556102503660046121de565b6107e2565b005b34801561026357600080fd5b50600d5461027c9061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156102a557600080fd5b5060408051808201909152600b81526a50696b6163687520496e7560a81b60208201525b60405161029091906121f7565b3480156102e257600080fd5b506102f66102f1366004612261565b610831565b6040519015158152602001610290565b34801561031257600080fd5b506007545b604051908152602001610290565b34801561033157600080fd5b506102f661034036600461228d565b610848565b34801561035157600080fd5b506103176103603660046121de565b6108f2565b34801561037157600080fd5b5060405160098152602001610290565b34801561038d57600080fd5b5061025561039c3660046122ce565b610976565b3480156103ad57600080fd5b506102f66103bc366004612261565b610b2d565b3480156103cd57600080fd5b506102556103dc3660046122ce565b610b69565b3480156103ed57600080fd5b506103176103fc366004612300565b610bb7565b34801561040d57600080fd5b50600e546102f690600160a01b900460ff1681565b34801561042e57600080fd5b5061025561043d3660046122ce565b610c41565b34801561044e57600080fd5b506102f661045d3660046122ce565b6001600160a01b031660009081526004602052604090205460ff1690565b34801561048757600080fd5b506103176104963660046122ce565b610d94565b3480156104a757600080fd5b50610255610df3565b3480156104bc57600080fd5b506010546104e69060ff808216916101008104821691620100008204811691630100000090041684565b6040805160ff95861681529385166020850152918416918301919091529091166060820152608001610290565b34801561051f57600080fd5b506102f661052e3660046122ce565b600c6020526000908152604090205460ff1681565b34801561054f57600080fd5b5061025561055e36600461232c565b610e29565b34801561056f57600080fd5b506102f661057e3660046122ce565b6001600160a01b031660009081526005602052604090205460ff1690565b3480156105a857600080fd5b506000546001600160a01b031661027c565b3480156105c657600080fd5b506102556105d53660046122ce565b610e94565b3480156105e657600080fd5b5060408051808201909152600781526650494b4143485560c81b60208201526102c9565b34801561061657600080fd5b5061025561062536600461234e565b610ee0565b34801561063657600080fd5b50601154601254610645919082565b60408051928352602083019190915201610290565b34801561066657600080fd5b506102f6610675366004612261565b610ff3565b34801561068657600080fd5b50600b5461027c906001600160a01b031681565b3480156106a657600080fd5b506102f66106b5366004612261565b61108c565b3480156106c657600080fd5b506102556106d536600461237a565b611099565b3480156106e657600080fd5b50600e5461027c906001600160a01b031681565b34801561070657600080fd5b50610317600f5481565b34801561071c57600080fd5b50610317600a5481565b34801561073257600080fd5b5061031760095481565b34801561074857600080fd5b50610317610757366004612395565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b34801561078e57600080fd5b5061025561079d3660046122ce565b61111b565b3480156107ae57600080fd5b506102556107bd3660046122ce565b611166565b3480156107ce57600080fd5b506102556107dd3660046123df565b611201565b6000546001600160a01b031633146108155760405162461bcd60e51b815260040161080c90612422565b60405180910390fd5b6108216009600a612551565b61082b9082612560565b600f5550565b600061083e338484611289565b5060015b92915050565b60006108558484846113ad565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156108da5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161080c565b6108e78533858403611289565b506001949350505050565b60006008548211156109595760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b606482015260840161080c565b60006109636116dc565b905061096f818461257f565b9392505050565b6000546001600160a01b031633146109a05760405162461bcd60e51b815260040161080c90612422565b6001600160a01b03811660009081526005602052604090205460ff16610a085760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f74206578636c75646564000000000000000000604482015260640161080c565b60005b600654811015610b2957816001600160a01b031660068281548110610a3257610a326125a1565b6000918252602090912001546001600160a01b03161415610b175760068054610a5d906001906125b7565b81548110610a6d57610a6d6125a1565b600091825260209091200154600680546001600160a01b039092169183908110610a9957610a996125a1565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff191690556006805480610af157610af16125ce565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610b21816125e4565b915050610a0b565b5050565b3360008181526003602090815260408083206001600160a01b0387168452909152812054909161083e918590610b649086906125ff565b611289565b6000546001600160a01b03163314610b935760405162461bcd60e51b815260040161080c90612422565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600754831115610c0b5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c7900604482015260640161080c565b81610c27576000610c1d8460016116ff565b5191506108429050565b6000610c348460016116ff565b6020015191506108429050565b6000546001600160a01b03163314610c6b5760405162461bcd60e51b815260040161080c90612422565b6001600160a01b03811660009081526005602052604090205460ff1615610cd45760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015260640161080c565b6001600160a01b03811660009081526001602052604090205415610d2e576001600160a01b038116600090815260016020526040902054610d14906108f2565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b03811660009081526005602052604081205460ff1615610dd157506001600160a01b031660009081526002602052604090205490565b6001600160a01b038216600090815260016020526040902054610842906108f2565b6000546001600160a01b03163314610e1d5760405162461bcd60e51b815260040161080c90612422565b610e276000611775565b565b6000546001600160a01b03163314610e535760405162461bcd60e51b815260040161080c90612422565b61271082600754610e649190612560565b610e6e919061257f565b60095560075461271090610e83908390612560565b610e8d919061257f565b600a555050565b6000546001600160a01b03163314610ebe5760405162461bcd60e51b815260040161080c90612422565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610f0a5760405162461bcd60e51b815260040161080c90612422565b6001600160a01b0382166000908152600c602052604090205460ff1615158115151415610f9f5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c75650000000000000000606482015260840161080c565b6001600160a01b0382166000818152600c6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b3360009081526003602090815260408083206001600160a01b0386168452909152812054828110156110755760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161080c565b6110823385858403611289565b5060019392505050565b600061083e3384846113ad565b6000546001600160a01b031633146110c35760405162461bcd60e51b815260040161080c90612422565b600e8054821515600160a01b0260ff60a01b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061111090831515815260200190565b60405180910390a150565b6000546001600160a01b031633146111455760405162461bcd60e51b815260040161080c90612422565b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b031633146111905760405162461bcd60e51b815260040161080c90612422565b6001600160a01b0381166111f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161080c565b6111fe81611775565b50565b6000546001600160a01b0316331461122b5760405162461bcd60e51b815260040161080c90612422565b6010805460ff838116620100000262ff0000198683166101000261ffff199094169288169290921792909217161790556112658183612617565b6010805460ff9290921663010000000263ff00000019909216919091179055505050565b6001600160a01b0383166112eb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161080c565b6001600160a01b03821661134c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161080c565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166114115760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161080c565b6001600160a01b0382166114735760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161080c565b600081116114d55760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161080c565b6114de83610d94565b8111156115475760405162461bcd60e51b815260206004820152603160248201527f596f752061726520747279696e6720746f207472616e73666572206d6f7265206044820152707468616e20796f75722062616c616e636560781b606482015260840161080c565b6001600160a01b03831660009081526004602052604081205460ff168061158657506001600160a01b03831660009081526004602052604090205460ff165b1590508015611663576001600160a01b0384166000908152600c602052604090205460ff1615611607576009548211156116025760405162461bcd60e51b815260206004820181905260248201527f616d6f756e74206d757374206265203c3d206d61785478416d6f756e74427579604482015260640161080c565b611663565b600a548211156116635760405162461bcd60e51b815260206004820152602160248201527f616d6f756e74206d757374206265203c3d206d61785478416d6f756e7453656c6044820152601b60fa1b606482015260840161080c565b600f5461166f30610d94565b101580156116805750600d5460ff16155b80156116a557506001600160a01b0384166000908152600c602052604090205460ff16155b80156116ba5750600e54600160a01b900460ff165b156116ca576116ca600f546117c5565b6116d6848484846118af565b50505050565b60008060006116e9611a98565b90925090506116f8818361257f565b9250505090565b61173f6040518060e00160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6117498383611c1b565b905061175e8184846117596116dc565b611cdd565b606085015260408401526020830152815292915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600d805460ff191660011790556010546000906117ed906301000000900460ff16600261263c565b60105460ff9182169250600091839161180e91620100009091041685612560565b611818919061257f565b9050600061182682856125b7565b90504761183282611d48565b600061183e82476125b7565b60105490915060009061185a9062010000900460ff16876125b7565b6010546118709062010000900460ff1684612560565b61187a919061257f565b90506118868582611f0a565b600b5461189c906001600160a01b031647612015565b5050600d805460ff191690555050505050565b60006118bb83836116ff565b6001600160a01b03861660009081526005602052604090205490915060ff161561190d576001600160a01b038516600090815260026020526040812080548592906119079084906125b7565b90915550505b6001600160a01b03841660009081526005602052604090205460ff16156119615760808101516001600160a01b0385166000908152600260205260408120805490919061195b9084906125ff565b90915550505b80516001600160a01b0386166000908152600160205260408120805490919061198b9084906125b7565b90915550506020808201516001600160a01b03861660009081526001909252604082208054919290916119bf9084906125ff565b90915550508115611a40576119dc81604001518260a00151612133565b6119ee81606001518260c00151612168565b306001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360c00151604051611a3791815260200190565b60405180910390a35b836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360800151604051611a8991815260200190565b60405180910390a35050505050565b6008546007546000918291825b600654811015611bea57826001600060068481548110611ac757611ac76125a1565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180611b325750816002600060068481548110611b0b57611b0b6125a1565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15611b4857600854600754945094505050509091565b6001600060068381548110611b5f57611b5f6125a1565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611b8e90846125b7565b92506002600060068381548110611ba757611ba76125a1565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611bd690836125b7565b915080611be2816125e4565b915050611aa5565b50600754600854611bfb919061257f565b821015611c12576008546007549350935050509091565b90939092509050565b611c5b6040518060e00160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b81611c6c5760808101839052610842565b601054606490611c7f9060ff1685612560565b611c89919061257f565b60a0820152601054606490611ca8906301000000900460ff1685612560565b611cb2919061257f565b60c0820181905260a0820151611cc890856125b7565b611cd291906125b7565b608082015292915050565b6000808080611cec8588612560565b935085611d0157508291506000905080611d3d565b848860a00151611d119190612560565b9150848860c00151611d239190612560565b905080611d3083866125b7565b611d3a91906125b7565b92505b945094509450949050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611d7d57611d7d6125a1565b60200260200101906001600160a01b031690816001600160a01b031681525050600d60019054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611deb57600080fd5b505afa158015611dff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e23919061265d565b81600181518110611e3657611e366125a1565b6001600160a01b03928316602091820292909201810191909152600d54306000908152600383526040808220610100909304909416815291522054821115611e9757600d54611e9790309061010090046001600160a01b0316600019611289565b600d5460405163791ac94760e01b81526101009091046001600160a01b03169063791ac94790611ed490859060009086903090429060040161267a565b600060405180830381600087803b158015611eee57600080fd5b505af1158015611f02573d6000803e3d6000fd5b505050505050565b600d546001600160a01b036101009091041663f305d719823085600080611f396000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b158015611f9c57600080fd5b505af1158015611fb0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611fd591906126eb565b505060408051848152602081018490527f38f8a0c92f4c5b0b6877f878cb4c0c8d348a47b76d716c8e78f425043df9515b92500160405180910390a15050565b804710156120655760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161080c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146120b2576040519150601f19603f3d011682016040523d82523d6000602084013e6120b7565b606091505b505090508061212e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161080c565b505050565b816008600082825461214591906125b7565b90915550506011805482919060009061215f9084906125ff565b90915550505050565b30600090815260016020526040812080548492906121879084906125ff565b90915550503060009081526005602052604090205460ff16156121c95730600090815260026020526040812080548392906121c39084906125ff565b90915550505b806011600101600082825461215f91906125ff565b6000602082840312156121f057600080fd5b5035919050565b600060208083528351808285015260005b8181101561222457858101830151858201604001528201612208565b81811115612236576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146111fe57600080fd5b6000806040838503121561227457600080fd5b823561227f8161224c565b946020939093013593505050565b6000806000606084860312156122a257600080fd5b83356122ad8161224c565b925060208401356122bd8161224c565b929592945050506040919091013590565b6000602082840312156122e057600080fd5b813561096f8161224c565b803580151581146122fb57600080fd5b919050565b6000806040838503121561231357600080fd5b82359150612323602084016122eb565b90509250929050565b6000806040838503121561233f57600080fd5b50508035926020909101359150565b6000806040838503121561236157600080fd5b823561236c8161224c565b9150612323602084016122eb565b60006020828403121561238c57600080fd5b61096f826122eb565b600080604083850312156123a857600080fd5b82356123b38161224c565b915060208301356123c38161224c565b809150509250929050565b803560ff811681146122fb57600080fd5b6000806000606084860312156123f457600080fd5b6123fd846123ce565b925061240b602085016123ce565b9150612419604085016123ce565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156124a857816000190482111561248e5761248e612457565b8085161561249b57918102915b93841c9390800290612472565b509250929050565b6000826124bf57506001610842565b816124cc57506000610842565b81600181146124e257600281146124ec57612508565b6001915050610842565b60ff8411156124fd576124fd612457565b50506001821b610842565b5060208310610133831016604e8410600b841016171561252b575081810a610842565b612535838361246d565b806000190482111561254957612549612457565b029392505050565b600061096f60ff8416836124b0565b600081600019048311821515161561257a5761257a612457565b500290565b60008261259c57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000828210156125c9576125c9612457565b500390565b634e487b7160e01b600052603160045260246000fd5b60006000198214156125f8576125f8612457565b5060010190565b6000821982111561261257612612612457565b500190565b600060ff821660ff84168060ff0382111561263457612634612457565b019392505050565b600060ff821660ff84168160ff048111821515161561254957612549612457565b60006020828403121561266f57600080fd5b815161096f8161224c565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156126ca5784516001600160a01b0316835293830193918301916001016126a5565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561270057600080fd5b835192506020840151915060408401519050925092509256fea264697066735822122067dc8413bdcca0477ac23a97c58fee22e072d84b38fa95b0f18712910ec7d90a64736f6c63430008090033

Verified Source Code Full Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: Yes (200 runs)
PikachuInu.sol 451 lines
// SPDX-License-Identifier: NOLICENSE
pragma solidity ^0.8.0;

/* Pikachu Inu:
* 1 Quadrillion supply
*
*Fees on tx: 10%
*Reflections: 2%
*Liquidity: 3%
*Marketing (in eth) : 5%
*
*Maxtx on buy: 0.1% of supply
*MaxTx on sell: 0.1% of supply
* 
*(fees and maxtx amounts can be changed after deployment, check the values of their variables on read section) 
*/

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@openzeppelin/contracts/utils/Address.sol";

contract PikachuInu is Context, IERC20, Ownable {

    using Address for address payable;

    mapping (address => uint256) private _rOwned;
    mapping (address => uint256) private _tOwned;
    mapping (address => mapping (address => uint256)) private _allowances;
    mapping (address => bool) private _isExcludedFromFee;
    mapping (address => bool) private _isExcluded;
    address[] private _excluded;

    uint8 private constant _decimals = 9;
    uint256 private constant MAX = ~uint256(0);

    uint256 private _tTotal = 10**15 * 10**_decimals;
    uint256 private _rTotal = (MAX - (MAX % _tTotal));
 
    uint256 public maxTxAmountBuy = _tTotal/1000; // 0.1% of supply (1T tokens)
    uint256 public maxTxAmountSell = _tTotal/1000; // 0.1% of supply (1T tokens)


    address payable public marketingAddress;

    mapping (address => bool) public isAutomatedMarketMakerPair;

    string private constant _name = "Pikachu Inu";
    string private constant _symbol = "PIKACHU";

    bool private inSwapAndLiquify;

    IUniswapV2Router02 public UniswapV2Router;
    address public uniswapPair;
    bool public swapAndLiquifyEnabled = true;
    uint256 public numTokensSellToAddToLiquidity = _tTotal/500;

    struct feeRatesStruct {
      uint8 rfi;
      uint8 marketing;
      uint8 autolp;
      uint8 toSwap;
    }

    feeRatesStruct public feeRates = feeRatesStruct(
     {
      rfi: 2,    //autoreflection rate, in %
      marketing: 5, //marketing fee in % (in ETH)
      autolp: 3, // autolp rate in %
      toSwap: 8 // marketing + autolp
    });

    struct TotFeesPaidStruct{
        uint256 rfi;
        uint256 toSwap;
    }
    TotFeesPaidStruct public totFeesPaid;

    struct valuesFromGetValues{
      uint256 rAmount;
      uint256 rTransferAmount;
      uint256 rRfi;
      uint256 rToSwap;
      uint256 tTransferAmount;
      uint256 tRfi;
      uint256 tToSwap;
    }

    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(uint256 tokensSwapped, uint256 ETHReceived, uint256 tokensIntotoSwap);
    event LiquidityAdded(uint256 tokenAmount, uint256 ETHAmount);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);


    modifier lockTheSwap {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    constructor () {
        
        IUniswapV2Router02 _UniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        uniswapPair = IUniswapV2Factory(_UniswapV2Router.factory())
                            .createPair(address(this), _UniswapV2Router.WETH());
        isAutomatedMarketMakerPair[uniswapPair] = true;
        emit SetAutomatedMarketMakerPair(uniswapPair, true);
        UniswapV2Router = _UniswapV2Router;
        _rOwned[owner()] = _rTotal;
        marketingAddress= payable(msg.sender);
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[marketingAddress]=true;
        _isExcludedFromFee[address(this)]=true;        

        emit Transfer(address(0), owner(), _tTotal);
    }

    //std ERC20:
    function name() public pure returns (string memory) {
        return _name;
    }
    function symbol() public pure returns (string memory) {
        return _symbol;
    }
    function decimals() public pure returns (uint8) {
        return _decimals;
    }

    //override ERC20:
    function totalSupply() public view override returns (uint256) {
        return _tTotal;
    }

    function balanceOf(address account) public view override returns (uint256) {
        if (_isExcluded[account]) return _tOwned[account];
        return tokenFromReflection(_rOwned[account]);
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public 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 isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferRfi) public view returns(uint256) {
        require(tAmount <= _tTotal, "Amount must be less than supply");
        if (!deductTransferRfi) {
            valuesFromGetValues memory s = _getValues(tAmount, true);
            return s.rAmount;
        } else {
            valuesFromGetValues memory s = _getValues(tAmount, true);
            return s.rTransferAmount;
        }
    }


    function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
        require(rAmount <= _rTotal, "Amount must be less than total reflections");
        uint256 currentRate =  _getRate();
        return rAmount/currentRate;
    }

    //@dev kept original RFI naming -> "reward" as in reflection
    function excludeFromReward(address account) external onlyOwner() {
        require(!_isExcluded[account], "Account is already excluded");
        if(_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

    function includeInReward(address account) external onlyOwner() {
        require(_isExcluded[account], "Account is not excluded");
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                _excluded[i] = _excluded[_excluded.length - 1];
                _tOwned[account] = 0;
                _isExcluded[account] = false;
                _excluded.pop();
                break;
            }
        }
    }


    function excludeFromFee(address account) external onlyOwner {
        _isExcludedFromFee[account] = true;
    }

    function includeInFee(address account) external onlyOwner {
        _isExcludedFromFee[account] = false;
    }

    function isExcludedFromFee(address account) public view returns(bool) {
        return _isExcludedFromFee[account];
    }

    function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
      swapAndLiquifyEnabled = _enabled;
      emit SwapAndLiquifyEnabledUpdated(_enabled);
    }

    //  @dev receive ETH from UniswapV2Router when swapping
    receive() external payable {}

    function _reflectRfi(uint256 rRfi, uint256 tRfi) private {
        _rTotal -= rRfi;
        totFeesPaid.rfi += tRfi;
    }

    function _takeToSwap(uint256 rToSwap,uint256 tToSwap) private {
        _rOwned[address(this)] +=rToSwap;
        if(_isExcluded[address(this)])
            _tOwned[address(this)] += tToSwap;
        totFeesPaid.toSwap+=tToSwap;
        
    }

    function _getValues(uint256 tAmount, bool takeFee) private view returns (valuesFromGetValues memory to_return) {
        to_return = _getTValues(tAmount, takeFee);
        (to_return.rAmount, to_return.rTransferAmount, to_return.rRfi, to_return.rToSwap) = _getRValues(to_return, tAmount, takeFee, _getRate());
        return to_return;
    }

    function _getTValues(uint256 tAmount, bool takeFee) private view returns (valuesFromGetValues memory s) {

        if(!takeFee) {
          s.tTransferAmount = tAmount;
          return s;
        }
        s.tRfi = tAmount*feeRates.rfi/100;
        s.tToSwap = tAmount*feeRates.toSwap/100;
        s.tTransferAmount = tAmount-s.tRfi-s.tToSwap;
        return s;
    }

    function _getRValues(valuesFromGetValues memory s, uint256 tAmount, bool takeFee, uint256 currentRate) private pure returns (uint256 rAmount, uint256 rTransferAmount, uint256 rRfi, uint256 rToSwap) {
        rAmount = tAmount*currentRate;

        if(!takeFee) {
          return(rAmount, rAmount,0,0);
        }

        rRfi = s.tRfi*currentRate;
        rToSwap = s.tToSwap*currentRate;
        rTransferAmount =  rAmount-rRfi-rToSwap;
        return (rAmount, rTransferAmount, rRfi,rToSwap);
    }

    function _getRate() private view returns(uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply/tSupply;
    }

    function _getCurrentSupply() private view returns(uint256, uint256) {
        uint256 rSupply = _rTotal;
        uint256 tSupply = _tTotal;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
            rSupply -=_rOwned[_excluded[i]];
            tSupply -=_tOwned[_excluded[i]];
        }
        if (rSupply < _rTotal/_tTotal) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }


    function _approve(address owner, address spender, uint256 amount) private {
        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);
    }

    function _transfer(address from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        require(amount <= balanceOf(from),"You are trying to transfer more than your balance");
        bool takeFee = !(_isExcludedFromFee[from] || _isExcludedFromFee[to]);

        if(takeFee)
        {
            if(isAutomatedMarketMakerPair[from])
            {
                require(amount<=maxTxAmountBuy, "amount must be <= maxTxAmountBuy");
            }
            else
            {
                require(amount<=maxTxAmountSell, "amount must be <= maxTxAmountSell");
            }
        }

        if (balanceOf(address(this)) >= numTokensSellToAddToLiquidity  && !inSwapAndLiquify && !isAutomatedMarketMakerPair[from] && swapAndLiquifyEnabled) {
            //add liquidity
            swapAndLiquify(numTokensSellToAddToLiquidity);
        }

        _tokenTransfer(from, to, amount, takeFee);
    }

    //this method is responsible for taking all fee, if takeFee is true
    function _tokenTransfer(address sender, address recipient, uint256 tAmount, bool takeFee) private {
        
        valuesFromGetValues memory s = _getValues(tAmount, takeFee);

        if (_isExcluded[sender]) {
                _tOwned[sender] -= tAmount;
        } 
        if (_isExcluded[recipient]) {
                _tOwned[recipient] += s.tTransferAmount;
        }

        _rOwned[sender] -= s.rAmount;
        _rOwned[recipient] += s.rTransferAmount;
        if(takeFee)
        {
        _reflectRfi(s.rRfi, s.tRfi);
        _takeToSwap(s.rToSwap,s.tToSwap);
        emit Transfer(sender, address(this), s.tToSwap);
        }
        emit Transfer(sender, recipient, s.tTransferAmount);
    }

    function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {

        uint256 denominator = feeRates.toSwap*2;
        uint256 tokensToAddLiquidityWith = contractTokenBalance*feeRates.autolp/denominator;
        uint256 toSwap = contractTokenBalance-tokensToAddLiquidityWith;

        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForETH(toSwap);

        uint256 deltaBalance = address(this).balance -initialBalance;
        uint256 ETHToAddLiquidityWith = deltaBalance*feeRates.autolp/ (denominator- feeRates.autolp);
        
        // add liquidity to  Uniswap
        addLiquidity(tokensToAddLiquidityWith, ETHToAddLiquidityWith);
        
        marketingAddress.sendValue(address(this).balance); //we give the remaining tax to marketing (5/8 of the toSwap tax)
    }

    function swapTokensForETH(uint256 tokenAmount) private {

        // generate the Pancakeswap pair path of token -> wETH
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = UniswapV2Router.WETH();

        if(allowance(address(this), address(UniswapV2Router)) < tokenAmount) {
          _approve(address(this), address(UniswapV2Router), ~uint256(0));
        }

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

    function addLiquidity(uint256 tokenAmount, uint256 ETHAmount) private {

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

    function setAutomatedMarketMakerPair(address _pair, bool value) external onlyOwner{
        require(isAutomatedMarketMakerPair[_pair] != value, "Automated market maker pair is already set to that value");
        isAutomatedMarketMakerPair[_pair] = value;
        emit SetAutomatedMarketMakerPair(_pair, value);
    }

    function setFees(uint8 _rfi,uint8 _marketing,uint8 _autolp) external onlyOwner
    {
     feeRates.rfi=_rfi;
     feeRates.marketing=_marketing;
     feeRates.autolp=_autolp;
     feeRates.toSwap= _marketing+_autolp;
    }

    function setMaxTransactionAmountsPerK(uint256 _maxTxAmountBuyPer10K, uint256 _maxTxAmountSellPer10K) external onlyOwner
    {
     maxTxAmountBuy = _tTotal*_maxTxAmountBuyPer10K/10000;
     maxTxAmountSell = _tTotal*_maxTxAmountSellPer10K/10000;
    }
    
    function setNumTokensSellToAddToLiq(uint256 amountTokens) external onlyOwner
    {
     numTokensSellToAddToLiquidity = amountTokens*10**_decimals;
    }

    function setMarketingAddress(address payable _marketingAddress) external onlyOwner
    {
        marketingAddress = _marketingAddress;
    }

}
Address.sol 216 lines
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
Context.sol 23 lines
// SPDX-License-Identifier: MIT

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;
    }
}
Ownable.sol 71 lines
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
IERC20.sol 81 lines
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

Read Contract

UniswapV2Router 0x055add0d → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
feeRates 0x7688c584 → uint8, uint8, uint8, uint8
isAutomatedMarketMakerPair 0x7949a403 → bool
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
marketingAddress 0xa5ece941 → address
maxTxAmountBuy 0xd6c180bf → uint256
maxTxAmountSell 0xd44e586e → uint256
name 0x06fdde03 → string
numTokensSellToAddToLiquidity 0xd12a7688 → uint256
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totFeesPaid 0x9ba5e4d5 → uint256, uint256
totalSupply 0x18160ddd → uint256
uniswapPair 0xc816841b → address

Write Contract 17 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFee 0x437823ec
address account
excludeFromReward 0x52390c02
address account
includeInFee 0xea2f0b37
address account
includeInReward 0x3685d419
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address _pair
bool value
setFees 0xf6794fdb
uint8 _rfi
uint8 _marketing
uint8 _autolp
setMarketingAddress 0x906e9dd0
address _marketingAddress
setMaxTransactionAmountsPerK 0x79eb8d1d
uint256 _maxTxAmountBuyPer10K
uint256 _maxTxAmountSellPer10K
setNumTokensSellToAddToLiq 0x04679780
uint256 amountTokens
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address