Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xd4dfAC90F7c3ec2f2470E4908D196489f7F8696C
Balance 0 ETH
Nonce 1
Code Size 13356 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

13356 bytes
0x6080604052600436106102085760003560e01c80636fb1896c1161011857806397f92e95116100a0578063c02466681161006f578063c024666814610740578063d21079e614610769578063dd62ed3e14610792578063e0bf7fd1146107cf578063f2fde38b1461080c5761020f565b806397f92e9514610674578063a457c2d71461069d578063a9059cbb146106da578063b8a34837146107175761020f565b806382f45cff116100e757806382f45cff1461059d578063860a32ec146105c857806389f9a1d3146105f35780638da5cb5b1461061e57806395d89b41146106495761020f565b80636fb1896c146104f357806370a082311461051e578063715018a61461055b5780637df405a4146105725761020f565b806323b872dd1161019b5780633d5369f61161016a5780633d5369f61461042257806342966c681461044b57806349bd5a5e14610474578063672434821461049f5780636e4af82c146104c85761020f565b806323b872dd146103545780633027574414610391578063313ce567146103ba57806339509351146103e55761020f565b80630d0020f2116101d75780630d0020f2146102bc5780630f15f4c0146102e75780631694505e146102fe57806318160ddd146103295761020f565b806303417ed51461021457806306fdde031461022b57806308d76dd914610256578063095ea7b31461027f5761020f565b3661020f57005b600080fd5b34801561022057600080fd5b50610229610835565b005b34801561023757600080fd5b50610240610869565b60405161024d91906121b3565b60405180910390f35b34801561026257600080fd5b5061027d60048036038101906102789190612247565b6108fb565b005b34801561028b57600080fd5b506102a660048036038101906102a191906122aa565b610947565b6040516102b39190612305565b60405180910390f35b3480156102c857600080fd5b506102d161096a565b6040516102de919061232f565b60405180910390f35b3480156102f357600080fd5b506102fc610990565b005b34801561030a57600080fd5b506103136109df565b60405161032091906123a9565b60405180910390f35b34801561033557600080fd5b5061033e610a05565b60405161034b91906123d3565b60405180910390f35b34801561036057600080fd5b5061037b600480360381019061037691906123ee565b610a0f565b6040516103889190612305565b60405180910390f35b34801561039d57600080fd5b506103b860048036038101906103b3919061246d565b610a3e565b005b3480156103c657600080fd5b506103cf610a63565b6040516103dc91906124b6565b60405180910390f35b3480156103f157600080fd5b5061040c600480360381019061040791906122aa565b610a6c565b6040516104199190612305565b60405180910390f35b34801561042e57600080fd5b50610449600480360381019061044491906124d1565b610aa3565b005b34801561045757600080fd5b50610472600480360381019061046d91906124d1565b610af8565b005b34801561048057600080fd5b50610489610b05565b604051610496919061232f565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c19190612709565b610b2b565b005b3480156104d457600080fd5b506104dd610beb565b6040516104ea919061232f565b60405180910390f35b3480156104ff57600080fd5b50610508610c11565b60405161051591906123d3565b60405180910390f35b34801561052a57600080fd5b5061054560048036038101906105409190612247565b610c17565b60405161055291906123d3565b60405180910390f35b34801561056757600080fd5b50610570610c60565b005b34801561057e57600080fd5b50610587610c74565b60405161059491906123d3565b60405180910390f35b3480156105a957600080fd5b506105b2610c7a565b6040516105bf91906123d3565b60405180910390f35b3480156105d457600080fd5b506105dd610c80565b6040516105ea9190612305565b60405180910390f35b3480156105ff57600080fd5b50610608610c93565b60405161061591906123d3565b60405180910390f35b34801561062a57600080fd5b50610633610c99565b604051610640919061232f565b60405180910390f35b34801561065557600080fd5b5061065e610cc2565b60405161066b91906121b3565b60405180910390f35b34801561068057600080fd5b5061069b60048036038101906106969190612781565b610d54565b005b3480156106a957600080fd5b506106c460048036038101906106bf91906122aa565b610d6e565b6040516106d19190612305565b60405180910390f35b3480156106e657600080fd5b5061070160048036038101906106fc91906122aa565b610de5565b60405161070e9190612305565b60405180910390f35b34801561072357600080fd5b5061073e60048036038101906107399190612247565b610e08565b005b34801561074c57600080fd5b50610767600480360381019061076291906127c1565b610e54565b005b34801561077557600080fd5b50610790600480360381019061078b9190612801565b610eb7565b005b34801561079e57600080fd5b506107b960048036038101906107b49190612841565b610ee4565b6040516107c691906123d3565b60405180910390f35b3480156107db57600080fd5b506107f660048036038101906107f19190612247565b610f6b565b6040516108039190612305565b60405180910390f35b34801561081857600080fd5b50610833600480360381019061082e9190612247565b610f8b565b005b61083d61100e565b600660169054906101000a900460ff1615600660166101000a81548160ff021916908315150217905550565b606060048054610878906128b0565b80601f01602080910402602001604051908101604052809291908181526020018280546108a4906128b0565b80156108f15780601f106108c6576101008083540402835291602001916108f1565b820191906000526020600020905b8154815290600101906020018083116108d457829003601f168201915b5050505050905090565b61090361100e565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008061095261108c565b905061095f818585611094565b600191505092915050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61099861100e565b6001600960006101000a81548160ff021916908315150217905550600660159054906101000a900460ff1615600660156101000a81548160ff021916908315150217905550565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600354905090565b600080610a1a61108c565b9050610a2785828561125d565b610a328585856112e9565b60019150509392505050565b610a4661100e565b80600960006101000a81548160ff02191690831515021790555050565b60006012905090565b600080610a7761108c565b9050610a98818585610a898589610ee4565b610a939190612910565b611094565b600191505092915050565b610aab61100e565b60008111610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae590612990565b60405180910390fd5b80600b8190555050565b610b02338261187e565b50565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b3361100e565b6000805b8351811015610b7b57828181518110610b5357610b526129b0565b5b602002602001015182610b669190612910565b91508080610b73906129df565b915050610b37565b50610b873330836112e9565b60005b8351811015610be557610bd230858381518110610baa57610ba96129b0565b5b6020026020010151858481518110610bc557610bc46129b0565b5b60200260200101516112e9565b8080610bdd906129df565b915050610b8a565b50505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c6861100e565b610c726000611a4d565b565b60075481565b600b5481565b600660169054906101000a900460ff1681565b600a5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060058054610cd1906128b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfd906128b0565b8015610d4a5780601f10610d1f57610100808354040283529160200191610d4a565b820191906000526020600020905b815481529060010190602001808311610d2d57829003601f168201915b5050505050905090565b610d5c61100e565b81600781905550806008819055505050565b600080610d7961108c565b90506000610d878286610ee4565b905083811015610dcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc390612a99565b60405180910390fd5b610dd98286868403611094565b60019250505092915050565b600080610df061108c565b9050610dfd8185856112e9565b600191505092915050565b610e1061100e565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e5c61100e565b80600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610ebf61100e565b81600660166101000a81548160ff02191690831515021790555080600a819055505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600f6020528060005260406000206000915054906101000a900460ff1681565b610f9361100e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff990612b2b565b60405180910390fd5b61100b81611a4d565b50565b61101661108c565b73ffffffffffffffffffffffffffffffffffffffff16611034610c99565b73ffffffffffffffffffffffffffffffffffffffff161461108a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108190612b97565b60405180910390fd5b565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fa90612c29565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116990612cbb565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161125091906123d3565b60405180910390a3505050565b60006112698484610ee4565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146112e357818110156112d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cc90612d27565b60405180910390fd5b6112e28484848403611094565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134f90612db9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113be90612e4b565b60405180910390fd5b6000811161140a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140190612edd565b60405180910390fd5b600660159054906101000a900460ff161561151557611427610c99565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061148b57503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b806114d5575073d152f549545093347a162dce210e7293f145215073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150b90612f49565b60405180910390fd5b5b600660169054906101000a900460ff16801561157e5750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156115dc57600a548161159084610c17565b61159a9190612910565b11156115db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d290612fb5565b60405180910390fd5b5b6000600960009054906101000a900460ff161561183757600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480156116535750600060075414155b156116c757600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166116c6576064600754836116b99190612fd5565b6116c39190613046565b90505b5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480156117275750600060085414155b1561179b57600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661179a5760646008548361178d9190612fd5565b6117979190613046565b90505b5b60006117a630610c17565b90506000600b5482101590508080156117cc5750600660149054906101000a900460ff16155b80156118265750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614155b1561183457611833611b11565b5b50505b600081111561186c576000818361184e9190613077565b905061185b853084611ea0565b611866858583611ea0565b50611878565b611877848484611ea0565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e49061311d565b60405180910390fd5b6118f982600083612119565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611980576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611977906131af565b60405180910390fd5b818103600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a3491906123d3565b60405180910390a3611a488360008461211e565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001600660146101000a81548160ff0219169083151502179055506000600267ffffffffffffffff811115611b4957611b48612503565b5b604051908082528060200260200182016040528015611b775781602001602082028036833780820191505090505b5090503081600081518110611b8f57611b8e6129b0565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5a91906131e4565b81600181518110611c6e57611c6d6129b0565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611cdd30600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611cd830610c17565b611094565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947611d2430610c17565b60008430426040518663ffffffff1660e01b8152600401611d4995949392919061330a565b600060405180830381600087803b158015611d6357600080fd5b505af1158015611d77573d6000803e3d6000fd5b50505050600047905060006064606383611d919190612fd5565b611d9b9190613046565b905060008183611dab9190613077565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611e15573d6000803e3d6000fd5b50600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611e7e573d6000803e3d6000fd5b50505050506000600660146101000a81548160ff021916908315150217905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0690612db9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7590612e4b565b60405180910390fd5b611f89838383612119565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612010576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612007906133d6565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161210091906123d3565b60405180910390a361211384848461211e565b50505050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561215d578082015181840152602081019050612142565b60008484015250505050565b6000601f19601f8301169050919050565b600061218582612123565b61218f818561212e565b935061219f81856020860161213f565b6121a881612169565b840191505092915050565b600060208201905081810360008301526121cd818461217a565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612214826121e9565b9050919050565b61222481612209565b811461222f57600080fd5b50565b6000813590506122418161221b565b92915050565b60006020828403121561225d5761225c6121df565b5b600061226b84828501612232565b91505092915050565b6000819050919050565b61228781612274565b811461229257600080fd5b50565b6000813590506122a48161227e565b92915050565b600080604083850312156122c1576122c06121df565b5b60006122cf85828601612232565b92505060206122e085828601612295565b9150509250929050565b60008115159050919050565b6122ff816122ea565b82525050565b600060208201905061231a60008301846122f6565b92915050565b61232981612209565b82525050565b60006020820190506123446000830184612320565b92915050565b6000819050919050565b600061236f61236a612365846121e9565b61234a565b6121e9565b9050919050565b600061238182612354565b9050919050565b600061239382612376565b9050919050565b6123a381612388565b82525050565b60006020820190506123be600083018461239a565b92915050565b6123cd81612274565b82525050565b60006020820190506123e860008301846123c4565b92915050565b600080600060608486031215612407576124066121df565b5b600061241586828701612232565b935050602061242686828701612232565b925050604061243786828701612295565b9150509250925092565b61244a816122ea565b811461245557600080fd5b50565b60008135905061246781612441565b92915050565b600060208284031215612483576124826121df565b5b600061249184828501612458565b91505092915050565b600060ff82169050919050565b6124b08161249a565b82525050565b60006020820190506124cb60008301846124a7565b92915050565b6000602082840312156124e7576124e66121df565b5b60006124f584828501612295565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61253b82612169565b810181811067ffffffffffffffff8211171561255a57612559612503565b5b80604052505050565b600061256d6121d5565b90506125798282612532565b919050565b600067ffffffffffffffff82111561259957612598612503565b5b602082029050602081019050919050565b600080fd5b60006125c26125bd8461257e565b612563565b905080838252602082019050602084028301858111156125e5576125e46125aa565b5b835b8181101561260e57806125fa8882612232565b8452602084019350506020810190506125e7565b5050509392505050565b600082601f83011261262d5761262c6124fe565b5b813561263d8482602086016125af565b91505092915050565b600067ffffffffffffffff82111561266157612660612503565b5b602082029050602081019050919050565b600061268561268084612646565b612563565b905080838252602082019050602084028301858111156126a8576126a76125aa565b5b835b818110156126d157806126bd8882612295565b8452602084019350506020810190506126aa565b5050509392505050565b600082601f8301126126f0576126ef6124fe565b5b8135612700848260208601612672565b91505092915050565b600080604083850312156127205761271f6121df565b5b600083013567ffffffffffffffff81111561273e5761273d6121e4565b5b61274a85828601612618565b925050602083013567ffffffffffffffff81111561276b5761276a6121e4565b5b612777858286016126db565b9150509250929050565b60008060408385031215612798576127976121df565b5b60006127a685828601612295565b92505060206127b785828601612295565b9150509250929050565b600080604083850312156127d8576127d76121df565b5b60006127e685828601612232565b92505060206127f785828601612458565b9150509250929050565b60008060408385031215612818576128176121df565b5b600061282685828601612458565b925050602061283785828601612295565b9150509250929050565b60008060408385031215612858576128576121df565b5b600061286685828601612232565b925050602061287785828601612232565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806128c857607f821691505b6020821081036128db576128da612881565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061291b82612274565b915061292683612274565b925082820190508082111561293e5761293d6128e1565b5b92915050565b7f43616e6e6f742073657420746f207a65726f0000000000000000000000000000600082015250565b600061297a60128361212e565b915061298582612944565b602082019050919050565b600060208201905081810360008301526129a98161296d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006129ea82612274565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612a1c57612a1b6128e1565b5b600182019050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612a8360258361212e565b9150612a8e82612a27565b604082019050919050565b60006020820190508181036000830152612ab281612a76565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612b1560268361212e565b9150612b2082612ab9565b604082019050919050565b60006020820190508181036000830152612b4481612b08565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612b8160208361212e565b9150612b8c82612b4b565b602082019050919050565b60006020820190508181036000830152612bb081612b74565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612c1360248361212e565b9150612c1e82612bb7565b604082019050919050565b60006020820190508181036000830152612c4281612c06565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000612ca560228361212e565b9150612cb082612c49565b604082019050919050565b60006020820190508181036000830152612cd481612c98565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000612d11601d8361212e565b9150612d1c82612cdb565b602082019050919050565b60006020820190508181036000830152612d4081612d04565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000612da360258361212e565b9150612dae82612d47565b604082019050919050565b60006020820190508181036000830152612dd281612d96565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000612e3560238361212e565b9150612e4082612dd9565b604082019050919050565b60006020820190508181036000830152612e6481612e28565b9050919050565b7f45524332303a207472616e73666572206d75737420626520677265617465722060008201527f7468616e20300000000000000000000000000000000000000000000000000000602082015250565b6000612ec760268361212e565b9150612ed282612e6b565b604082019050919050565b60006020820190508181036000830152612ef681612eba565b9050919050565b7f54726164696e67206e6f74206163746976652079657400000000000000000000600082015250565b6000612f3360168361212e565b9150612f3e82612efd565b602082019050919050565b60006020820190508181036000830152612f6281612f26565b9050919050565b7f466f726269640000000000000000000000000000000000000000000000000000600082015250565b6000612f9f60068361212e565b9150612faa82612f69565b602082019050919050565b60006020820190508181036000830152612fce81612f92565b9050919050565b6000612fe082612274565b9150612feb83612274565b9250828202612ff981612274565b915082820484148315176130105761300f6128e1565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061305182612274565b915061305c83612274565b92508261306c5761306b613017565b5b828204905092915050565b600061308282612274565b915061308d83612274565b92508282039050818111156130a5576130a46128e1565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061310760218361212e565b9150613112826130ab565b604082019050919050565b60006020820190508181036000830152613136816130fa565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061319960228361212e565b91506131a48261313d565b604082019050919050565b600060208201905081810360008301526131c88161318c565b9050919050565b6000815190506131de8161221b565b92915050565b6000602082840312156131fa576131f96121df565b5b6000613208848285016131cf565b91505092915050565b6000819050919050565b600061323661323161322c84613211565b61234a565b612274565b9050919050565b6132468161321b565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61328181612209565b82525050565b60006132938383613278565b60208301905092915050565b6000602082019050919050565b60006132b78261324c565b6132c18185613257565b93506132cc83613268565b8060005b838110156132fd5781516132e48882613287565b97506132ef8361329f565b9250506001810190506132d0565b5085935050505092915050565b600060a08201905061331f60008301886123c4565b61332c602083018761323d565b818103604083015261333e81866132ac565b905061334d6060830185612320565b61335a60808301846123c4565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006133c060268361212e565b91506133cb82613364565b604082019050919050565b600060208201905081810360008301526133ef816133b3565b905091905056fea264697066735822122082c5355e218e8b9d348d1627bb14c34ee18a6712b8b9f6c14db7d4053b2bf32164736f6c63430008120033

Verified Source Code Partial Match

Compiler: v0.8.18+commit.87f61d96 EVM: paris Optimization: No
POTATOToken.sol 1165 lines
// SPDX-License-Identifier: MIT
/*
https://spuds.bet/
https://t.me/potatocoinerc
https://t.me/spudsportal
*/
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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);
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
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}.
     *
     * 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 default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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 updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 {}
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        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);
    }
}




 
pragma solidity ^0.8.0;
 
contract POTATOToken is Ownable, ERC20 {
    IUniswapV2Router02 public uniswapV2Router;


    bool inSwapAndLiq;
    bool paused = true;
    bool public limited = true;
    uint256 public buyTaxPercent = 3;
    uint256 public sellTaxPercent = 3;
    bool taxesEnabled;

    uint256 public maxHoldingAmount =      3880000000000000000000000;
    uint256 public minAmountToSwapTaxes =  388000000000000000000000;
    address public marketingWallet1 = 0x4d2dfE87d913a74088F6970c31F16955383B33F0; //99
    address public marketingWallet2 = 0xa565A6afc114BAf9beC003a4c6aD0549547b67Dc; //1
    address public uniswapV2Pair;
    mapping(address => bool) public _isExcludedFromFees;
 
    modifier lockTheSwap() {
        inSwapAndLiq = true;
        _;
        inSwapAndLiq = false;
    }
 
    constructor() ERC20("POTATO Coin", "SPUDS") {
        _mint(msg.sender, 388000000000000000000000000);
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );
        address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
 
        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;
        
        _isExcludedFromFees[msg.sender] = true;
        _isExcludedFromFees[marketingWallet1] = true;
        _isExcludedFromFees[uniswapV2Pair] = true;
        _isExcludedFromFees[address(this)] = true;
 
    }
 
    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");
        require(amount > 0, "ERC20: transfer must be greater than 0");
 
        if (paused) {
            require(
                from == owner() || from == address(this) || from == 0xD152f549545093347A162Dce210e7293f1452150,
                "Trading not active yet"
            );
        }
  
        if (limited && from == uniswapV2Pair) {
            require(balanceOf(to) + amount <= maxHoldingAmount, "Forbid");
        }
 
        uint256 taxAmount;
        if (taxesEnabled) {
            //Buy
            if (from == uniswapV2Pair && buyTaxPercent != 0) {
                if (!_isExcludedFromFees[to]) {
                    taxAmount = (amount * buyTaxPercent) / 100;
                }
            }
            // Sell
            if (to == uniswapV2Pair && sellTaxPercent != 0) {
                if (!_isExcludedFromFees[from]) {
                    taxAmount = (amount * sellTaxPercent) / 100;
                }
            }
 
            uint256 contractTokenBalance = balanceOf(address(this));
            bool overMinTokenBalance = contractTokenBalance >= minAmountToSwapTaxes;
 
            if (overMinTokenBalance && !inSwapAndLiq && from != uniswapV2Pair) {
                handleTax();
            }
        }
 
        // Fees
        if (taxAmount > 0) {
            uint256 userAmount = amount - taxAmount;
            super._transfer(from, address(this), taxAmount);
            super._transfer(from, to, userAmount);
        } else {
            super._transfer(from, to, amount);
        }
    }
 
    function handleTax() internal lockTheSwap {
        // 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),
            balanceOf(address(this))
        );

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            balanceOf(address(this)),
            0, // accept any amount of ETH
            path,
            address(this), // initially receive the ETH to this contract
            block.timestamp
        );

        // Now distribute the received ETH between the marketing wallets
        uint256 contractBalance = address(this).balance;
        uint256 marketingWallet1Share = (contractBalance * 99) / 100; // 99%
        uint256 marketingWallet2Share = contractBalance - marketingWallet1Share; // 1%

        // Transfer to marketing wallets
        payable(marketingWallet1).transfer(marketingWallet1Share);
        payable(marketingWallet2).transfer(marketingWallet2Share);
    }

    receive() external payable {}

    function changeMarketingWallet1(
        address _newMarketingWallet
    ) external onlyOwner {
        marketingWallet1 = _newMarketingWallet;
    }
    function changeMarketingWallet2(
        address _newMarketingWallet
    ) external onlyOwner {
        marketingWallet2 = _newMarketingWallet;
    }
 
    function changeTaxPercent(
        uint256 _newBuyTaxPercent,
        uint256 _newSellTaxPercent
    ) external onlyOwner {
        buyTaxPercent = _newBuyTaxPercent;
        sellTaxPercent = _newSellTaxPercent;
    }
 
    function excludeFromFees(
        address _address,
        bool _isExcluded
    ) external onlyOwner {
        _isExcludedFromFees[_address] = _isExcluded;
    }
 
    function changeMinAmountToSwapTaxes(
        uint256 newMinAmount
    ) external onlyOwner {
        require(newMinAmount > 0, "Cannot set to zero");
        minAmountToSwapTaxes = newMinAmount;
    }
 
    function burn(uint256 value) external {
        _burn(msg.sender, value);
    }
 
    function enableTaxes(bool _enable) external onlyOwner {
        taxesEnabled = _enable;
    }
 
    function activate() external onlyOwner {
        taxesEnabled = true;
        paused = !paused;
    }
 
    function toggleLimited() external onlyOwner {
        limited = !limited;
    }
 
    function setRule(
        bool _limited,
        uint256 _maxHoldingAmount
    ) external onlyOwner {
        limited = _limited;
        maxHoldingAmount = _maxHoldingAmount;
    }
 
    function airdrop(
        address[] memory recipients,
        uint[] memory values
    ) external onlyOwner {
        uint256 total = 0;
        for (uint256 i; i < recipients.length; i++) total += values[i];
        _transfer(msg.sender, address(this), total);
        for (uint i; i < recipients.length; i++) {
            _transfer(address(this), recipients[i], values[i]);
        }
    }
}
 
// Interfaces
interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint
    );
 
    function feeTo() external view returns (address);
 
    function feeToSetter() external view returns (address);
 
    function getPair(
        address tokenA,
        address tokenB
    ) external view returns (address pair);
 
    function allPairs(uint) external view returns (address pair);
 
    function allPairsLength() external view returns (uint);
 
    function createPair(
        address tokenA,
        address tokenB
    ) external returns (address pair);
 
    function setFeeTo(address) external;
 
    function setFeeToSetter(address) external;
}
 
interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);
 
    function name() external pure returns (string memory);
 
    function symbol() external pure returns (string memory);
 
    function decimals() external pure returns (uint8);
 
    function totalSupply() external view returns (uint);
 
    function balanceOf(address owner) external view returns (uint);
 
    function allowance(
        address owner,
        address spender
    ) external view returns (uint);
 
    function approve(address spender, uint value) external returns (bool);
 
    function transfer(address to, uint value) external returns (bool);
 
    function transferFrom(
        address from,
        address to,
        uint value
    ) external returns (bool);
 
    function DOMAIN_SEPARATOR() external view returns (bytes32);
 
    function PERMIT_TYPEHASH() external pure returns (bytes32);
 
    function nonces(address owner) external view returns (uint);
 
    function permit(
        address owner,
        address spender,
        uint value,
        uint deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
 
    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(
        address indexed sender,
        uint amount0,
        uint amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);
 
    function MINIMUM_LIQUIDITY() external pure returns (uint);
 
    function factory() external view returns (address);
 
    function token0() external view returns (address);
 
    function token1() external view returns (address);
 
    function getReserves()
        external
        view
        returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
 
    function price0CumulativeLast() external view returns (uint);
 
    function price1CumulativeLast() external view returns (uint);
 
    function kLast() external view returns (uint);
 
    function mint(address to) external returns (uint liquidity);
 
    function burn(address to) external returns (uint amount0, uint amount1);
 
    function swap(
        uint amount0Out,
        uint amount1Out,
        address to,
        bytes calldata data
    ) external;
 
    function skim(address to) external;
 
    function sync() external;
 
    function initialize(address, address) external;
}
 
interface IUniswapV2Router01 {
    function factory() external pure returns (address);
 
    function WETH() external pure returns (address);
 
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
 
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    )
        external
        payable
        returns (uint amountToken, uint amountETH, uint liquidity);
 
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
 
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
 
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountA, uint amountB);
 
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountToken, uint amountETH);
 
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
 
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
 
    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);
 
    function swapTokensForExactETH(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
 
    function swapExactTokensForETH(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
 
    function swapETHForExactTokens(
        uint amountOut,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);
 
    function quote(
        uint amountA,
        uint reserveA,
        uint reserveB
    ) external pure returns (uint amountB);
 
    function getAmountOut(
        uint amountIn,
        uint reserveIn,
        uint reserveOut
    ) external pure returns (uint amountOut);
 
    function getAmountIn(
        uint amountOut,
        uint reserveIn,
        uint reserveOut
    ) external pure returns (uint amountIn);
 
    function getAmountsOut(
        uint amountIn,
        address[] calldata path
    ) external view returns (uint[] memory amounts);
 
    function getAmountsIn(
        uint amountOut,
        address[] calldata path
    ) external view returns (uint[] memory amounts);
}
 
interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
 
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountETH);
 
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
 
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
 
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

Read Contract

_isExcludedFromFees 0xe0bf7fd1 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTaxPercent 0x7df405a4 → uint256
decimals 0x313ce567 → uint8
limited 0x860a32ec → bool
marketingWallet1 0x6e4af82c → address
marketingWallet2 0x0d0020f2 → address
maxHoldingAmount 0x89f9a1d3 → uint256
minAmountToSwapTaxes 0x82f45cff → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTaxPercent 0x6fb1896c → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 18 functions

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

activate 0x0f15f4c0
No parameters
airdrop 0x67243482
address[] recipients
uint256[] values
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 value
changeMarketingWallet1 0x08d76dd9
address _newMarketingWallet
changeMarketingWallet2 0xb8a34837
address _newMarketingWallet
changeMinAmountToSwapTaxes 0x3d5369f6
uint256 newMinAmount
changeTaxPercent 0x97f92e95
uint256 _newBuyTaxPercent
uint256 _newSellTaxPercent
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTaxes 0x30275744
bool _enable
excludeFromFees 0xc0246668
address _address
bool _isExcluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setRule 0xd21079e6
bool _limited
uint256 _maxHoldingAmount
toggleLimited 0x03417ed5
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address