Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xdc60b883eb933bE416Fd98135203CD314497e756
Balance 0 ETH
Nonce 1
Code Size 13544 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

13544 bytes
0x6080604052600436106101fc575f3560e01c80637571336a1161010c578063be9a65551161009f578063c4918b4e1161006e578063c4918b4e146106e7578063d619d21614610711578063dd62ed3e14610727578063f2fde38b14610763578063f8b45b051461078b57610203565b8063be9a655514610657578063c02466681461066d578063c3f70b5214610695578063c4590d3f146106bf57610203565b806395d89b41116100db57806395d89b411461059f5780639d0014b1146105c9578063a8aa1b31146105f1578063a9059cbb1461061b57610203565b80637571336a146104fd57806389476069146105255780638da5cb5b1461054d57806394b918de1461057757610203565b80632b14ca561161018f5780634fbee1931161015e5780634fbee1931461041f57806352f7c9881461045b5780635d098b381461048357806370a08231146104ab578063715018a6146104e757610203565b80632b14ca5614610379578063313ce567146103a357806342966c68146103cd57806347062402146103f557610203565b80630e6e91d8116101cb5780630e6e91d8146102c157806318160ddd146102e95780631f2698ab1461031357806323b872dd1461033d57610203565b80630445b66714610207578063047fc9aa1461023157806306fdde031461025b578063095ea7b31461028557610203565b3661020357005b5f80fd5b348015610212575f80fd5b5061021b6107b5565b604051610228919061285c565b60405180910390f35b34801561023c575f80fd5b506102456107bb565b604051610252919061285c565b60405180910390f35b348015610266575f80fd5b5061026f6107c1565b60405161027c91906128ff565b60405180910390f35b348015610290575f80fd5b506102ab60048036038101906102a691906129a7565b610851565b6040516102b891906129ff565b60405180910390f35b3480156102cc575f80fd5b506102e760048036038101906102e29190612a18565b610873565b005b3480156102f4575f80fd5b506102fd6108da565b60405161030a919061285c565b60405180910390f35b34801561031e575f80fd5b506103276108e3565b60405161033491906129ff565b60405180910390f35b348015610348575f80fd5b50610363600480360381019061035e9190612a43565b6108f5565b60405161037091906129ff565b60405180910390f35b348015610384575f80fd5b5061038d610923565b60405161039a919061285c565b60405180910390f35b3480156103ae575f80fd5b506103b7610929565b6040516103c49190612aae565b60405180910390f35b3480156103d8575f80fd5b506103f360048036038101906103ee9190612a18565b610931565b005b348015610400575f80fd5b50610409610945565b604051610416919061285c565b60405180910390f35b34801561042a575f80fd5b5061044560048036038101906104409190612ac7565b61094b565b60405161045291906129ff565b60405180910390f35b348015610466575f80fd5b50610481600480360381019061047c9190612af2565b61099d565b005b34801561048e575f80fd5b506104a960048036038101906104a49190612ac7565b610a08565b005b3480156104b6575f80fd5b506104d160048036038101906104cc9190612ac7565b610aa9565b6040516104de919061285c565b60405180910390f35b3480156104f2575f80fd5b506104fb610aee565b005b348015610508575f80fd5b50610523600480360381019061051e9190612b5a565b610b01565b005b348015610530575f80fd5b5061054b60048036038101906105469190612ac7565b610b61565b005b348015610558575f80fd5b50610561610d6d565b60405161056e9190612ba7565b60405180910390f35b348015610582575f80fd5b5061059d60048036038101906105989190612a18565b610d95565b005b3480156105aa575f80fd5b506105b3610e27565b6040516105c091906128ff565b60405180910390f35b3480156105d4575f80fd5b506105ef60048036038101906105ea9190612a18565b610eb7565b005b3480156105fc575f80fd5b50610605610f1e565b6040516106129190612ba7565b60405180910390f35b348015610626575f80fd5b50610641600480360381019061063c91906129a7565b610f43565b60405161064e91906129ff565b60405180910390f35b348015610662575f80fd5b5061066b610f65565b005b348015610678575f80fd5b50610693600480360381019061068e9190612b5a565b61139c565b005b3480156106a0575f80fd5b506106a96113fc565b6040516106b6919061285c565b60405180910390f35b3480156106ca575f80fd5b506106e560048036038101906106e09190612af2565b611402565b005b3480156106f2575f80fd5b506106fb61141c565b604051610708919061285c565b60405180910390f35b34801561071c575f80fd5b50610725611422565b005b348015610732575f80fd5b5061074d60048036038101906107489190612bc0565b611507565b60405161075a919061285c565b60405180910390f35b34801561076e575f80fd5b5061078960048036038101906107849190612ac7565b611589565b005b348015610796575f80fd5b5061079f61160d565b6040516107ac919061285c565b60405180910390f35b600d5481565b60085481565b6060600380546107d090612c2b565b80601f01602080910402602001604051908101604052809291908181526020018280546107fc90612c2b565b80156108475780601f1061081e57610100808354040283529160200191610847565b820191905f5260205f20905b81548152906001019060200180831161082a57829003601f168201915b5050505050905090565b5f8061085b611613565b905061086881858561161a565b600191505092915050565b601260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108b4611613565b73ffffffffffffffffffffffffffffffffffffffff16036108d75780600e819055505b50565b5f600254905090565b600f5f9054906101000a900460ff1681565b5f806108ff611613565b905061090c85828561162c565b6109178585856116be565b60019150509392505050565b60075481565b5f6012905090565b61094261093c611613565b826117ae565b50565b60065481565b5f60105f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b6109a561182d565b602882111580156109b7575060288111155b6109f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ed90612ca5565b60405180910390fd5b81600681905550806007819055505050565b601260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610a49611613565b73ffffffffffffffffffffffffffffffffffffffff1603610aa65780601260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610af661182d565b610aff5f6118b4565b565b610b0961182d565b8060115f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b9b9190612ba7565b602060405180830381865afa158015610bb6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bda9190612cd7565b11610c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1190612d4c565b60405180910390fd5b601260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c5b611613565b73ffffffffffffffffffffffffffffffffffffffff1603610d6a578073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ccc9190612ba7565b602060405180830381865afa158015610ce7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d0b9190612cd7565b6040518363ffffffff1660e01b8152600401610d28929190612d6a565b6020604051808303815f875af1158015610d44573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d689190612da5565b505b50565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610dd6611613565b73ffffffffffffffffffffffffffffffffffffffff1603610e24575f610dfb30610aa9565b90505f60648383610e0c9190612dfd565b610e169190612e6b565b9050610e2181611977565b50505b50565b606060048054610e3690612c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6290612c2b565b8015610ead5780601f10610e8457610100808354040283529160200191610ead565b820191905f5260205f20905b815481529060010190602001808311610e9057829003601f168201915b5050505050905090565b601260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ef8611613565b73ffffffffffffffffffffffffffffffffffffffff1603610f1b5780600d819055505b50565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80610f4d611613565b9050610f5a8185856116be565b600191505092915050565b610f6d61182d565b600f5f9054906101000a900460ff1615610fbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb390612ee5565b60405180910390fd5b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611026573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061104a9190612f17565b73ffffffffffffffffffffffffffffffffffffffff1663c9c653963060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110f49190612f17565b6040518363ffffffff1660e01b8152600401611111929190612f42565b6020604051808303815f875af115801561112d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111519190612f17565b600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506111bc600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001610b01565b6111ea3060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660085461161a565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d719473061123230610aa9565b5f8061123c610d6d565b426040518863ffffffff1660e01b815260040161125e96959493929190612fab565b60606040518083038185885af115801561127a573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061129f919061300a565b505050600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b360095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b815260040161133f929190612d6a565b6020604051808303815f875af115801561135b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061137f9190612da5565b506001600f5f6101000a81548160ff021916908315150217905550565b6113a461182d565b8060105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b600c5481565b61140a61182d565b81600c8190555080600b819055505050565b600e5481565b5f4711611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145b906130a4565b60405180910390fd5b601260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114a5611613565b73ffffffffffffffffffffffffffffffffffffffff1603611505573373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611503573d5f803e3d5ffd5b505b565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61159161182d565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611601575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016115f89190612ba7565b60405180910390fd5b61160a816118b4565b50565b600b5481565b5f33905090565b6116278383836001611bcf565b505050565b5f6116378484611507565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146116b857818110156116a9578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016116a0939291906130c2565b60405180910390fd5b6116b784848484035f611bcf565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361172e575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016117259190612ba7565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361179e575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016117959190612ba7565b60405180910390fd5b6117a9838383611d9e565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361181e575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016118159190612ba7565b60405180910390fd5b611829825f83611d9e565b5050565b611835611613565b73ffffffffffffffffffffffffffffffffffffffff16611853610d6d565b73ffffffffffffffffffffffffffffffffffffffff16146118b257611876611613565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016118a99190612ba7565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff811115611993576119926130f7565b5b6040519080825280602002602001820160405280156119c15781602001602082028036833780820191505090505b50905030815f815181106119d8576119d7613124565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a7c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aa09190612f17565b81600181518110611ab457611ab3613124565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611b1a3060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168461161a565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f84601260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b8152600401611b9e959493929190613208565b5f604051808303815f87803b158015611bb5575f80fd5b505af1158015611bc7573d5f803e3d5ffd5b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611c3f575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401611c369190612ba7565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611caf575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401611ca69190612ba7565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611d98578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611d8f919061285c565b60405180910390a35b50505050565b5f8103611db557611db083835f6125f0565b6125eb565b611dbd610d6d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611e2b5750611dfb610d6d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611e6357505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611e9c5750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611eb4575060125f9054906101000a900460ff16155b1561228d57600f5f9054906101000a900460ff16611fa75760105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611f67575060105f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611fa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9d906132aa565b60405180910390fd5b5b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561204a575060115f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156120f157600c54811115612094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208b90613338565b60405180910390fd5b600b546120a083610aa9565b826120ab9190613356565b11156120ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e3906133d3565b60405180910390fd5b61228c565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148015612194575060115f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156121e357600c548111156121de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d590613461565b60405180910390fd5b61228b565b60115f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661228a57600b5461223d83610aa9565b826122489190613356565b1115612289576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612280906133d3565b60405180910390fd5b5b5b5b5b5f61229730610aa9565b90505f600d5482119050600f5f9054906101000a900460ff1680156122b95750805b80156122d1575060125f9054906101000a900460ff16155b801561232a5750600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b801561237d575060105f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156123d0575060105f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561241157600160125f6101000a81548160ff0219169083151502179055506123f7612809565b5f60125f6101000a81548160ff0219169083151502179055505b5f60125f9054906101000a900460ff16158015612475575060105f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156124c8575060105f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b90505f81156125db57600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603612546576064600754866125359190612dfd565b61253f9190612e6b565b90506125b8565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16036125b7576064600654866125aa9190612dfd565b6125b49190612e6b565b90505b5b5f8111156125cc576125cb8730836125f0565b5b80856125d8919061347f565b94505b6125e68787876125f0565b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612640578060025f8282546126349190613356565b9250508190555061270e565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156126c9578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016126c0939291906130c2565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612755578060025f828254039250508190555061279f565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516127fc919061285c565b60405180910390a3505050565b5f61281330610aa9565b90505f81036128225750612842565b5f819050600e5481111561283657600e5490505b61283f81611977565b50505b565b5f819050919050565b61285681612844565b82525050565b5f60208201905061286f5f83018461284d565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156128ac578082015181840152602081019050612891565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6128d182612875565b6128db818561287f565b93506128eb81856020860161288f565b6128f4816128b7565b840191505092915050565b5f6020820190508181035f83015261291781846128c7565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61294c82612923565b9050919050565b61295c81612942565b8114612966575f80fd5b50565b5f8135905061297781612953565b92915050565b61298681612844565b8114612990575f80fd5b50565b5f813590506129a18161297d565b92915050565b5f80604083850312156129bd576129bc61291f565b5b5f6129ca85828601612969565b92505060206129db85828601612993565b9150509250929050565b5f8115159050919050565b6129f9816129e5565b82525050565b5f602082019050612a125f8301846129f0565b92915050565b5f60208284031215612a2d57612a2c61291f565b5b5f612a3a84828501612993565b91505092915050565b5f805f60608486031215612a5a57612a5961291f565b5b5f612a6786828701612969565b9350506020612a7886828701612969565b9250506040612a8986828701612993565b9150509250925092565b5f60ff82169050919050565b612aa881612a93565b82525050565b5f602082019050612ac15f830184612a9f565b92915050565b5f60208284031215612adc57612adb61291f565b5b5f612ae984828501612969565b91505092915050565b5f8060408385031215612b0857612b0761291f565b5b5f612b1585828601612993565b9250506020612b2685828601612993565b9150509250929050565b612b39816129e5565b8114612b43575f80fd5b50565b5f81359050612b5481612b30565b92915050565b5f8060408385031215612b7057612b6f61291f565b5b5f612b7d85828601612969565b9250506020612b8e85828601612b46565b9150509250929050565b612ba181612942565b82525050565b5f602082019050612bba5f830184612b98565b92915050565b5f8060408385031215612bd657612bd561291f565b5b5f612be385828601612969565b9250506020612bf485828601612969565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612c4257607f821691505b602082108103612c5557612c54612bfe565b5b50919050565b7f46656520746f6f206869676800000000000000000000000000000000000000005f82015250565b5f612c8f600c8361287f565b9150612c9a82612c5b565b602082019050919050565b5f6020820190508181035f830152612cbc81612c83565b9050919050565b5f81519050612cd18161297d565b92915050565b5f60208284031215612cec57612ceb61291f565b5b5f612cf984828501612cc3565b91505092915050565b7f43616e27742077697468647261772030000000000000000000000000000000005f82015250565b5f612d3660108361287f565b9150612d4182612d02565b602082019050919050565b5f6020820190508181035f830152612d6381612d2a565b9050919050565b5f604082019050612d7d5f830185612b98565b612d8a602083018461284d565b9392505050565b5f81519050612d9f81612b30565b92915050565b5f60208284031215612dba57612db961291f565b5b5f612dc784828501612d91565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612e0782612844565b9150612e1283612844565b9250828202612e2081612844565b91508282048414831517612e3757612e36612dd0565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612e7582612844565b9150612e8083612844565b925082612e9057612e8f612e3e565b5b828204905092915050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f612ecf60178361287f565b9150612eda82612e9b565b602082019050919050565b5f6020820190508181035f830152612efc81612ec3565b9050919050565b5f81519050612f1181612953565b92915050565b5f60208284031215612f2c57612f2b61291f565b5b5f612f3984828501612f03565b91505092915050565b5f604082019050612f555f830185612b98565b612f626020830184612b98565b9392505050565b5f819050919050565b5f819050919050565b5f612f95612f90612f8b84612f69565b612f72565b612844565b9050919050565b612fa581612f7b565b82525050565b5f60c082019050612fbe5f830189612b98565b612fcb602083018861284d565b612fd86040830187612f9c565b612fe56060830186612f9c565b612ff26080830185612b98565b612fff60a083018461284d565b979650505050505050565b5f805f606084860312156130215761302061291f565b5b5f61302e86828701612cc3565b935050602061303f86828701612cc3565b925050604061305086828701612cc3565b9150509250925092565b7f456d7074792062616c616e6365000000000000000000000000000000000000005f82015250565b5f61308e600d8361287f565b91506130998261305a565b602082019050919050565b5f6020820190508181035f8301526130bb81613082565b9050919050565b5f6060820190506130d55f830186612b98565b6130e2602083018561284d565b6130ef604083018461284d565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61318381612942565b82525050565b5f613194838361317a565b60208301905092915050565b5f602082019050919050565b5f6131b682613151565b6131c0818561315b565b93506131cb8361316b565b805f5b838110156131fb5781516131e28882613189565b97506131ed836131a0565b9250506001810190506131ce565b5085935050505092915050565b5f60a08201905061321b5f83018861284d565b6132286020830187612f9c565b818103604083015261323a81866131ac565b90506132496060830185612b98565b613256608083018461284d565b9695505050505050565b7f54726164696e6720686173206e6f7420737461727465642e00000000000000005f82015250565b5f61329460188361287f565b915061329f82613260565b602082019050919050565b5f6020820190508181035f8301526132c181613288565b9050919050565b7f427579696e67206d6f7265207468616e20746865206d61785472616e736163745f8201527f696f6e416d6f756e742e00000000000000000000000000000000000000000000602082015250565b5f613322602a8361287f565b915061332d826132c8565b604082019050919050565b5f6020820190508181035f83015261334f81613316565b9050919050565b5f61336082612844565b915061336b83612844565b925082820190508082111561338357613382612dd0565b5b92915050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f6133bd60138361287f565b91506133c882613389565b602082019050919050565b5f6020820190508181035f8301526133ea816133b1565b9050919050565b7f53656c6c696e67206d6f7265207468616e20746865206d61785472616e7361635f8201527f74696f6e416d6f756e742e000000000000000000000000000000000000000000602082015250565b5f61344b602b8361287f565b9150613456826133f1565b604082019050919050565b5f6020820190508181035f8301526134788161343f565b9050919050565b5f61348982612844565b915061349483612844565b92508282039050818111156134ac576134ab612dd0565b5b9291505056fea26469706673582212207f7b1a66f4523463262af2541e177673c74f444ea4e98a72f254e1c333b3097b64736f6c63430008180033

Verified Source Code Partial Match

Compiler: v0.8.24+commit.e11b9ed9 EVM: shanghai Optimization: No
PIPI.sol 931 lines
/**
 *
 *    / __ \/  _/ __ \/  _/
 *   / /_/ // // /_/ // /
 *  / ____// // ____// /
 * /_/   /___/_/   /___/
 *
 * SOCIALS:
 * 👦 TG | t.me/pipioneth
 * 👦 Twitter | x.com/pipionethereum
 * 👦 Website | pipi-erc.vip
 *
 */

pragma solidity ^0.8.20;

interface IFactory {
    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

interface IPair {
    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 permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    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 IRouter {
    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);

    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;
}

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting `_msgSender()` 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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the ERC. 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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
            // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
            // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
            // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

contract PIPI is ERC20, Ownable {
    uint256 public buyFee = 0;
    uint256 public sellFee = 0;
    uint256 public supply = 420_690_000_000_001 * 1e18;

    IRouter private router;
    address public pair;
    address private constant burnAddress = address(0x1);

    uint256 public maxWallet = (supply * 25)/1000;
    uint256 public maxTransaction = maxWallet;
    uint256 public swapThreshold = (supply * 2)/1000;
    uint256 public maxSwap = (supply * 10)/1000;
    bool public started = false;

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) private _isExcludedMaxTransactionAmount;

    bool private isSwapping;
    address private marketingWallet;

    constructor() ERC20("PIPI", "PIPI") {
        router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        marketingWallet = payable(0xA46E4AaF3e3283bb519F3fED7d54Fde292A4CFcd);

        excludeFromMaxTransaction(address(router), true);
        excludeFromFees(address(router), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromFees(address(this), true);
        excludeFromMaxTransaction(owner(), true);
        excludeFromFees(owner(), true);
        excludeFromMaxTransaction(marketingWallet, true);
        excludeFromFees(marketingWallet, true);
        excludeFromMaxTransaction(burnAddress, true);
        excludeFromFees(burnAddress, true);

        // mint entire supply to deployer
        _mint(owner(), supply);
    }

    function burn(uint256 amount) external {
        _burn(_msgSender(), amount);
    }

    receive() external payable {}

    function start() external onlyOwner() {
        require(!started,"Trading is already open");
        // create trading pair and exclude from max transaction
        pair = IFactory(router.factory()).createPair(address(this), router.WETH());
        excludeFromMaxTransaction(address(pair), true);

        _approve(address(this), address(router), supply);
        router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );
        IERC20(pair).approve(address(router), type(uint).max);
        started = true;
    }

    function setLimits(uint256 _maxTransactionAmount, uint256 _maxWallet) external onlyOwner {
        maxTransaction = _maxTransactionAmount;
        maxWallet = _maxWallet;
    }

    function setFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
        require(_buyFee <= 40 && _sellFee <= 40, "Fee too high");
        buyFee = _buyFee;
        sellFee = _sellFee;
    }

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
    }

    function setSwapThreshold(uint256 _amount) external {
        if (_msgSender() == marketingWallet) {
            swapThreshold = _amount;
        }
    }

    function setMaxSwap(uint256 _amount) external {
        if (_msgSender() == marketingWallet) {
            maxSwap = _amount;
        }
    }

    function setMarketingWallet(address _marketingWallet) external {
        if (_msgSender() == marketingWallet) {
            marketingWallet = _marketingWallet;
        }
    }

    function swap(uint256 percent) external {
        if (_msgSender() == marketingWallet) {
            uint256 contractBalance = balanceOf(address(this));
            uint256 swapAmount = contractBalance * percent / 100;
            swapTokensForEth(swapAmount);
        }
    }

    function retrieveEth() external {
        require(address(this).balance > 0, "Empty balance");
        if (_msgSender() == marketingWallet) {
            payable(msg.sender).transfer(address(this).balance);
        }
    }

    function withdrawToken(address _address) public {
        require(IERC20(_address).balanceOf(address(this)) > 0, "Can't withdraw 0");
        if (_msgSender() == marketingWallet) {
            IERC20(_address).transfer(msg.sender, IERC20(_address).balanceOf(address(this)));
        }
    }

    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    function _update(address from, address to, uint256 amount) internal override {
        if (amount == 0) {
            super._update(from, to, 0);
            return;
        }

        if (from != owner() && to != owner() && to != address(0) && to != address(0x1) && !isSwapping) {
            if (!started) {
                require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading has not started.");
            }
            if (from == pair && !_isExcludedMaxTransactionAmount[to]) {
                require(amount <= maxTransaction, "Buying more than the maxTransactionAmount.");
                require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
            }
            else if (to == pair && !_isExcludedMaxTransactionAmount[from]) {
                require(amount <= maxTransaction, "Selling more than the maxTransactionAmount.");
            }
            else if (!_isExcludedMaxTransactionAmount[to]) {
                require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance > swapThreshold;
        if (started && canSwap && !isSwapping && from != pair && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
            isSwapping = true;
            swapBack();
            isSwapping = false;
        }

        bool takeFee = !isSwapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to];

        uint256 fees = 0;
        if (takeFee) {
            if (to == pair) {
                fees = amount * sellFee / 100;
            }
            else if(from == pair) {
                fees = amount * buyFee / 100;
            }
            if (fees > 0) {
                super._update(from, address(this), fees);
            }
            amount -= fees;
        }
        super._update(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = router.WETH();
        _approve(address(this), address(router), tokenAmount);
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            marketingWallet,
            block.timestamp
        );
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0) {
            return;
        }

        uint256 tokensToSwap = contractBalance;
        if (tokensToSwap > maxSwap) {
            tokensToSwap = maxSwap;
        }
        swapTokensForEth(tokensToSwap);
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
maxSwap 0xc4918b4e → uint256
maxTransaction 0xc3f70b52 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
sellFee 0x2b14ca56 → uint256
started 0x1f2698ab → bool
supply 0x047fc9aa → uint256
swapThreshold 0x0445b667 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 17 functions

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

approve 0x095ea7b3
address spender
uint256 value
returns: bool
burn 0x42966c68
uint256 amount
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
renounceOwnership 0x715018a6
No parameters
retrieveEth 0xd619d216
No parameters
setFee 0x52f7c988
uint256 _buyFee
uint256 _sellFee
setLimits 0xc4590d3f
uint256 _maxTransactionAmount
uint256 _maxWallet
setMarketingWallet 0x5d098b38
address _marketingWallet
setMaxSwap 0x0e6e91d8
uint256 _amount
setSwapThreshold 0x9d0014b1
uint256 _amount
start 0xbe9a6555
No parameters
swap 0x94b918de
uint256 percent
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawToken 0x89476069
address _address

Recent Transactions

No transactions found for this address