Address Contract Partially Verified
Address
0xe16fD40A4B98e2eB6501497eDF79555964DDbE02
Balance
0 ETH
Nonce
1
Code Size
16922 bytes
Creator
0x0c9B4514...7Df2 at tx 0xd2c16547...0bcad1
Indexed Transactions
0
Contract Bytecode
16922 bytes
0x6080604052600436106101d05760003560e01c806377baae14116100f7578063a961217611610095578063c97b4cfb11610064578063c97b4cfb14610660578063dd62ed3e14610689578063f2fde38b146106c6578063f6f6d95d146106ef576101d7565b8063a9612176146105ce578063b9ca7baa146105f7578063bcc88aa714610620578063c9567bf914610649576101d7565b806392057a38116100d157806392057a38146104fc57806395d89b4114610529578063a457c2d714610554578063a9059cbb14610591576101d7565b806377baae141461047b5780637a942f8e146104a85780638da5cb5b146104d1576101d7565b8063313ce5671161016f578063715018a61161013e578063715018a6146103f55780637173163e1461040c57806373387d14146104235780637729629d14610450576101d7565b8063313ce5671461032757806339509351146103525780635dfb6bdb1461038f57806370a08231146103b8576101d7565b8063095ea7b3116101ab578063095ea7b31461025957806309cf7c701461029657806318160ddd146102bf57806323b872dd146102ea576101d7565b8062420c6f146101dc57806303761d751461020557806306fdde031461022e576101d7565b366101d757005b600080fd5b3480156101e857600080fd5b5061020360048036038101906101fe9190612ec2565b61072e565b005b34801561021157600080fd5b5061022c60048036038101906102279190612f15565b6108d7565b005b34801561023a57600080fd5b506102436109f9565b6040516102509190612fd2565b60405180910390f35b34801561026557600080fd5b50610280600480360381019061027b9190613052565b610a8b565b60405161028d91906130a1565b60405180910390f35b3480156102a257600080fd5b506102bd60048036038101906102b89190612f15565b610aa9565b005b3480156102cb57600080fd5b506102d4610bb6565b6040516102e191906130cb565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c91906130e6565b610bc0565b60405161031e91906130a1565b60405180910390f35b34801561033357600080fd5b5061033c610cb8565b6040516103499190613155565b60405180910390f35b34801561035e57600080fd5b5061037960048036038101906103749190613052565b610cc1565b60405161038691906130a1565b60405180910390f35b34801561039b57600080fd5b506103b660048036038101906103b19190613170565b610d6d565b005b3480156103c457600080fd5b506103df60048036038101906103da9190613170565b610ea9565b6040516103ec91906130cb565b60405180910390f35b34801561040157600080fd5b5061040a610ef1565b005b34801561041857600080fd5b50610421610f79565b005b34801561042f57600080fd5b50610438611047565b6040516104479392919061319d565b60405180910390f35b34801561045c57600080fd5b5061046561106d565b60405161047291906131e3565b60405180910390f35b34801561048757600080fd5b50610490611097565b60405161049f9392919061319d565b60405180910390f35b3480156104b457600080fd5b506104cf60048036038101906104ca9190612f15565b6110bd565b005b3480156104dd57600080fd5b506104e66111ca565b6040516104f391906131e3565b60405180910390f35b34801561050857600080fd5b506105116111f4565b604051610520939291906131fe565b60405180910390f35b34801561053557600080fd5b5061053e61120d565b60405161054b9190612fd2565b60405180910390f35b34801561056057600080fd5b5061057b60048036038101906105769190613052565b61129f565b60405161058891906130a1565b60405180910390f35b34801561059d57600080fd5b506105b860048036038101906105b39190613052565b61138a565b6040516105c591906130a1565b60405180910390f35b3480156105da57600080fd5b506105f560048036038101906105f09190612f15565b6113a8565b005b34801561060357600080fd5b5061061e60048036038101906106199190613235565b611474565b005b34801561062c57600080fd5b5061064760048036038101906106429190613235565b611599565b005b34801561065557600080fd5b5061065e6116be565b005b34801561066c57600080fd5b5061068760048036038101906106829190612f15565b61179f565b005b34801561069557600080fd5b506106b060048036038101906106ab9190613275565b6118c1565b6040516106bd91906130cb565b60405180910390f35b3480156106d257600080fd5b506106ed60048036038101906106e89190613170565b611948565b005b3480156106fb57600080fd5b5061071660048036038101906107119190613170565b611a3f565b604051610725939291906132b5565b60405180910390f35b610736611b38565b73ffffffffffffffffffffffffffffffffffffffff166107546111ca565b73ffffffffffffffffffffffffffffffffffffffff16146107aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a190613338565b60405180910390fd5b60018210156107ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e5906133ca565b60405180910390fd5b81811015610831576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108289061345c565b60405180910390fd5b82600560156101000a81548160ff02191690831515021790555061271082610857610bb6565b61086191906134ab565b61086b919061351c565b6006819055506127108161087d610bb6565b61088791906134ab565b610891919061351c565b6007819055507f52cd2cdb42ff0eeec9362d7ed5b04f64c8d022697128b5378fc51cea7e63c7798383836040516108ca9392919061319d565b60405180910390a1505050565b6108df611b38565b73ffffffffffffffffffffffffffffffffffffffff166108fd6111ca565b73ffffffffffffffffffffffffffffffffffffffff1614610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a90613338565b60405180910390fd5b6005811015610997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098e906135bf565b60405180910390fd5b6103e86109a2610bb6565b826109ad91906134ab565b6109b7919061351c565b600a819055507f12528a3c61e0f3b2d6fc707a9fc58b1af86e252cad0d7f4c154ebeabb162dace600a546040516109ee91906130cb565b60405180910390a150565b606060038054610a089061360e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a349061360e565b8015610a815780601f10610a5657610100808354040283529160200191610a81565b820191906000526020600020905b815481529060010190602001808311610a6457829003601f168201915b5050505050905090565b6000610a9f610a98611b38565b8484611b40565b6001905092915050565b610ab1611b38565b73ffffffffffffffffffffffffffffffffffffffff16610acf6111ca565b73ffffffffffffffffffffffffffffffffffffffff1614610b25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1c90613338565b60405180910390fd5b80600e819055506064600e541115610b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b69906136b1565b60405180910390fd5b7fcb5f36df892836a2eaedc349de29a7581176990398ee185d16eaa8f6c1abd8f1600e54600e54600e54604051610bab939291906131fe565b60405180910390a150565b6000600254905090565b6000610bcd848484611d09565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610c18611b38565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8f90613743565b60405180910390fd5b610cac85610ca4611b38565b858403611b40565b60019150509392505050565b60006009905090565b6000610d63610cce611b38565b848460016000610cdc611b38565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d5e9190613763565b611b40565b6001905092915050565b610d75611b38565b73ffffffffffffffffffffffffffffffffffffffff16610d936111ca565b73ffffffffffffffffffffffffffffffffffffffff1614610de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de090613338565b60405180910390fd5b600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8616c7a330e3cf61290821331585511f1e2778171e2b005fb5ec60cfe874dc6760405160405180910390a380600c60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ef9611b38565b73ffffffffffffffffffffffffffffffffffffffff16610f176111ca565b73ffffffffffffffffffffffffffffffffffffffff1614610f6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6490613338565b60405180910390fd5b610f7760006127a3565b565b610f81611b38565b73ffffffffffffffffffffffffffffffffffffffff16610f9f6111ca565b73ffffffffffffffffffffffffffffffffffffffff1614610ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fec90613338565b60405180910390fd5b6000600960006101000a81548160ff0219169083151502179055506000600f81905550427ff4eaa75eae08ae80c3daf791438dac1cff2cfd3b0bad2304ec7bbb067e50261660405160405180910390a2565b6000806000600960009054906101000a900460ff169250600a549150600b549050909192565b6000600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000806000600560159054906101000a900460ff16925060065491506007549050909192565b6110c5611b38565b73ffffffffffffffffffffffffffffffffffffffff166110e36111ca565b73ffffffffffffffffffffffffffffffffffffffff1614611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113090613338565b60405180910390fd5b80600d819055506064600d541115611186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117d90613809565b60405180910390fd5b7f38513c502b0ab4834ac1df9502b76f75dcf7092469782cfd0db7fe664388e25e600d54600d54600d546040516111bf939291906131fe565b60405180910390a150565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000806000600d549250600e549150600f549050909192565b60606004805461121c9061360e565b80601f01602080910402602001604051908101604052809291908181526020018280546112489061360e565b80156112955780601f1061126a57610100808354040283529160200191611295565b820191906000526020600020905b81548152906001019060200180831161127857829003601f168201915b5050505050905090565b600080600160006112ae611b38565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561136b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113629061389b565b60405180910390fd5b61137f611376611b38565b85858403611b40565b600191505092915050565b600061139e611397611b38565b8484611d09565b6001905092915050565b6113b0611b38565b73ffffffffffffffffffffffffffffffffffffffff166113ce6111ca565b73ffffffffffffffffffffffffffffffffffffffff1614611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b90613338565b60405180910390fd5b80600f819055506064600f541115611471576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114689061392d565b60405180910390fd5b50565b61147c611b38565b73ffffffffffffffffffffffffffffffffffffffff1661149a6111ca565b73ffffffffffffffffffffffffffffffffffffffff16146114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790613338565b60405180910390fd5b80601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f3844f59dd909a5abfe5fa6d8f12dfa6424a8b2b595372782bc0ff76cf27fc5278260405161158d91906130a1565b60405180910390a25050565b6115a1611b38565b73ffffffffffffffffffffffffffffffffffffffff166115bf6111ca565b73ffffffffffffffffffffffffffffffffffffffff1614611615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160c90613338565b60405180910390fd5b80601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f06e9674d1df780f28d6fccac66198e06ae257bd747ef07af7ecb217f7166a2ed826040516116b291906130a1565b60405180910390a25050565b6116c6611b38565b73ffffffffffffffffffffffffffffffffffffffff166116e46111ca565b73ffffffffffffffffffffffffffffffffffffffff161461173a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173190613338565b60405180910390fd5b6001600c60006101000a81548160ff0219169083151502179055506001600560156101000a81548160ff021916908315150217905550427fb3da2db3dfc3778f99852546c6e9ab39ec253f9de7b0847afec61bd27878e92360405160405180910390a2565b6117a7611b38565b73ffffffffffffffffffffffffffffffffffffffff166117c56111ca565b73ffffffffffffffffffffffffffffffffffffffff161461181b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181290613338565b60405180910390fd5b600281101561185f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611856906139bf565b60405180910390fd5b6103e861186a610bb6565b8261187591906134ab565b61187f919061351c565b600b819055507fff3dd5e80294197918c284bbfc3dadd97d0b40ce92106110946329088f80068a600b546040516118b691906130cb565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611950611b38565b73ffffffffffffffffffffffffffffffffffffffff1661196e6111ca565b73ffffffffffffffffffffffffffffffffffffffff16146119c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bb90613338565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2a90613a51565b60405180910390fd5b611a3c816127a3565b50565b6000806000601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169250601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169150601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690509193909250565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611baf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba690613ae3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1590613b75565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611cfc91906130cb565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6f90613c07565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde90613c99565b60405180910390fd5b60008103611e0057611dfb83836000612869565b61279e565b600960009054906101000a900460ff16156122fb57611e1d6111ca565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611e8b5750611e5b6111ca565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611ec45750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611efe575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611f175750600560149054906101000a900460ff16155b156122fa57600c60009054906101000a900460ff1661201157601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611fd15750601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612010576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200790613d2b565b60405180910390fd5b5b601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156120b45750601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561215b57600b548111156120fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f590613dbd565b60405180910390fd5b600a5461210a83610ea9565b826121159190613763565b1115612156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214d90613e29565b60405180910390fd5b6122f9565b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156121fe5750601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561224d57600b54811115612248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223f90613ebb565b60405180910390fd5b6122f8565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166122f757600a546122aa83610ea9565b826122b59190613763565b11156122f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ed90613e29565b60405180910390fd5b5b5b5b5b5b600061230630610ea9565b90506000600654821015905080801561232b5750600560159054906101000a900460ff165b80156123445750600560149054906101000a900460ff16155b801561239a5750601260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156123f05750601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156124465750601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b801561245457504260085414155b156124a0576001600560146101000a81548160ff02191690831515021790555061247d83612ae8565b426008819055506000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806125565750601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561256057600090505b6000811561278e57601260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156125c357506000600e54115b156125f7576125f060646125e2600e5488612bdc90919063ffffffff16565b612bf290919063ffffffff16565b905061276a565b601260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561265257506000600d54115b156126865761267f6064612671600d5488612bdc90919063ffffffff16565b612bf290919063ffffffff16565b9050612769565b6000600f541180156126e25750601260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156127385750601260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612768576127656064612757600f5488612bdc90919063ffffffff16565b612bf290919063ffffffff16565b90505b5b5b600081111561277f5761277e873083612869565b5b808561278b9190613edb565b94505b612799878787612869565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cf90613c07565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612947576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293e90613c99565b60405180910390fd5b612952838383612c08565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cf90613f81565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a6b9190613763565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612acf91906130cb565b60405180910390a3612ae2848484612c0d565b50505050565b6000612af330610ea9565b90506000808203612b05575050612bd9565b600754821115612b155760075491505b600f83612b2291906134ab565b821115612b3957600f83612b3691906134ab565b91505b6000829050612b4781612c12565b600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051612b8d90613fd2565b60006040518083038185875af1925050503d8060008114612bca576040519150601f19603f3d011682016040523d82523d6000602084013e612bcf565b606091505b5050809250505050505b50565b60008183612bea91906134ab565b905092915050565b60008183612c00919061351c565b905092915050565b505050565b505050565b6000600267ffffffffffffffff811115612c2f57612c2e613fe7565b5b604051908082528060200260200182016040528015612c5d5781602001602082028036833780820191505090505b5090503081600081518110612c7557612c74614016565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d3e919061405a565b81600181518110612d5257612d51614016565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612db7307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611b40565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612e1995949392919061418a565b600060405180830381600087803b158015612e3357600080fd5b505af1158015612e47573d6000803e3d6000fd5b505050505050565b600080fd5b60008115159050919050565b612e6981612e54565b8114612e7457600080fd5b50565b600081359050612e8681612e60565b92915050565b6000819050919050565b612e9f81612e8c565b8114612eaa57600080fd5b50565b600081359050612ebc81612e96565b92915050565b600080600060608486031215612edb57612eda612e4f565b5b6000612ee986828701612e77565b9350506020612efa86828701612ead565b9250506040612f0b86828701612ead565b9150509250925092565b600060208284031215612f2b57612f2a612e4f565b5b6000612f3984828501612ead565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f7c578082015181840152602081019050612f61565b60008484015250505050565b6000601f19601f8301169050919050565b6000612fa482612f42565b612fae8185612f4d565b9350612fbe818560208601612f5e565b612fc781612f88565b840191505092915050565b60006020820190508181036000830152612fec8184612f99565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061301f82612ff4565b9050919050565b61302f81613014565b811461303a57600080fd5b50565b60008135905061304c81613026565b92915050565b6000806040838503121561306957613068612e4f565b5b60006130778582860161303d565b925050602061308885828601612ead565b9150509250929050565b61309b81612e54565b82525050565b60006020820190506130b66000830184613092565b92915050565b6130c581612e8c565b82525050565b60006020820190506130e060008301846130bc565b92915050565b6000806000606084860312156130ff576130fe612e4f565b5b600061310d8682870161303d565b935050602061311e8682870161303d565b925050604061312f86828701612ead565b9150509250925092565b600060ff82169050919050565b61314f81613139565b82525050565b600060208201905061316a6000830184613146565b92915050565b60006020828403121561318657613185612e4f565b5b60006131948482850161303d565b91505092915050565b60006060820190506131b26000830186613092565b6131bf60208301856130bc565b6131cc60408301846130bc565b949350505050565b6131dd81613014565b82525050565b60006020820190506131f860008301846131d4565b92915050565b600060608201905061321360008301866130bc565b61322060208301856130bc565b61322d60408301846130bc565b949350505050565b6000806040838503121561324c5761324b612e4f565b5b600061325a8582860161303d565b925050602061326b85828601612e77565b9150509250929050565b6000806040838503121561328c5761328b612e4f565b5b600061329a8582860161303d565b92505060206132ab8582860161303d565b9150509250929050565b60006060820190506132ca6000830186613092565b6132d76020830185613092565b6132e46040830184613092565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613322602083612f4d565b915061332d826132ec565b602082019050919050565b6000602082019050818103600083015261335181613315565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e30312520746f74616c20737570706c792e000000000000000000000000602082015250565b60006133b4603483612f4d565b91506133bf82613358565b604082019050919050565b600060208201905081810360008301526133e3816133a7565b9050919050565b7f6d6178696d756d20616d6f756e742063616e742062652068696768657220746860008201527f616e206d696e696d756d00000000000000000000000000000000000000000000602082015250565b6000613446602a83612f4d565b9150613451826133ea565b604082019050919050565b6000602082019050818103600083015261347581613439565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134b682612e8c565b91506134c183612e8c565b92508282026134cf81612e8c565b915082820484148315176134e6576134e561347c565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061352782612e8c565b915061353283612e8c565b925082613542576135416134ed565b5b828204905092915050565b7f43616e6e6f7420736574206d617857616c6c65744c696d6974206c6f7765722060008201527f7468616e20302e35250000000000000000000000000000000000000000000000602082015250565b60006135a9602983612f4d565b91506135b48261354d565b604082019050919050565b600060208201905081810360008301526135d88161359c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061362657607f821691505b602082108103613639576136386135df565b5b50919050565b7f546f74616c2073656c6c206665652063616e6e6f74206265206869676865722060008201527f7468616e20313030250000000000000000000000000000000000000000000000602082015250565b600061369b602983612f4d565b91506136a68261363f565b604082019050919050565b600060208201905081810360008301526136ca8161368e565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b600061372d602883612f4d565b9150613738826136d1565b604082019050919050565b6000602082019050818103600083015261375c81613720565b9050919050565b600061376e82612e8c565b915061377983612e8c565b92508282019050808211156137915761379061347c565b5b92915050565b7f546f74616c20627579206665652063616e6e6f7420626520686967686572207460008201527f68616e2031303025000000000000000000000000000000000000000000000000602082015250565b60006137f3602883612f4d565b91506137fe82613797565b604082019050919050565b60006020820190508181036000830152613822816137e6565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613885602583612f4d565b915061389082613829565b604082019050919050565b600060208201905081810360008301526138b481613878565b9050919050565b7f546f74616c207472616e73666572206665652063616e6e6f742062652068696760008201527f686572207468616e203130302500000000000000000000000000000000000000602082015250565b6000613917602d83612f4d565b9150613922826138bb565b604082019050919050565b600060208201905081810360008301526139468161390a565b9050919050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e4c696d6974206c60008201527f6f776572207468616e20302e3225000000000000000000000000000000000000602082015250565b60006139a9602e83612f4d565b91506139b48261394d565b604082019050919050565b600060208201905081810360008301526139d88161399c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613a3b602683612f4d565b9150613a46826139df565b604082019050919050565b60006020820190508181036000830152613a6a81613a2e565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613acd602483612f4d565b9150613ad882613a71565b604082019050919050565b60006020820190508181036000830152613afc81613ac0565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b5f602283612f4d565b9150613b6a82613b03565b604082019050919050565b60006020820190508181036000830152613b8e81613b52565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613bf1602583612f4d565b9150613bfc82613b95565b604082019050919050565b60006020820190508181036000830152613c2081613be4565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613c83602383612f4d565b9150613c8e82613c27565b604082019050919050565b60006020820190508181036000830152613cb281613c76565b9050919050565b7f5f7472616e736665723a3a2054726164696e67206973206e6f7420616374697660008201527f652e000000000000000000000000000000000000000000000000000000000000602082015250565b6000613d15602283612f4d565b9150613d2082613cb9565b604082019050919050565b60006020820190508181036000830152613d4481613d08565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e4c696d69742e000000000000000000000000602082015250565b6000613da7603483612f4d565b9150613db282613d4b565b604082019050919050565b60006020820190508181036000830152613dd681613d9a565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b6000613e13601383612f4d565b9150613e1e82613ddd565b602082019050919050565b60006020820190508181036000830152613e4281613e06565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e4c696d69742e0000000000000000000000602082015250565b6000613ea5603583612f4d565b9150613eb082613e49565b604082019050919050565b60006020820190508181036000830152613ed481613e98565b9050919050565b6000613ee682612e8c565b9150613ef183612e8c565b9250828203905081811115613f0957613f0861347c565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613f6b602683612f4d565b9150613f7682613f0f565b604082019050919050565b60006020820190508181036000830152613f9a81613f5e565b9050919050565b600081905092915050565b50565b6000613fbc600083613fa1565b9150613fc782613fac565b600082019050919050565b6000613fdd82613faf565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061405481613026565b92915050565b6000602082840312156140705761406f612e4f565b5b600061407e84828501614045565b91505092915050565b6000819050919050565b6000819050919050565b60006140b66140b16140ac84614087565b614091565b612e8c565b9050919050565b6140c68161409b565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61410181613014565b82525050565b600061411383836140f8565b60208301905092915050565b6000602082019050919050565b6000614137826140cc565b61414181856140d7565b935061414c836140e8565b8060005b8381101561417d5781516141648882614107565b975061416f8361411f565b925050600181019050614150565b5085935050505092915050565b600060a08201905061419f60008301886130bc565b6141ac60208301876140bd565b81810360408301526141be818661412c565b90506141cd60608301856131d4565b6141da60808301846130bc565b969550505050505056fea2646970667358221220a90ab4a038ca1644f77d6025fa4e63adffad824c5ca9fc0064527d2e9312f5af64736f6c63430008130033
Verified Source Code Partial Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: No
WOM.sol 1388 lines
/*
* SPDX-License-Identifier: MIT
* https://t.me/WorldOfMemes_ETH
* https://x.com/WOMEME_OFFICIAL
*/
pragma solidity 0.8.19;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(
address owner,
address spender
) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(
address account
) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(
address owner,
address spender
) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(
address spender,
uint256 amount
) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the upd allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(
currentAllowance >= amount,
"ERC20: transfer amount exceeds allowance"
);
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the upd allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(
address spender,
uint256 addedValue
) public virtual returns (bool) {
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender] + addedValue
);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the upd allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(
address spender,
uint256 subtractedValue
) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev 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 {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IDexFactory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
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(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB, uint256 liquidity);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract WOM is ERC20, Ownable {
using SafeMath for uint256;
IDexRouter private immutable uniRouter;
address private immutable uniPair;
// Swapback
bool private onSwapback;
bool private contractSBEnabled = false;
uint256 private triggerSB;
uint256 private limitSB;
uint256 private lastSB;
//Anti-whale
bool private limitsEnabled = true;
uint256 private maxWalletLimit;
uint256 private maxTransactionLimit;
bool private tradingOpen = false;
// Fees
address private projectWallet;
uint256 private buyingFee;
uint256 private sellingFee;
uint256 private transferFee;
/******************/
// exclude from fees and max transaction amount
mapping(address => bool) private exemptFromFees;
mapping(address => bool) private exemptFromLimits;
mapping(address => bool) private DEXPair;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
event ExemptFromFee(address indexed account, bool isExcluded);
event ExemptFromLimit(address indexed account, bool isExcluded);
event SetPairLPool(address indexed pair, bool indexed value);
event TradingEnabled(uint256 indexed timestamp);
event LimitsRemoved(uint256 indexed timestamp);
event SwapbackSettingsUpdated(
bool enabled,
uint256 triggerSB,
uint256 limitSB
);
event MaxTxUpdated(uint256 maxTransactionLimit);
event MaxWalletUpdated(uint256 maxWalletLimit);
event MarketingWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event BuyFeeUpdated(
uint256 buyingFee,
uint256 buyMarketingTax,
uint256 buyProjectTax
);
event SellFeeUpdated(
uint256 sellingFee,
uint256 sellMarketingTax,
uint256 sellProjectTax
);
constructor() ERC20("World Of Memes", "WOM") {
IDexRouter _uniRouter = IDexRouter(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
changeLimitExemptAddress(address(_uniRouter), true);
uniRouter = _uniRouter;
uniPair = IDexFactory(_uniRouter.factory()).createPair(
address(this),
_uniRouter.WETH()
);
changeLimitExemptAddress(address(uniPair), true);
_toggleDexPair(address(uniPair), true);
uint256 _totalSupply = 1_000_000_000_000_000 * 10 ** decimals();
lastSB = block.timestamp;
maxTransactionLimit = (_totalSupply * 10) / 1000;
maxWalletLimit = (_totalSupply * 10) / 1000;
triggerSB = (_totalSupply * 1) / 1000;
limitSB = (_totalSupply * 2) / 100;
buyingFee = 30;
sellingFee = 30;
transferFee = 0;
projectWallet = address(0xe14e22930C3C52CA8f3Fd7932Dc0e856522489D2);
// exclude from paying fees or having max transaction amount
changeAddressFeeExempt(msg.sender, true);
changeAddressFeeExempt(address(this), true);
changeAddressFeeExempt(address(0xdead), true);
changeAddressFeeExempt(projectWallet, true);
changeLimitExemptAddress(msg.sender, true);
changeLimitExemptAddress(address(this), true);
changeLimitExemptAddress(address(0xdead), true);
changeLimitExemptAddress(projectWallet, true);
transferOwnership(msg.sender);
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(msg.sender, _totalSupply);
}
receive() external payable {}
function decimals() public view virtual override returns (uint8) {
return 9;
}
/**
* @notice Opens public trading for the token
* @dev onlyOwner.
*/
function openTrading() external onlyOwner {
tradingOpen = true;
contractSBEnabled = true;
emit TradingEnabled(block.timestamp);
}
/**
* @notice Removes the max wallet and max transaction limits
* @dev onlyOwner.
* Emits an {LimitsRemoved} event
*/
function removeLimitsNow() external onlyOwner {
limitsEnabled = false;
transferFee = 0;
emit LimitsRemoved(block.timestamp);
}
/**
* @notice sets if swapback is enabled and sets the minimum and maximum amounts
* @dev onlyOwner.
* Emits an {SwapbackSettingsUpdated} event
* @param _caSBcEnabled If swapback is enabled
* @param _caSBcTrigger The minimum amount of tokens the contract must have before swapping tokens for ETH. Base 10000, so 1% = 100.
* @param _caSBcLimit The maximum amount of tokens the contract can swap for ETH. Base 10000, so 1% = 100.
*/
function changeValuesSwapback(
bool _caSBcEnabled,
uint256 _caSBcTrigger,
uint256 _caSBcLimit
) external onlyOwner {
require(
_caSBcTrigger >= 1,
"Swap amount cannot be lower than 0.01% total supply."
);
require(
_caSBcLimit >= _caSBcTrigger,
"maximum amount cant be higher than minimum"
);
contractSBEnabled = _caSBcEnabled;
triggerSB = (totalSupply() * _caSBcTrigger) / 10000;
limitSB = (totalSupply() * _caSBcLimit) / 10000;
emit SwapbackSettingsUpdated(_caSBcEnabled, _caSBcTrigger, _caSBcLimit);
}
/**
* @notice Changes the maximum amount of tokens that can be bought or sold in a single transaction
* @dev onlyOwner.
* Emits an {MaxTxUpdated} event
* @param _maxTransactionLimit Base 1000, so 1% = 10
*/
function maxLimitsChangeTxLimit(uint256 _maxTransactionLimit) external onlyOwner {
require(_maxTransactionLimit >= 2, "Cannot set maxTransactionLimit lower than 0.2%");
maxTransactionLimit = (_maxTransactionLimit * totalSupply()) / 1000;
emit MaxTxUpdated(maxTransactionLimit);
}
/**
* @notice Changes the maximum amount of tokens a wallet can hold
* @dev onlyOwner.
* Emits an {MaxWalletUpdated} event
* @param _maxWalletLimit Base 1000, so 1% = 10
*/
function maxLimitsChangeWalletLimit(
uint256 _maxWalletLimit
) external onlyOwner {
require(_maxWalletLimit >= 5, "Cannot set maxWalletLimit lower than 0.5%");
maxWalletLimit = (_maxWalletLimit * totalSupply()) / 1000;
emit MaxWalletUpdated(maxWalletLimit);
}
/**
* @notice Sets if a wallet is excluded from the max wallet and tx limits
* @dev onlyOwner.
* Emits an {ExemptFromLimit} event
* @param _add The wallet to update
* @param _excluded If the wallet is excluded or not
*/
function changeLimitExemptAddress(
address _add,
bool _excluded
) public onlyOwner {
exemptFromLimits[_add] = _excluded;
emit ExemptFromLimit(_add, _excluded);
}
/**
* @notice Sets the fees for buys
* @dev onlyOwner.
* Emits a {BuyFeeUpdated} event
* All fees added up must be less than 100
* @param _value The fee for the marketing wallet
*/
function changeFeeBuy(uint256 _value) external onlyOwner {
buyingFee = _value;
require(buyingFee <= 100, "Total buy fee cannot be higher than 100%");
emit BuyFeeUpdated(buyingFee, buyingFee, buyingFee);
}
/**
* @notice Sets the fees for sells
* @dev onlyOwner.
* Emits a {SellFeeUpdated} event
* All fees added up must be less than 100
* @param _value The fee for the marketing wallet
*/
function changeFeeSell(uint256 _value) external onlyOwner {
sellingFee = _value;
require(
sellingFee <= 100,
"Total sell fee cannot be higher than 100%"
);
emit SellFeeUpdated(sellingFee, sellingFee, sellingFee);
}
function changeFeeTransfer(uint256 _value) external onlyOwner {
transferFee = _value;
require(
transferFee <= 100,
"Total transfer fee cannot be higher than 100%"
);
}
/**
* @notice Sets if an address is excluded from fees
* @dev onlyOwner.
* Emits an {ExemptFromFee} event
* @param _add The wallet to update
* @param _excluded If the wallet is excluded or not
*/
function changeAddressFeeExempt(
address _add,
bool _excluded
) public onlyOwner {
exemptFromFees[_add] = _excluded;
emit ExemptFromFee(_add, _excluded);
}
function _toggleDexPair(address pair, bool value) private {
DEXPair[pair] = value;
emit SetPairLPool(pair, value);
}
/**
* @notice Sets the marketing wallet
* @dev onlyOwner.
* Emits an {MarketingWalletUpdated} event
* @param _marketing The new marketing wallet
*/
function changeMarketingReceiver(address _marketing) external onlyOwner {
emit MarketingWalletUpdated(_marketing, projectWallet);
projectWallet = _marketing;
}
/**
* @notice Information about the swapback settings
* @return _contractSBEnabled if swapback is enabled
* @return _caSBcackValueMin the minimum amount of tokens in the contract balance to trigger swapback
* @return _caSBcackValueMax the maximum amount of tokens in the contract balance to trigger swapback
*/
function readSwapbackInfo()
external
view
returns (
bool _contractSBEnabled,
uint256 _caSBcackValueMin,
uint256 _caSBcackValueMax
)
{
_contractSBEnabled = contractSBEnabled;
_caSBcackValueMin = triggerSB;
_caSBcackValueMax = limitSB;
}
/**
* @notice Information about the anti whale parameters
* @return _limitsEnabled if the wallet limits are in effect
* @return _maxWalletLimit The maximum amount of tokens that can be held by a wallet
* @return _maxTransactionLimit The maximum amount of tokens that can be bought or sold in a single transaction
*/
function readLimitInfo()
external
view
returns (bool _limitsEnabled, uint256 _maxWalletLimit, uint256 _maxTransactionLimit)
{
_limitsEnabled = limitsEnabled;
_maxWalletLimit = maxWalletLimit;
_maxTransactionLimit = maxTransactionLimit;
}
/**
* @notice The wallets that receive the collected fees
* @return _projectWallet The wallet that receives the marketing fees
*/
function readFeeReceiverAddress()
external
view
returns (address _projectWallet)
{
return (projectWallet);
}
/**
* @notice Fees for buys, sells, and transfers
* @return _buyingFee The total fee for buys
* @return _sellingFee The total fee for sells
* @return _transferFee The total fee for transfers
*/
function readFeesInfo()
external
view
returns (
uint256 _buyingFee,
uint256 _sellingFee,
uint256 _transferFee
)
{
_buyingFee = buyingFee;
_sellingFee = sellingFee;
_transferFee = transferFee;
}
/**
* @notice If the wallet is excluded from fees and max transaction amount and if the wallet is a automated market maker pair
* @param _target The wallet to check
* @return _exemptFromFees If the wallet is excluded from fees
* @return _exemptFromLimits If the wallet is excluded from max transaction amount
* @return _DEXPair If the wallet is a automated market maker pair
*/
function readAddressInfo(
address _target
)
external
view
returns (
bool _exemptFromFees,
bool _exemptFromLimits,
bool _DEXPair
)
{
_exemptFromFees = exemptFromFees[_target];
_exemptFromLimits = exemptFromLimits[_target];
_DEXPair = DEXPair[_target];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (limitsEnabled) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!onSwapback
) {
if (!tradingOpen) {
require(
exemptFromFees[from] || exemptFromFees[to],
"_transfer:: Trading is not active."
);
}
//when buy
if (
DEXPair[from] && !exemptFromLimits[to]
) {
require(
amount <= maxTransactionLimit,
"Buy transfer amount exceeds the maxTransactionLimit."
);
require(
amount + balanceOf(to) <= maxWalletLimit,
"Max wallet exceeded"
);
}
//when sell
else if (
DEXPair[to] && !exemptFromLimits[from]
) {
require(
amount <= maxTransactionLimit,
"Sell transfer amount exceeds the maxTransactionLimit."
);
} else if (!exemptFromLimits[to]) {
require(
amount + balanceOf(to) <= maxWalletLimit,
"Max wallet exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= triggerSB;
if (
canSwap &&
contractSBEnabled &&
!onSwapback &&
!DEXPair[from] &&
!exemptFromFees[from] &&
!exemptFromFees[to] &&
lastSB != block.timestamp
) {
onSwapback = true;
swapBack(amount);
lastSB = block.timestamp;
onSwapback = false;
}
bool takeFee = !onSwapback;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (exemptFromFees[from] || exemptFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
// on sell
if (DEXPair[to] && sellingFee > 0) {
fees = amount.mul(sellingFee).div(100);
}
// on buy
else if (DEXPair[from] && buyingFee > 0) {
fees = amount.mul(buyingFee).div(100);
}
// on transfers
else if (
transferFee > 0 &&
!DEXPair[from] &&
!DEXPair[to]
) {
fees = amount.mul(transferFee).div(100);
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniRouter.WETH();
_approve(address(this), address(uniRouter), tokenAmount);
// make the swap
uniRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function swapBack(uint256 amount) private {
uint256 contractBalance = balanceOf(address(this));
bool success;
if (contractBalance == 0) {
return;
}
if (contractBalance > limitSB) {
contractBalance = limitSB;
}
if (contractBalance > amount * 15) {
contractBalance = amount * 15;
}
uint256 amountToSwapForETH = contractBalance;
swapTokensForEth(amountToSwapForETH);
(success, ) = address(projectWallet).call{
value: address(this).balance
}("");
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
readAddressInfo 0xf6f6d95d → bool, bool, bool
readFeeReceiverAddress 0x7729629d → address
readFeesInfo 0x92057a38 → uint256, uint256, uint256
readLimitInfo 0x73387d14 → bool, uint256, uint256
readSwapbackInfo 0x77baae14 → bool, uint256, uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 18 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeAddressFeeExempt 0xbcc88aa7
address _add
bool _excluded
changeFeeBuy 0x7a942f8e
uint256 _value
changeFeeSell 0x09cf7c70
uint256 _value
changeFeeTransfer 0xa9612176
uint256 _value
changeLimitExemptAddress 0xb9ca7baa
address _add
bool _excluded
changeMarketingReceiver 0x5dfb6bdb
address _marketing
changeValuesSwapback 0x00420c6f
bool _caSBcEnabled
uint256 _caSBcTrigger
uint256 _caSBcLimit
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
maxLimitsChangeTxLimit 0xc97b4cfb
uint256 _maxTransactionLimit
maxLimitsChangeWalletLimit 0x03761d75
uint256 _maxWalletLimit
openTrading 0xc9567bf9
No parameters
removeLimitsNow 0x7173163e
No parameters
renounceOwnership 0x715018a6
No parameters
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