Address Contract Verified
Address
0x89ca762f778c82120C13C79A9bFbDF6e8e663AB4
Balance
0 ETH
Nonce
1
Code Size
10333 bytes
Creator
0x9bCc76Af...f593 at tx 0x91c2c4c8...93a973
Indexed Transactions
0
Contract Bytecode
10333 bytes
0x6080604052600436106102f5575f3560e01c80638da5cb5b11610195578063cb963728116100ea578063e6c1909b1161008e578063f2fde38b1161006b578063f2fde38b14610958578063f53bc83514610977578063f8b45b0514610996578063fd72e22a146109ab57005b8063e6c1909b146108fa578063ee5ecc891461091a578063ef998cf01461093957005b8063d5f39488116100c7578063d5f394881461084f578063dcf7aef314610882578063dd62ed3e146108a1578063e2f45605146108e557005b8063cb963728146107f1578063d26ed3e314610810578063d5759ba31461082f57005b8063acb2ad6f11610151578063b62496f51161012e578063b62496f51461077b578063b8eb3546146107a9578063bbaf58ef146107be578063bc063e1a146107dd57005b8063acb2ad6f14610728578063ad29ffde1461073d578063afa4f3b21461075c57005b80638da5cb5b1461067c57806395927c251461069857806395d89b41146106b75780639a7a23d6146106cb5780639c0db5f3146106ea578063a9059cbb1461070957005b8063470624021161024b57806359512ab0116102075780636ca541e5116101e45780636ca541e5146105ff57806370a082311461061f57806370db69d614610653578063715018a61461066857005b806359512ab0146105935780635cce86cd146105b25780635d0044ca146105e057005b806347062402146104d657806349bd5a5e146104eb5780634e6fd6c41461051e5780634fbee19314610533578063538ba4f9146105615780635932ead11461057457005b806323b872dd116102b2578063307aebc91161028f578063307aebc91461044e578063313ce5671461046e5780633bbac5791461048957806341aea9de146104b757005b806323b872dd146103ec578063245d98481461040b5780632b14ca561461043957005b806301339c21146102f757806306fdde031461030b578063095ea7b314610335578063106a5a8f146103645780631694505e1461038357806318160ddd146103ce575b005b348015610302575f5ffd5b506102f56109ca565b348015610316575f5ffd5b5061031f610a3a565b60405161032c91906124c9565b60405180910390f35b348015610340575f5ffd5b5061035461034f366004612512565b610aca565b604051901515815260200161032c565b34801561036f575f5ffd5b506102f561037e366004612550565b610ae3565b34801561038e575f5ffd5b506103b67f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161032c565b3480156103d9575f5ffd5b506003545b60405190815260200161032c565b3480156103f7575f5ffd5b506103546104063660046125cf565b610b33565b348015610416575f5ffd5b5061035461042536600461260d565b60126020525f908152604090205460ff1681565b348015610444575f5ffd5b506103de600d5481565b348015610459575f5ffd5b5060065461035490600160c01b900460ff1681565b348015610479575f5ffd5b506040516012815260200161032c565b348015610494575f5ffd5b506103546104a336600461260d565b600f6020525f908152604090205460ff1681565b3480156104c2575f5ffd5b506102f56104d136600461262f565b610b56565b3480156104e1575f5ffd5b506103de600c5481565b3480156104f6575f5ffd5b506103b67f000000000000000000000000e85ac6c3fc840ef0e0c38ec4f1c0bd69f545d27a81565b348015610529575f5ffd5b506103b661dead81565b34801561053e575f5ffd5b5061035461054d36600461260d565b60106020525f908152604090205460ff1681565b34801561056c575f5ffd5b506103b65f81565b34801561057f575f5ffd5b506102f561058e36600461262f565b610bb6565b34801561059e575f5ffd5b506102f56105ad36600461262f565b610c0b565b3480156105bd575f5ffd5b506103546105cc36600461260d565b60116020525f908152604090205460ff1681565b3480156105eb575f5ffd5b506102f56105fa366004612648565b610c60565b34801561060a575f5ffd5b5060065461035490600160a81b900460ff1681565b34801561062a575f5ffd5b506103de61063936600461260d565b6001600160a01b03165f9081526001602052604090205490565b34801561065e575f5ffd5b506103de60085481565b348015610673575f5ffd5b506102f5610cde565b348015610687575f5ffd5b505f546001600160a01b03166103b6565b3480156106a3575f5ffd5b506102f56106b2366004612648565b610cf1565b3480156106c2575f5ffd5b5061031f610d61565b3480156106d6575f5ffd5b506102f56106e536600461265f565b610d70565b3480156106f5575f5ffd5b506102f5610704366004612550565b610dbf565b348015610714575f5ffd5b50610354610723366004612512565b610fcc565b348015610733575f5ffd5b506103de600e5481565b348015610748575f5ffd5b506102f5610757366004612550565b610fd9565b348015610767575f5ffd5b506102f5610776366004612648565b611023565b348015610786575f5ffd5b5061035461079536600461260d565b60136020525f908152604090205460ff1681565b3480156107b4575f5ffd5b506103de60095481565b3480156107c9575f5ffd5b506102f56107d8366004612550565b6110ef565b3480156107e8575f5ffd5b506103de601e81565b3480156107fc575f5ffd5b506102f561080b36600461260d565b611139565b34801561081b575f5ffd5b506102f561082a366004612648565b611303565b34801561083a575f5ffd5b5060065461035490600160a01b900460ff1681565b34801561085a575f5ffd5b506103b67f0000000000000000000000009bcc76af95bbbee8cb35a0eb6316de9c2b54f59381565b34801561088d575f5ffd5b506102f561089c366004612648565b61136b565b3480156108ac575f5ffd5b506103de6108bb366004612692565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b3480156108f0575f5ffd5b506103de600b5481565b348015610905575f5ffd5b5060065461035490600160b01b900460ff1681565b348015610925575f5ffd5b506102f561093436600461260d565b6113d3565b348015610944575f5ffd5b506102f5610953366004612648565b61147d565b348015610963575f5ffd5b506102f561097236600461260d565b6114fb565b348015610982575f5ffd5b506102f5610991366004612648565b61153d565b3480156109a1575f5ffd5b506103de600a5481565b3480156109b6575f5ffd5b506006546103b6906001600160a01b031681565b6109d26115bb565b600654600160c01b900460ff16156109fd576040516319f4db0f60e31b815260040160405180910390fd5b6006805460ff60c01b1916600160c01b1790556040517f02ac8168caf2f254b394bd39e19417c5c28124ab89c9bc2d44921b19808e2669905f90a1565b606060048054610a49906126c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a75906126c9565b8015610ac05780601f10610a9757610100808354040283529160200191610ac0565b820191905f5260205f20905b815481529060010190602001808311610aa357829003601f168201915b5050505050905090565b5f33610ad78185856115e7565b60019150505b92915050565b610aeb6115bb565b5f5b82811015610b2d57610b25848483818110610b0a57610b0a612701565b9050602002016020810190610b1f919061260d565b836115f9565b600101610aed565b50505050565b5f33610b40858285611654565b610b4b8585856116ca565b506001949350505050565b610b5e6115bb565b60068054821515600160a01b0260ff60a01b199091161790556040517ff771b1e218dc92494b39e21852f9c24c3b448d6697c2b485cc1f0cff3c9ec78190610bab90831515815260200190565b60405180910390a150565b610bbe6115bb565b60068054821515600160a81b0260ff60a81b199091161790556040517f381fb4c4aa72df83c60e7e567b9b6faf3fc2b05a6da932da9f071d63442c828f90610bab90831515815260200190565b610c136115bb565b60068054821515600160b01b0260ff60b01b199091161790556040517f06cf69227e5c2b5a71319bc3784f6a5355ea0ba2a69bc4c39d64413dfa5a012b90610bab90831515815260200190565b610c686115bb565b6103e8610c7460035490565b610c7f906003612729565b610c899190612740565b811015610ca957604051631fbaba3560e01b815260040160405180910390fd5b600a8190556040518181527fa2c87c3e7a3048198ae94e814f6a27e12a4e2a7476e33a0db4d97ffeaf63618690602001610bab565b610ce66115bb565b610cef5f611727565b565b610cf96115bb565b601e811115610d1b5760405163cd4e616760e01b815260040160405180910390fd5b600d80549082905560408051838152602081018390527f125b37650f21d088600cef1223439f6a8bd70800debfd486c503a8a2d19d4b0191015b60405180910390a15050565b606060058054610a49906126c9565b610d786115bb565b6001600160a01b0382165f9081526013602052604090205460ff1615610db1576040516304eb79b560e31b815260040160405180910390fd5b610dbb8282611780565b5050565b610dc76115bb565b5f5b82811015610b2d5760135f858584818110610de657610de6612701565b9050602002016020810190610dfb919061260d565b6001600160a01b0316815260208101919091526040015f205460ff16158015610e7c57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316848483818110610e5b57610e5b612701565b9050602002016020810190610e70919061260d565b6001600160a01b031614155b8015610eb7575030848483818110610e9657610e96612701565b9050602002016020810190610eab919061260d565b6001600160a01b031614155b8015610ef257505f848483818110610ed157610ed1612701565b9050602002016020810190610ee6919061260d565b6001600160a01b031614155b8015610f8f575060105f858584818110610f0e57610f0e612701565b9050602002016020810190610f23919061260d565b6001600160a01b0316815260208101919091526040015f205460ff16158015610f8f575060115f858584818110610f5c57610f5c612701565b9050602002016020810190610f71919061260d565b6001600160a01b0316815260208101919091526040015f205460ff16155b15610fc457610fc4848483818110610fa957610fa9612701565b9050602002016020810190610fbe919061260d565b836117db565b600101610dc9565b5f33610ad78185856116ca565b610fe16115bb565b5f5b82811015610b2d5761101b84848381811061100057611000612701565b9050602002016020810190611015919061260d565b83611836565b600101610fe3565b61102b6115bb565b5f61103560035490565b9050620f4240611046826001612729565b6110509190612740565b82101561107057604051631fbaba3560e01b815260040160405180910390fd5b6103e861107e826005612729565b6110889190612740565b8211156110a85760405163fd7850ad60e01b815260040160405180910390fd5b600b80549083905560408051848152602081018390527f190dc7c30bc62ef30e35c5f5512ad715a1bd03230f2d89c965249246c8d8ecca91015b60405180910390a1505050565b6110f76115bb565b5f5b82811015610b2d5761113184848381811061111657611116612701565b905060200201602081019061112b919061260d565b83611891565b6001016110f9565b336001600160a01b037f0000000000000000000000009bcc76af95bbbee8cb35a0eb6316de9c2b54f593161461118257604051636edaef2f60e11b815260040160405180910390fd5b335f6001600160a01b0383166112285750475f816111b357604051634870bf9160e01b815260040160405180910390fd5b6040516001600160a01b0384169083905f81818185875af1925050503d805f81146111f9576040519150601f19603f3d011682016040523d82523d5f602084013e6111fe565b606091505b5050809150508061122257604051633398652560e11b815260040160405180910390fd5b506112c4565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa15801561126a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061128e919061275f565b90505f81116112b05760405163df95788360e01b815260040160405180910390fd5b6112c46001600160a01b03841683836118ec565b604080516001600160a01b0385168152602081018390527f07c81a5e6d155913a9ed2ce53630058179c89fc94bb5de130620b0245c9f6a0b91016110e2565b61130b6115bb565b601e81111561132d5760405163cd4e616760e01b815260040160405180910390fd5b600e80549082905560408051838152602081018390527f8fd531ce6f3cbc5b8cc01a0413b630e3f11569780ee5cf8d0c78e03bca30bc259101610d55565b6113736115bb565b601e8111156113955760405163cd4e616760e01b815260040160405180910390fd5b600c80549082905560408051838152602081018390527f5fcc0eea159d45a3b8d481be746c9beed251431a542a5fed4484be37ab783e8d9101610d55565b6006546001600160a01b031633146113fe57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03811661142557604051639fabe1c160e01b815260040160405180910390fd5b600680546001600160a01b038381166001600160a01b03198316811790935560408051938452911660208301819052917fe20a721838fcbbb3840bd5d97dde1ffeb479fe73d75736fa6fdfc0f220aae0059101610d55565b6114856115bb565b6103e861149160035490565b61149c906002612729565b6114a69190612740565b8110156114c657604051631fbaba3560e01b815260040160405180910390fd5b60098190556040518181527f3c0ac525ebd597ae4e1201e687d8a7424b740a53b775b1527eb1c1936c1bd3b790602001610bab565b6115036115bb565b6001600160a01b03811661153157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61153a81611727565b50565b6115456115bb565b6103e861155160035490565b61155c906002612729565b6115669190612740565b81101561158657604051631fbaba3560e01b815260040160405180910390fd5b60088190556040518181527f16fd9174d80e7089ed0c10c47c8079476be2ec28b97c4b40846cffd8a7aa9e9f90602001610bab565b5f546001600160a01b03163314610cef5760405163118cdaa760e01b8152336004820152602401611528565b6115f4838383600161193e565b505050565b6001600160a01b0382165f81815260116020908152604091829020805460ff19168515159081179091558251938452908301527f4b89c347592b1d537e066cb4ed98d87696ae35164745d7e370e4add16941dc929101610d55565b6001600160a01b038381165f908152600260209081526040808320938616835292905220545f19811015610b2d57818110156116bc57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401611528565b610b2d84848484035f61193e565b6001600160a01b0383166116f357604051634b637e8f60e11b81525f6004820152602401611528565b6001600160a01b03821661171c5760405163ec442f0560e01b81525f6004820152602401611528565b6115f4838383611a10565b5f546001600160a01b0316801561175657611742815f611836565b61174c815f6115f9565b611756815f611891565b611761826001611836565b61176c8260016115f9565b611777826001611891565b610dbb82612117565b6001600160a01b0382165f81815260136020908152604091829020805460ff19168515159081179091558251938452908301527fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab9101610d55565b6001600160a01b0382165f818152600f6020908152604091829020805460ff19168515159081179091558251938452908301527ff7f8b40d08076851dfb7cfd6c584ae9a829a570f264abee45e0d7ca342ae8dc89101610d55565b6001600160a01b0382165f81815260106020908152604091829020805460ff19168515159081179091558251938452908301527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79101610d55565b6001600160a01b0382165f81815260126020908152604091829020805460ff19168515159081179091558251938452908301527f979d08086501b8ef0bd01775616b724de09e22d88f166d4cc8b9f286ceccaff59101610d55565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115f4908490612166565b6001600160a01b0384166119675760405163e602df0560e01b81525f6004820152602401611528565b6001600160a01b03831661199057604051634a1406b160e11b81525f6004820152602401611528565b6001600160a01b038085165f9081526002602090815260408083209387168352929052208290558015610b2d57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611a0291815260200190565b60405180910390a350505050565b6001600160a01b0383165f908152600f602052604090205433903290439060ff1615611a4f576040516339a9b03560e21b815260040160405180910390fd5b856001600160a01b0316836001600160a01b03161480611a8757506001600160a01b0383165f908152600f602052604090205460ff16155b611aa4576040516339a9b03560e21b815260040160405180910390fd5b856001600160a01b0316826001600160a01b03161480611ad55750826001600160a01b0316826001600160a01b0316145b80611af857506001600160a01b0382165f908152600f602052604090205460ff16155b611b15576040516339a9b03560e21b815260040160405180910390fd5b600654600160c01b900460ff1680611b4457506001600160a01b0386165f9081526011602052604090205460ff165b80611b6657506001600160a01b0385165f9081526011602052604090205460ff165b611b8357604051638dda39df60e01b815260040160405180910390fd5b6006545f90600160a01b900460ff168015611ba85750600654600160b81b900460ff16155b8015611bee57506001600160a01b0387165f9081526011602052604090205460ff1680611bec57506001600160a01b0386165f9081526011602052604090205460ff165b155b90508015611f13575f546001600160a01b03888116911614801590611c2057505f546001600160a01b03878116911614155b8015611c3457506001600160a01b03861615155b8015611c4b57506001600160a01b03861661dead14155b15611f13576006545f90600160a81b900460ff168015611c8357506001600160a01b0387165f9081526012602052604090205460ff16155b90508015611d97577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316876001600160a01b031614158015611cff57507f000000000000000000000000e85ac6c3fc840ef0e0c38ec4f1c0bd69f545d27a6001600160a01b0316876001600160a01b031614155b15611d9757611d0f600384612776565b6001600160a01b0385165f90815260146020526040902054108015611d545750611d3a600384612776565b6001600160a01b0388165f90815260146020526040902054105b611d7157604051630301a6ed60e61b815260040160405180910390fd5b6001600160a01b038085165f908152601460205260408082208690559189168152208390555b6001600160a01b0388165f9081526013602052604090205460ff168015611dd657506001600160a01b0387165f9081526011602052604090205460ff16155b15611e4757600854861115611dfe57604051632c676b8560e21b815260040160405180910390fd5b600a546001600160a01b0388165f90815260016020526040902054611e239088612789565b1115611e425760405163d867451160e01b815260040160405180910390fd5b611f11565b6001600160a01b0387165f9081526013602052604090205460ff168015611e8657506001600160a01b0388165f9081526011602052604090205460ff16155b15611eae57600954861115611e42576040516338aa438560e21b815260040160405180910390fd5b6001600160a01b0387165f9081526011602052604090205460ff16611f1157600a546001600160a01b0388165f90815260016020526040902054611ef29088612789565b1115611f115760405163d867451160e01b815260040160405180910390fd5b505b6006545f90600160b01b900460ff168015611f385750600654600160b81b900460ff16155b8015611f7e57506001600160a01b0388165f9081526010602052604090205460ff1680611f7c57506001600160a01b0387165f9081526010602052604090205460ff165b155b9050801561209f576001600160a01b0387165f9081526013602052604081205460ff168015611fae57505f600d54115b15611fd4576064600d5488611fc39190612729565b611fcd9190612740565b9050612080565b6001600160a01b0389165f9081526013602052604090205460ff168015611ffc57505f600c54115b15612011576064600c5488611fc39190612729565b6001600160a01b0388165f9081526013602052604090205460ff1615801561205157506001600160a01b0389165f9081526013602052604090205460ff16155b801561205e57505f600e54115b15612080576064600e54886120739190612729565b61207d9190612740565b90505b801561209d576120908188612776565b965061209d8930836121d2565b505b305f90815260016020526040902054600b548110158280156120d957506001600160a01b038a165f9081526013602052604090205460ff16155b80156120e25750805b1561210057600754851115612100576120fa826122f8565b60078590555b61210b8a8a8a6121d2565b50505050505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f5f60205f8451602086015f885af180612185576040513d5f823e3d81fd5b50505f513d9150811561219c5780600114156121a9565b6001600160a01b0384163b155b15610b2d57604051635274afe760e01b81526001600160a01b0385166004820152602401611528565b6001600160a01b0383166121fc578060035f8282546121f19190612789565b9091555061226c9050565b6001600160a01b0383165f908152600160205260409020548181101561224e5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401611528565b6001600160a01b0384165f9081526001602052604090209082900390555b6001600160a01b038216612288576003805482900390556122a6565b6001600160a01b0382165f9081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516122eb91815260200190565b60405180910390a3505050565b6006805460ff60b81b1916600160b81b1790556040805160028082526060820183525f9260208301908036833701905050905030815f8151811061233e5761233e612701565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123ba573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123de919061279c565b816001815181106123f1576123f1612701565b60200260200101906001600160a01b031690816001600160a01b0316815250505f600b5460146124219190612729565b90508083111561242f578092505b60065460405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81169263791ac9479261248a9288925f928992919091169042906004016127b7565b5f604051808303815f87803b1580156124a1575f5ffd5b505af11580156124b3573d5f5f3e3d5ffd5b50506006805460ff60b81b191690555050505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038116811461153a575f5ffd5b5f5f60408385031215612523575f5ffd5b823561252e816124fe565b946020939093013593505050565b8035801515811461254b575f5ffd5b919050565b5f5f5f60408486031215612562575f5ffd5b833567ffffffffffffffff811115612578575f5ffd5b8401601f81018613612588575f5ffd5b803567ffffffffffffffff81111561259e575f5ffd5b8660208260051b84010111156125b2575f5ffd5b6020918201945092506125c690850161253c565b90509250925092565b5f5f5f606084860312156125e1575f5ffd5b83356125ec816124fe565b925060208401356125fc816124fe565b929592945050506040919091013590565b5f6020828403121561261d575f5ffd5b8135612628816124fe565b9392505050565b5f6020828403121561263f575f5ffd5b6126288261253c565b5f60208284031215612658575f5ffd5b5035919050565b5f5f60408385031215612670575f5ffd5b823561267b816124fe565b91506126896020840161253c565b90509250929050565b5f5f604083850312156126a3575f5ffd5b82356126ae816124fe565b915060208301356126be816124fe565b809150509250929050565b600181811c908216806126dd57607f821691505b6020821081036126fb57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417610add57610add612715565b5f8261275a57634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121561276f575f5ffd5b5051919050565b81810381811115610add57610add612715565b80820180821115610add57610add612715565b5f602082840312156127ac575f5ffd5b8151612628816124fe565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b818110156128075783516001600160a01b03168352602093840193909201916001016127e0565b50506001600160a01b03959095166060840152505060800152939250505056fea26469706673582212201782339531ed3f5fc1ca2c3cdad5e4ea0b54e667e0617730b42dc6a71007153064736f6c634300081c0033
Verified Source Code Full Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: Yes (200 runs)
Ownable.sol 100 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
IERC1363.sol 86 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}
IERC165.sol 6 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";
IERC20.sol 6 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";
draft-IERC6093.sol 161 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
ERC20.sol 312 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
IERC20.sol 79 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
IERC20Metadata.sol 26 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
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);
}
SafeERC20.sol 198 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}
Context.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
IERC165.sol 25 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
AdRiseToken.sol 466 lines
/**
X: https://x.com/AdriseAI
Telegram: https://t.me/AdRiseAI
Website: https://adrise.ai/
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import "@openzeppelin/[email protected]/access/Ownable.sol";
import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol";
import "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IUniswapV2Factory.sol";
import "./interfaces/IUniswapV2Router.sol";
contract AdRiseToken is Ownable, ERC20 {
using SafeERC20 for IERC20;
IUniswapV2Router public immutable uniswapV2Router;
address public constant ZERO_ADDRESS = address(0);
address public constant DEAD_ADDRESS = address(0xdEaD);
address public immutable uniswapV2Pair;
address public immutable deployer;
address public operationsWallet;
bool public isLimitsEnabled;
bool public isCooldownEnabled;
bool public isTaxEnabled;
bool private inSwapBack;
bool public isLaunched;
uint256 private lastSwapBackExecutionBlock;
uint256 public constant MAX_FEE = 30;
uint256 public maxBuy;
uint256 public maxSell;
uint256 public maxWallet;
uint256 public swapTokensAtAmount;
uint256 public buyFee;
uint256 public sellFee;
uint256 public transferFee;
mapping(address => bool) public isBot;
mapping(address => bool) public isExcludedFromFees;
mapping(address => bool) public isExcludedFromLimits;
mapping(address => bool) public isExcludedFromCooldown;
mapping(address => bool) public automatedMarketMakerPairs;
mapping(address => uint256) private _holderLastTransferTimestamp;
event Launch();
event SetOperationsWallet(address newWallet, address oldWallet);
event SetLimitsEnabled(bool status);
event SetCooldownEnabled(bool status);
event SetTaxesEnabled(bool status);
event SetMaxBuy(uint256 amount);
event SetMaxSell(uint256 amount);
event SetMaxWallet(uint256 amount);
event SetSwapTokensAtAmount(uint256 newValue, uint256 oldValue);
event SetBuyFees(uint256 newValue, uint256 oldValue);
event SetSellFees(uint256 newValue, uint256 oldValue);
event SetTransferFees(uint256 newValue, uint256 oldValue);
event ExcludeFromFees(address account, bool isExcluded);
event ExcludeFromLimits(address account, bool isExcluded);
event ExcludeFromCooldown(address account, bool isExcluded);
event SetBots(address account, bool isExcluded);
event SetAutomatedMarketMakerPair(address pair, bool value);
event WithdrawStuckTokens(address token, uint256 amount);
error AlreadyLaunched();
error InvalidSender();
error AddressZero();
error AmountTooLow();
error AmountTooHigh();
error FeeTooHigh();
error AMMAlreadySet();
error NoNativeTokens();
error NoTokens();
error FailedToWithdrawNativeTokens();
error BotDetected();
error TransferDelay();
error MaxBuyAmountExceed();
error MaxSellAmountExceed();
error MaxWalletAmountExceed();
error NotLaunched();
modifier lockSwapBack() {
inSwapBack = true;
_;
inSwapBack = false;
}
constructor() Ownable(msg.sender) ERC20("AdRise", "RISE") {
address sender = msg.sender;
_mint(sender, 100_000_000 ether);
uint256 totalSupply = totalSupply();
deployer = msg.sender;
operationsWallet = 0x1C50743235d0D971630a9c220bd219B948359fb4;
address uniswapUniversalRouter = 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD;
address uniswapFeeCollector = 0x000000fee13a103A10D593b9AE06b3e05F2E7E1c;
maxBuy = (totalSupply * 12) / 1000;
maxSell = (totalSupply * 12) / 1000;
maxWallet = (totalSupply * 12) / 1000;
swapTokensAtAmount = (totalSupply * 5) / 10000;
isLimitsEnabled = true;
isCooldownEnabled = true;
isTaxEnabled = true;
buyFee = 25;
sellFee = 25;
transferFee = 50;
uniswapV2Router = IUniswapV2Router(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
_setAutomatedMarketMakerPair(uniswapV2Pair, true);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
_excludeFromFees(address(this), true);
_excludeFromFees(DEAD_ADDRESS, true);
_excludeFromFees(sender, true);
_excludeFromFees(operationsWallet, true);
_excludeFromFees(uniswapFeeCollector, true);
_excludeFromLimits(address(this), true);
_excludeFromLimits(DEAD_ADDRESS, true);
_excludeFromLimits(sender, true);
_excludeFromLimits(operationsWallet, true);
_excludeFromLimits(uniswapFeeCollector, true);
_excludeFromCooldown(uniswapUniversalRouter, true);
_excludeFromCooldown(uniswapFeeCollector, true);
}
receive() external payable {}
fallback() external payable {}
function launch() external onlyOwner {
require(!isLaunched, AlreadyLaunched());
isLaunched = true;
emit Launch();
}
function setOperationsWallet(address _operationsWallet) external {
require(msg.sender == operationsWallet, InvalidSender());
require(_operationsWallet != ZERO_ADDRESS, AddressZero());
address oldWallet = operationsWallet;
operationsWallet = _operationsWallet;
emit SetOperationsWallet(operationsWallet, oldWallet);
}
function setLimitsEnabled(bool value) external onlyOwner {
isLimitsEnabled = value;
emit SetLimitsEnabled(value);
}
function setCooldownEnabled(bool value) external onlyOwner {
isCooldownEnabled = value;
emit SetCooldownEnabled(value);
}
function setTaxesEnabled(bool value) external onlyOwner {
isTaxEnabled = value;
emit SetTaxesEnabled(value);
}
function setMaxBuy(uint256 amount) external onlyOwner {
require(amount >= ((totalSupply() * 2) / 1000), AmountTooLow());
maxBuy = amount;
emit SetMaxBuy(maxBuy);
}
function setMaxSell(uint256 amount) external onlyOwner {
require(amount >= ((totalSupply() * 2) / 1000), AmountTooLow());
maxSell = amount;
emit SetMaxSell(maxSell);
}
function setMaxWallet(uint256 amount) external onlyOwner {
require(amount >= ((totalSupply() * 3) / 1000), AmountTooLow());
maxWallet = amount;
emit SetMaxWallet(maxWallet);
}
function setSwapTokensAtAmount(uint256 amount) external onlyOwner {
uint256 _totalSupply = totalSupply();
require(amount >= (_totalSupply * 1) / 1000000, AmountTooLow());
require(amount <= (_totalSupply * 5) / 1000, AmountTooHigh());
uint256 oldValue = swapTokensAtAmount;
swapTokensAtAmount = amount;
emit SetSwapTokensAtAmount(amount, oldValue);
}
function setBuyFees(uint256 _buyFee) external onlyOwner {
require(_buyFee <= MAX_FEE, FeeTooHigh());
uint256 oldValue = buyFee;
buyFee = _buyFee;
emit SetBuyFees(_buyFee, oldValue);
}
function setSellFees(uint256 _sellFee) external onlyOwner {
require(_sellFee <= MAX_FEE, FeeTooHigh());
uint256 oldValue = sellFee;
sellFee = _sellFee;
emit SetSellFees(_sellFee, oldValue);
}
function setTransferFees(uint256 _transferFee) external onlyOwner {
require(_transferFee <= MAX_FEE, FeeTooHigh());
uint256 oldValue = transferFee;
transferFee = _transferFee;
emit SetTransferFees(_transferFee, oldValue);
}
function excludeFromFees(address[] calldata accounts, bool value)
external
onlyOwner
{
for (uint256 i = 0; i < accounts.length; i++) {
_excludeFromFees(accounts[i], value);
}
}
function excludeFromLimits(address[] calldata accounts, bool value)
external
onlyOwner
{
for (uint256 i = 0; i < accounts.length; i++) {
_excludeFromLimits(accounts[i], value);
}
}
function excludeFromCooldown(address[] calldata accounts, bool value)
external
onlyOwner
{
for (uint256 i = 0; i < accounts.length; i++) {
_excludeFromCooldown(accounts[i], value);
}
}
function setBots(address[] calldata accounts, bool value)
external
onlyOwner
{
for (uint256 i = 0; i < accounts.length; i++) {
if (
(!automatedMarketMakerPairs[accounts[i]]) &&
(accounts[i] != address(uniswapV2Router)) &&
(accounts[i] != address(this)) &&
(accounts[i] != ZERO_ADDRESS) &&
(!isExcludedFromFees[accounts[i]] &&
!isExcludedFromLimits[accounts[i]])
) _setBots(accounts[i], value);
}
}
function setAutomatedMarketMakerPair(address pair, bool value)
external
onlyOwner
{
require(!automatedMarketMakerPairs[pair], AMMAlreadySet());
_setAutomatedMarketMakerPair(pair, value);
}
function withdrawStuckTokens(address _token) external {
require(msg.sender == deployer, InvalidSender());
address sender = msg.sender;
uint256 amount;
if (_token == ZERO_ADDRESS) {
bool success;
amount = address(this).balance;
require(amount > 0, NoNativeTokens());
(success, ) = address(sender).call{value: amount}("");
require(success, FailedToWithdrawNativeTokens());
} else {
amount = IERC20(_token).balanceOf(address(this));
require(amount > 0, NoTokens());
IERC20(_token).safeTransfer(sender, amount);
}
emit WithdrawStuckTokens(_token, amount);
}
function _transferOwnership(address newOwner) internal virtual override {
address oldOwner = owner();
if (oldOwner != ZERO_ADDRESS) {
_excludeFromFees(oldOwner, false);
_excludeFromLimits(oldOwner, false);
_excludeFromCooldown(oldOwner, false);
}
_excludeFromFees(newOwner, true);
_excludeFromLimits(newOwner, true);
_excludeFromCooldown(newOwner, true);
super._transferOwnership(newOwner);
}
function _update(
address from,
address to,
uint256 amount
) internal virtual override {
address sender = msg.sender;
address origin = tx.origin;
uint256 blockNumber = block.number;
require(!isBot[from], BotDetected());
require(sender == from || !isBot[sender], BotDetected());
require(
origin == from || origin == sender || !isBot[origin],
BotDetected()
);
require(
isLaunched ||
isExcludedFromLimits[from] ||
isExcludedFromLimits[to],
NotLaunched()
);
bool limits = isLimitsEnabled &&
!inSwapBack &&
!(isExcludedFromLimits[from] || isExcludedFromLimits[to]);
if (limits) {
if (
from != owner() &&
to != owner() &&
to != ZERO_ADDRESS &&
to != DEAD_ADDRESS
) {
bool cooldown = isCooldownEnabled &&
!(isExcludedFromCooldown[to]);
if (cooldown) {
if (to != address(uniswapV2Router) && to != uniswapV2Pair) {
require(
_holderLastTransferTimestamp[origin] <
blockNumber - 3 &&
_holderLastTransferTimestamp[to] <
blockNumber - 3,
TransferDelay()
);
_holderLastTransferTimestamp[origin] = blockNumber;
_holderLastTransferTimestamp[to] = blockNumber;
}
}
if (
automatedMarketMakerPairs[from] && !isExcludedFromLimits[to]
) {
require(amount <= maxBuy, MaxBuyAmountExceed());
require(
amount + balanceOf(to) <= maxWallet,
MaxWalletAmountExceed()
);
} else if (
automatedMarketMakerPairs[to] && !isExcludedFromLimits[from]
) {
require(amount <= maxSell, MaxSellAmountExceed());
} else if (!isExcludedFromLimits[to]) {
require(
amount + balanceOf(to) <= maxWallet,
MaxWalletAmountExceed()
);
}
}
}
bool takeFee = isTaxEnabled &&
!inSwapBack &&
!(isExcludedFromFees[from] || isExcludedFromFees[to]);
if (takeFee) {
uint256 fees = 0;
if (automatedMarketMakerPairs[to] && sellFee > 0) {
fees = (amount * sellFee) / 100;
} else if (automatedMarketMakerPairs[from] && buyFee > 0) {
fees = (amount * buyFee) / 100;
} else if (
!automatedMarketMakerPairs[to] &&
!automatedMarketMakerPairs[from] &&
transferFee > 0
) {
fees = (amount * transferFee) / 100;
}
if (fees > 0) {
amount -= fees;
super._update(from, address(this), fees);
}
}
uint256 balance = balanceOf(address(this));
bool shouldSwap = balance >= swapTokensAtAmount;
if (takeFee && !automatedMarketMakerPairs[from] && shouldSwap) {
if (blockNumber > lastSwapBackExecutionBlock) {
_swapBack(balance);
lastSwapBackExecutionBlock = blockNumber;
}
}
super._update(from, to, amount);
}
function _swapBack(uint256 balance) internal virtual lockSwapBack {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
uint256 maxSwapAmount = swapTokensAtAmount * 20;
if (balance > maxSwapAmount) {
balance = maxSwapAmount;
}
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
balance,
0,
path,
operationsWallet,
block.timestamp
);
}
function _excludeFromFees(address account, bool value) internal virtual {
isExcludedFromFees[account] = value;
emit ExcludeFromFees(account, value);
}
function _excludeFromLimits(address account, bool value) internal virtual {
isExcludedFromLimits[account] = value;
emit ExcludeFromLimits(account, value);
}
function _excludeFromCooldown(address account, bool value)
internal
virtual
{
isExcludedFromCooldown[account] = value;
emit ExcludeFromCooldown(account, value);
}
function _setBots(address account, bool value) internal virtual {
isBot[account] = value;
emit SetBots(account, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value)
internal
virtual
{
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
}
IUniswapV2Factory.sol 9 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
IUniswapV2Router.sol 17 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IUniswapV2Router {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
Read Contract
DEAD_ADDRESS 0x4e6fd6c4 → address
MAX_FEE 0xbc063e1a → uint256
ZERO_ADDRESS 0x538ba4f9 → address
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
deployer 0xd5f39488 → address
isBot 0x3bbac579 → bool
isCooldownEnabled 0x6ca541e5 → bool
isExcludedFromCooldown 0x245d9848 → bool
isExcludedFromFees 0x4fbee193 → bool
isExcludedFromLimits 0x5cce86cd → bool
isLaunched 0x307aebc9 → bool
isLimitsEnabled 0xd5759ba3 → bool
isTaxEnabled 0xe6c1909b → bool
maxBuy 0x70db69d6 → uint256
maxSell 0xb8eb3546 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
operationsWallet 0xfd72e22a → address
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
transferFee 0xacb2ad6f → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 23 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
excludeFromCooldown 0xbbaf58ef
address[] accounts
bool value
excludeFromFees 0xad29ffde
address[] accounts
bool value
excludeFromLimits 0x106a5a8f
address[] accounts
bool value
launch 0x01339c21
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setBots 0x9c0db5f3
address[] accounts
bool value
setBuyFees 0xdcf7aef3
uint256 _buyFee
setCooldownEnabled 0x5932ead1
bool value
setLimitsEnabled 0x41aea9de
bool value
setMaxBuy 0xf53bc835
uint256 amount
setMaxSell 0xef998cf0
uint256 amount
setMaxWallet 0x5d0044ca
uint256 amount
setOperationsWallet 0xee5ecc89
address _operationsWallet
setSellFees 0x95927c25
uint256 _sellFee
setSwapTokensAtAmount 0xafa4f3b2
uint256 amount
setTaxesEnabled 0x59512ab0
bool value
setTransferFees 0xd26ed3e3
uint256 _transferFee
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawStuckTokens 0xcb963728
address _token
Recent Transactions
No transactions found for this address