Address Contract Verified
Address
0x1B46DB2966B1A12Ff46e9306fdD46d8e7f3be38E
Balance
0.000000000 ETH
Nonce
1
Code Size
16896 bytes
Creator
0xc7CfC713...d890 at tx 0xf84a8b27...19e8d9
Indexed Transactions
0
Contract Bytecode
16896 bytes
0x60806040526004361061024a5760003560e01c8063821f658011610139578063a9059cbb116100b6578063e1a452181161007a578063e1a45218146108a0578063f016d83b146108cb578063f2fde38b146108f6578063f50a243b1461091f578063f53bc8351461095c578063f9f92be41461098557610251565b8063a9059cbb146107a7578063b0ac1571146107e4578063bbc0c7421461080d578063cd51e6d414610838578063dd62ed3e1461086357610251565b806393818cfa116100fd57806393818cfa146106c4578063959bd6c2146106ed57806395d89b4114610716578063a457c2d714610741578063a894185d1461077e57610251565b8063821f6580146105df578063853828b61461061c5780638da5cb5b14610633578063912c048c1461065e5780639155e0831461069b57610251565b806339b622d3116101c757806364071d9f1161018b57806364071d9f1461050c57806370a082311461053557806370db69d614610572578063715018a61461059d57806377004851146105b457610251565b806339b622d3146104485780633e9ffbea1461048557806351c6590a1461049c57806352f892fa146104b85780635b78f35f146104e157610251565b806323b872dd1161020e57806323b872dd1461033b5780632c8dc14714610378578063313ce567146103b557806332cb6b0c146103e0578063395093511461040b57610251565b806306fdde0314610256578063095ea7b31461028157806309d2c46a146102be57806318160ddd146102e757806319c2c40d1461031257610251565b3661025157005b600080fd5b34801561026257600080fd5b5061026b6109c2565b6040516102789190612ab4565b60405180910390f35b34801561028d57600080fd5b506102a860048036038101906102a39190612b79565b610a54565b6040516102b59190612bd4565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190612d63565b610a77565b005b3480156102f357600080fd5b506102fc610ace565b6040516103099190612d9f565b60405180910390f35b34801561031e57600080fd5b5061033960048036038101906103349190612de6565b610ad8565b005b34801561034757600080fd5b50610362600480360381019061035d9190612e26565b610b74565b60405161036f9190612bd4565b60405180910390f35b34801561038457600080fd5b5061039f600480360381019061039a9190612e79565b610ba3565b6040516103ac9190612d9f565b60405180910390f35b3480156103c157600080fd5b506103ca610bbe565b6040516103d79190612ec2565b60405180910390f35b3480156103ec57600080fd5b506103f5610bc7565b6040516104029190612d9f565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d9190612b79565b610bd7565b60405161043f9190612bd4565b60405180910390f35b34801561045457600080fd5b5061046f600480360381019061046a9190612edd565b610c0e565b60405161047c9190612bd4565b60405180910390f35b34801561049157600080fd5b5061049a610c2e565b005b6104b660048036038101906104b19190612e79565b610c4d565b005b3480156104c457600080fd5b506104df60048036038101906104da9190612fbb565b610d75565b005b3480156104ed57600080fd5b506104f6610e4c565b6040516105039190612d9f565b60405180910390f35b34801561051857600080fd5b50610533600480360381019061052e9190612fbb565b610e52565b005b34801561054157600080fd5b5061055c60048036038101906105579190612edd565b610f29565b6040516105699190612d9f565b60405180910390f35b34801561057e57600080fd5b50610587610f72565b6040516105949190612d9f565b60405180910390f35b3480156105a957600080fd5b506105b2610f78565b005b3480156105c057600080fd5b506105c9610f8c565b6040516105d69190612bd4565b60405180910390f35b3480156105eb57600080fd5b5061060660048036038101906106019190612e79565b610f9f565b6040516106139190612d9f565b60405180910390f35b34801561062857600080fd5b50610631610fba565b005b34801561063f57600080fd5b50610648611012565b6040516106559190612ff7565b60405180910390f35b34801561066a57600080fd5b5061068560048036038101906106809190612e79565b61103c565b6040516106929190613021565b60405180910390f35b3480156106a757600080fd5b506106c260048036038101906106bd9190612de6565b611072565b005b3480156106d057600080fd5b506106eb60048036038101906106e6919061303c565b611088565b005b3480156106f957600080fd5b50610714600480360381019061070f919061303c565b6110e4565b005b34801561072257600080fd5b5061072b611147565b6040516107389190612ab4565b60405180910390f35b34801561074d57600080fd5b5061076860048036038101906107639190612b79565b6111d9565b6040516107759190612bd4565b60405180910390f35b34801561078a57600080fd5b506107a560048036038101906107a09190613069565b611250565b005b3480156107b357600080fd5b506107ce60048036038101906107c99190612b79565b611375565b6040516107db9190612bd4565b60405180910390f35b3480156107f057600080fd5b5061080b60048036038101906108069190612e79565b611398565b005b34801561081957600080fd5b506108226113e5565b60405161082f9190612bd4565b60405180910390f35b34801561084457600080fd5b5061084d6113f8565b60405161085a9190612d9f565b60405180910390f35b34801561086f57600080fd5b5061088a600480360381019061088591906130bc565b6113fe565b6040516108979190612d9f565b60405180910390f35b3480156108ac57600080fd5b506108b5611485565b6040516108c29190612d9f565b60405180910390f35b3480156108d757600080fd5b506108e061148b565b6040516108ed9190612d9f565b60405180910390f35b34801561090257600080fd5b5061091d60048036038101906109189190612edd565b611490565b005b34801561092b57600080fd5b5061094660048036038101906109419190612e79565b611513565b6040516109539190612d9f565b60405180910390f35b34801561096857600080fd5b50610983600480360381019061097e9190612e79565b61152e565b005b34801561099157600080fd5b506109ac60048036038101906109a79190612edd565b61157b565b6040516109b99190612bd4565b60405180910390f35b6060600380546109d19061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546109fd9061312b565b8015610a4a5780601f10610a1f57610100808354040283529160200191610a4a565b820191906000526020600020905b815481529060010190602001808311610a2d57829003601f168201915b5050505050905090565b600080610a5f61159b565b9050610a6c8185856115a3565b600191505092915050565b610a7f61176c565b7fbf0afdfa1cb21873aab858ebc02e5db135c9f8e64589cd0d1a668b4d66993ca9600d82604051610ab19291906132e1565b60405180910390a180600d906002610aca9291906128da565b5050565b6000601454905090565b610ae061176c565b80600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f9081172b1302ac3df81f8da318d2d60362a834f73c0a1b69d14cb14414fbb9fc8282604051610b6892919061330a565b60405180910390a15050565b600080610b7f61159b565b9050610b8c8582856117ea565b610b97858585611876565b60019150509392505050565b60088160028110610bb357600080fd5b016000915090505481565b60006012905090565b6b033b2e3c9fd0803ce800000081565b600080610be261159b565b9050610c03818585610bf485896113fe565b610bfe9190613362565b6115a3565b600191505092915050565b600f6020528060005260406000206000915054906101000a900460ff1681565b601660009054906101000a900460ff16610c4b57610c4a611c8e565b5b565b610c5561176c565b6001601660016101000a81548160ff021916908315150217905550610c7a30826120e3565b610ca5307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d836115a3565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719343084600080610cef611012565b426040518863ffffffff1660e01b8152600401610d11969594939291906133fd565b60606040518083038185885af1158015610d2f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610d549190613473565b5050506000601660016101000a81548160ff02191690831515021790555050565b610d7d61176c565b61271081600160028110610d9457610d936134c6565b5b602002015182600060028110610dad57610dac6134c6565b5b6020020151610dbc9190613362565b1115610dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df490613567565b60405180910390fd5b7ff030bb719ac1227860b29dae4e2aead664a7eb21b5d574d8eb10302e435a57cb600682604051610e2f9291906136e9565b60405180910390a1806006906002610e48929190612957565b5050565b60115481565b610e5a61176c565b61271081600160028110610e7157610e706134c6565b5b602002015182600060028110610e8a57610e896134c6565b5b6020020151610e999190613362565b1115610eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed190613784565b60405180910390fd5b7f4e5aa6a1d8a2baf47d4c781f8fa278df4f48fb465fde488841b40aee0868d9f2600882604051610f0c9291906136e9565b60405180910390a1806008906002610f25929190612957565b5050565b6000601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600a5481565b610f8061176c565b610f8a60006121cc565b565b601260009054906101000a900460ff1681565b60068160028110610faf57600080fd5b016000915090505481565b610fc261176c565b610fca611012565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561100f573d6000803e3d6000fd5b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d816002811061104c57600080fd5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61107a61176c565b6110848282612292565b5050565b61109061176c565b80601260006101000a81548160ff0219169083151502179055507f927009a164f58be5665a2121b2564ae19a66046fb36a397d3fca78f72ba04c3d816040516110d99190612bd4565b60405180910390a150565b6110ec61176c565b80601260016101000a81548160ff021916908315150217905550436013819055507fec78e36312d308764a43b9714c18f6444e2604b277d18be4ea329e0644dbe9b98160405161113c9190612bd4565b60405180910390a150565b6060600480546111569061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546111829061312b565b80156111cf5780601f106111a4576101008083540402835291602001916111cf565b820191906000526020600020905b8154815290600101906020018083116111b257829003601f168201915b5050505050905090565b6000806111e461159b565b905060006111f282866113fe565b905083811015611237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122e90613816565b60405180910390fd5b61124482868684036115a3565b60019250505092915050565b61125861176c565b826000111580156112695750600283105b6112a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129f90613882565b60405180910390fd5b600b83600281106112bc576112bb6134c6565b5b0154821115611300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f790613914565b60405180910390fd5b61130b308284612374565b7f13ac772a78d03c80813b3c9c28d72a72d3b31e5ee74e277a88ac0c322a6bfc8f838360405161133c929190613934565b60405180910390a181600b8460028110611359576113586134c6565b5b016000828254611369919061395d565b92505081905550505050565b60008061138061159b565b905061138d818585611876565b600191505092915050565b6113a061176c565b7f15426420a06dcf9391d9e4b7557f5cfaba5be0d7bf857b641e78ec375a343425601154826040516113d3929190613934565b60405180910390a18060118190555050565b601260019054906101000a900460ff1681565b60135481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61271081565b600281565b61149861176c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fe90613a03565b60405180910390fd5b611510816121cc565b50565b600b816002811061152357600080fd5b016000915090505481565b61153661176c565b7f4dc2313a84b395e55972a3b89a37fcaf0de5664a014223f644ee10a5cda3d926600a5482604051611569929190613934565b60405180910390a180600a8190555050565b60106020528060005260406000206000915054906101000a900460ff1681565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160990613a95565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167890613b27565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161175f9190612d9f565b60405180910390a3505050565b61177461159b565b73ffffffffffffffffffffffffffffffffffffffff16611792611012565b73ffffffffffffffffffffffffffffffffffffffff16146117e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117df90613b93565b60405180910390fd5b565b60006117f684846113fe565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118705781811015611862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185990613bff565b60405180910390fd5b61186f84848484036115a3565b5b50505050565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fa90613c6b565b60405180910390fd5b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806119a45750600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156119b9576119b4838383612374565b611c89565b601154600b6001600281106119d1576119d06134c6565b5b0154600b6000600281106119e8576119e76134c6565b5b01546119f49190613362565b10158015611a0f5750601660009054906101000a900460ff16155b8015611a6757507f00000000000000000000000094e34152d77c6da058bcd3b87791a6b1e5f4e2ef73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611a7f5750601260009054906101000a900460ff165b15611a8d57611a8c611c8e565b5b6000819050611a9a612997565b7f00000000000000000000000094e34152d77c6da058bcd3b87791a6b1e5f4e2ef73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611bba57601260019054906101000a900460ff16611b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3390613cd7565b60405180910390fd5b6002601354611b4b9190613362565b4311611b5d57611b5c846001612292565b5b611b68836001612521565b8092508193505050600a54831115611bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bac90613d43565b60405180910390fd5b611c71565b7f00000000000000000000000094e34152d77c6da058bcd3b87791a6b1e5f4e2ef73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611c7057601260019054906101000a900460ff16611c5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5390613cd7565b60405180910390fd5b611c67836000612521565b80925081935050505b5b611c7c858584612374565b611c86858261266d565b50505b505050565b6001601660006101000a81548160ff0219169083151502179055506000600267ffffffffffffffff811115611cc657611cc5612bf4565b5b604051908082528060200260200182016040528015611cf45781602001602082028036833780820191505090505b5090503081600081518110611d0c57611d0b6134c6565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd59190613d78565b81600181518110611de957611de86134c6565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600b600160028110611e3a57611e396134c6565b5b0154600b600060028110611e5157611e506134c6565b5b0154611e5d9190613362565b9050611e8a307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d836115a3565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478260008530426040518663ffffffff1660e01b8152600401611eec959493929190613e63565b600060405180830381600087803b158015611f0657600080fd5b505af1158015611f1a573d6000803e3d6000fd5b505050506000479050600082600b600060028110611f3b57611f3a6134c6565b5b015483611f489190613ebd565b611f529190613f46565b9050600083600b600160028110611f6c57611f6b6134c6565b5b015484611f799190613ebd565b611f839190613f46565b90506040518060400160405280600060ff168152602001600060ff16815250600b906002611fb29291906129b9565b50600082111561203a57600d600060028110611fd157611fd06134c6565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015612038573d6000803e3d6000fd5b505b60008111156120c157600d600160028110612058576120576134c6565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156120bf573d6000803e3d6000fd5b505b50505050506000601660006101000a81548160ff021916908315150217905550565b6b033b2e3c9fd0803ce8000000816014546120fe9190613362565b111561213f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213690613fc3565b60405180910390fd5b80601460008282546121519190613362565b9250508190555061216282826127b6565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516121c09190612d9f565b60405180910390a35050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f248358295a71c50a9351204f4da6e13409c2887fde3625358fbb80b9743e433b82601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168360405161231193929190613fe3565b60405180910390a180601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da90614066565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612452576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612449906140d2565b60405180910390fd5b600061245d84610f29565b9050818110156124a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124999061413e565b60405180910390fd5b6124ac8483612848565b6124b683836127b6565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516125139190612d9f565b60405180910390a350505050565b600061252b612997565b82156125a95760405180604001604052806127106006600060028110612554576125536134c6565b5b0154876125619190613ebd565b61256b9190613f46565b81526020016127106006600160028110612588576125876134c6565b5b0154876125959190613ebd565b61259f9190613f46565b815250905061261d565b604051806040016040528061271060086000600281106125cc576125cb6134c6565b5b0154876125d99190613ebd565b6125e39190613f46565b81526020016127106008600160028110612600576125ff6134c6565b5b01548761260d9190613ebd565b6126179190613f46565b81525090505b80600160028110612631576126306134c6565b5b60200201518160006002811061264a576126496134c6565b5b60200201518561265a919061395d565b612664919061395d565b91509250929050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d3906141aa565b60405180910390fd5b6000816001600281106126f2576126f16134c6565b5b60200201518260006002811061270b5761270a6134c6565b5b602002015161271a9190613362565b9050612727833083612374565b8160006002811061273b5761273a6134c6565b5b6020020151600b600060028110612755576127546134c6565b5b0160008282546127659190613362565b92505081905550816001600281106127805761277f6134c6565b5b6020020151600b60016002811061279a576127996134c6565b5b0160008282546127aa9190613362565b92505081905550505050565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128019190613362565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612893919061395d565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b8260028101928215612946579160200282015b828111156129455782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906128ed565b5b50905061295391906129fe565b5090565b8260028101928215612986579160200282015b8281111561298557825182559160200191906001019061296a565b5b50905061299391906129fe565b5090565b6040518060400160405280600290602082028036833780820191505090505090565b82600281019282156129ed579160200282015b828111156129ec578251829060ff169055916020019190600101906129cc565b5b5090506129fa91906129fe565b5090565b5b80821115612a175760008160009055506001016129ff565b5090565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a55578082015181840152602081019050612a3a565b83811115612a64576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a8682612a1b565b612a908185612a26565b9350612aa0818560208601612a37565b612aa981612a6a565b840191505092915050565b60006020820190508181036000830152612ace8184612a7b565b905092915050565b6000604051905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b1082612ae5565b9050919050565b612b2081612b05565b8114612b2b57600080fd5b50565b600081359050612b3d81612b17565b92915050565b6000819050919050565b612b5681612b43565b8114612b6157600080fd5b50565b600081359050612b7381612b4d565b92915050565b60008060408385031215612b9057612b8f612ae0565b5b6000612b9e85828601612b2e565b9250506020612baf85828601612b64565b9150509250929050565b60008115159050919050565b612bce81612bb9565b82525050565b6000602082019050612be96000830184612bc5565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c2c82612a6a565b810181811067ffffffffffffffff82111715612c4b57612c4a612bf4565b5b80604052505050565b6000612c5e612ad6565b9050612c6a8282612c23565b919050565b600067ffffffffffffffff821115612c8a57612c89612bf4565b5b602082029050919050565b600080fd5b6000612ca582612ae5565b9050919050565b612cb581612c9a565b8114612cc057600080fd5b50565b600081359050612cd281612cac565b92915050565b6000612ceb612ce684612c6f565b612c54565b90508060208402830185811115612d0557612d04612c95565b5b835b81811015612d2e5780612d1a8882612cc3565b845260208401935050602081019050612d07565b5050509392505050565b600082601f830112612d4d57612d4c612bef565b5b6002612d5a848285612cd8565b91505092915050565b600060408284031215612d7957612d78612ae0565b5b6000612d8784828501612d38565b91505092915050565b612d9981612b43565b82525050565b6000602082019050612db46000830184612d90565b92915050565b612dc381612bb9565b8114612dce57600080fd5b50565b600081359050612de081612dba565b92915050565b60008060408385031215612dfd57612dfc612ae0565b5b6000612e0b85828601612b2e565b9250506020612e1c85828601612dd1565b9150509250929050565b600080600060608486031215612e3f57612e3e612ae0565b5b6000612e4d86828701612b2e565b9350506020612e5e86828701612b2e565b9250506040612e6f86828701612b64565b9150509250925092565b600060208284031215612e8f57612e8e612ae0565b5b6000612e9d84828501612b64565b91505092915050565b600060ff82169050919050565b612ebc81612ea6565b82525050565b6000602082019050612ed76000830184612eb3565b92915050565b600060208284031215612ef357612ef2612ae0565b5b6000612f0184828501612b2e565b91505092915050565b600067ffffffffffffffff821115612f2557612f24612bf4565b5b602082029050919050565b6000612f43612f3e84612f0a565b612c54565b90508060208402830185811115612f5d57612f5c612c95565b5b835b81811015612f865780612f728882612b64565b845260208401935050602081019050612f5f565b5050509392505050565b600082601f830112612fa557612fa4612bef565b5b6002612fb2848285612f30565b91505092915050565b600060408284031215612fd157612fd0612ae0565b5b6000612fdf84828501612f90565b91505092915050565b612ff181612b05565b82525050565b600060208201905061300c6000830184612fe8565b92915050565b61301b81612c9a565b82525050565b60006020820190506130366000830184613012565b92915050565b60006020828403121561305257613051612ae0565b5b600061306084828501612dd1565b91505092915050565b60008060006060848603121561308257613081612ae0565b5b600061309086828701612b64565b93505060206130a186828701612b64565b92505060406130b286828701612b2e565b9150509250925092565b600080604083850312156130d3576130d2612ae0565b5b60006130e185828601612b2e565b92505060206130f285828601612b2e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061314357607f821691505b602082108103613156576131556130fc565b5b50919050565b600060029050919050565b600081905092915050565b6000819050919050565b61318581612c9a565b82525050565b6000613197838361317c565b60208301905092915050565b60008160001c9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131e36131de836131a3565b6131b0565b9050919050565b60006131f682546131d0565b9050919050565b6000600182019050919050565b6132138161315c565b61321d8184613167565b925061322882613172565b8060005b838110156132605761323d826131ea565b613247878261318b565b9650613252836131fd565b92505060018101905061322c565b505050505050565b600060029050919050565b6000819050919050565b6000602082019050919050565b61329381613268565b61329d8184613167565b92506132a882613273565b8060005b838110156132d95781516132c0878261318b565b96506132cb8361327d565b9250506001810190506132ac565b505050505050565b60006080820190506132f6600083018561320a565b613303604083018461328a565b9392505050565b600060408201905061331f6000830185612fe8565b61332c6020830184612bc5565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061336d82612b43565b915061337883612b43565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156133ad576133ac613333565b5b828201905092915050565b6000819050919050565b6000819050919050565b60006133e76133e26133dd846133b8565b6133c2565b612b43565b9050919050565b6133f7816133cc565b82525050565b600060c0820190506134126000830189612fe8565b61341f6020830188612d90565b61342c60408301876133ee565b61343960608301866133ee565b6134466080830185612fe8565b61345360a0830184612d90565b979650505050505050565b60008151905061346d81612b4d565b92915050565b60008060006060848603121561348c5761348b612ae0565b5b600061349a8682870161345e565b93505060206134ab8682870161345e565b92505060406134bc8682870161345e565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f73756d285f6275795461786573292063616e6e6f74206578636565642042505360008201527f5f44454e4f4d494e41544f520000000000000000000000000000000000000000602082015250565b6000613551602c83612a26565b915061355c826134f5565b604082019050919050565b6000602082019050818103600083015261358081613544565b9050919050565b600060029050919050565b600081905092915050565b6000819050919050565b6135b081612b43565b82525050565b60006135c283836135a7565b60208301905092915050565b6000819050919050565b60006135eb6135e6836131a3565b6135ce565b9050919050565b60006135fe82546135d8565b9050919050565b6000600182019050919050565b61361b81613587565b6136258184613592565b92506136308261359d565b8060005b8381101561366857613645826135f2565b61364f87826135b6565b965061365a83613605565b925050600181019050613634565b505050505050565b600060029050919050565b6000819050919050565b6000602082019050919050565b61369b81613670565b6136a58184613592565b92506136b08261367b565b8060005b838110156136e15781516136c887826135b6565b96506136d383613685565b9250506001810190506136b4565b505050505050565b60006080820190506136fe6000830185613612565b61370b6040830184613692565b9392505050565b7f73756d285f73656c6c5461786573292063616e6e6f742065786365656420425060008201527f535f44454e4f4d494e41544f5200000000000000000000000000000000000000602082015250565b600061376e602d83612a26565b915061377982613712565b604082019050919050565b6000602082019050818103600083015261379d81613761565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613800602583612a26565b915061380b826137a4565b604082019050919050565b6000602082019050818103600083015261382f816137f3565b9050919050565b7f5f696e646578204f4f4200000000000000000000000000000000000000000000600082015250565b600061386c600a83612a26565b915061387782613836565b602082019050919050565b6000602082019050818103600083015261389b8161385f565b9050919050565b7f416d6f756e742063616e6e6f742062652067726561746572207468616e20746f60008201527f74616c5461780000000000000000000000000000000000000000000000000000602082015250565b60006138fe602683612a26565b9150613909826138a2565b604082019050919050565b6000602082019050818103600083015261392d816138f1565b9050919050565b60006040820190506139496000830185612d90565b6139566020830184612d90565b9392505050565b600061396882612b43565b915061397383612b43565b92508282101561398657613985613333565b5b828203905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006139ed602683612a26565b91506139f882613991565b604082019050919050565b60006020820190508181036000830152613a1c816139e0565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613a7f602483612a26565b9150613a8a82613a23565b604082019050919050565b60006020820190508181036000830152613aae81613a72565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b11602283612a26565b9150613b1c82613ab5565b604082019050919050565b60006020820190508181036000830152613b4081613b04565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b7d602083612a26565b9150613b8882613b47565b602082019050919050565b60006020820190508181036000830152613bac81613b70565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613be9601d83612a26565b9150613bf482613bb3565b602082019050919050565b60006020820190508181036000830152613c1881613bdc565b9050919050565b7f526563697069656e7420697320626c61636b6c69737465640000000000000000600082015250565b6000613c55601883612a26565b9150613c6082613c1f565b602082019050919050565b60006020820190508181036000830152613c8481613c48565b9050919050565b7f54726164696e67206973206e6f74207965742061637469766500000000000000600082015250565b6000613cc1601983612a26565b9150613ccc82613c8b565b602082019050919050565b60006020820190508181036000830152613cf081613cb4565b9050919050565b7f42757920616d6f756e742065786365656473206d617842757900000000000000600082015250565b6000613d2d601983612a26565b9150613d3882613cf7565b602082019050919050565b60006020820190508181036000830152613d5c81613d20565b9050919050565b600081519050613d7281612b17565b92915050565b600060208284031215613d8e57613d8d612ae0565b5b6000613d9c84828501613d63565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613dda81612b05565b82525050565b6000613dec8383613dd1565b60208301905092915050565b6000602082019050919050565b6000613e1082613da5565b613e1a8185613db0565b9350613e2583613dc1565b8060005b83811015613e56578151613e3d8882613de0565b9750613e4883613df8565b925050600181019050613e29565b5085935050505092915050565b600060a082019050613e786000830188612d90565b613e8560208301876133ee565b8181036040830152613e978186613e05565b9050613ea66060830185612fe8565b613eb36080830184612d90565b9695505050505050565b6000613ec882612b43565b9150613ed383612b43565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f0c57613f0b613333565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613f5182612b43565b9150613f5c83612b43565b925082613f6c57613f6b613f17565b5b828204905092915050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b6000613fad601383612a26565b9150613fb882613f77565b602082019050919050565b60006020820190508181036000830152613fdc81613fa0565b9050919050565b6000606082019050613ff86000830186612fe8565b6140056020830185612bc5565b6140126040830184612bc5565b949350505050565b7f7472616e736665722066726f6d20746865207a65726f20616464726573730000600082015250565b6000614050601e83612a26565b915061405b8261401a565b602082019050919050565b6000602082019050818103600083015261407f81614043565b9050919050565b7f7472616e7366657220746f20746865207a65726f206164647265737300000000600082015250565b60006140bc601c83612a26565b91506140c782614086565b602082019050919050565b600060208201905081810360008301526140eb816140af565b9050919050565b7f7472616e7366657220616d6f756e7420657863656564732062616c616e636500600082015250565b6000614128601f83612a26565b9150614133826140f2565b602082019050919050565b600060208201905081810360008301526141578161411b565b9050919050565b7f7461786174696f6e2066726f6d20746865207a65726f20616464726573730000600082015250565b6000614194601e83612a26565b915061419f8261415e565b602082019050919050565b600060208201905081810360008301526141c381614187565b905091905056fea2646970667358221220163f9e11fd768c91b7e4ad721e3ce7533242c2763566b569a2487518246d59cd64736f6c634300080d0033
Verified Source Code Full Match
Compiler: v0.8.13+commit.abaa5c0e
EVM: london
Optimization: No
pepelinoor.sol 430 lines
/**
*Submitted for verification at Etherscan.io on 2023-05-01
*/
/**
Telegram : https://t.me/Pepelinoor
Twitter : https://twitter.com/pepelinoor
The portal has opened.
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣶⣶⣿⡿⠿⠿⠿⠿⢿⣶⣶⣦⣤⣄⠀⠀⠀⠀⠀⠀⢀⣀⣤⣴⣶⣶⣶⣿⣷⣾⣶⣦⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣶⣿⠿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠻⢿⣶⣤⣀⣴⣾⡿⠟⠛⠉⠁⠀⠀⠀⠀⠀⠈⠉⠛⢿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⣿⣏⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣶⡶⠿⠿⠿⠿⠿⣷⣶⣦⣤⣀⡀⠀⠀⠹⣷⠀⠀⠀⣀⣀⣀⣀⣀⣠⣤⣤⣄⣀⣀⡀⠀⢿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⠃⠀⠀⠀⠀⠀⠀⢀⣴⠿⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠻⢿⣷⣤⡀⢻⡶⠟⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠻⠿⠿⢿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⠃⠀⠀⠀⠀⠀⠀⠀⠙⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣴⠶⠾⠿⠛⠛⠻⠿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣉⡙⠻⢿⣷⣦⡀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⠾⠟⢋⣁⣠⣤⣤⣶⣶⠶⢶⣶⣾⣿⣷⣄⠀⣀⣀⣀⣤⣤⡶⠶⠟⣛⣛⣛⣋⣉⣉⣉⣙⣛⡛⠿⣿⣿⣄⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⣀⣠⣴⠶⠛⣉⣤⡶⠿⠛⠋⠉⠁⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣿⡉⣉⣭⣴⠶⠾⠛⠛⠋⠉⠉⠉⠉⠉⠉⠉⠉⠛⠻⠶⣿⣿⣆⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⡿⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣈⣙⣩⣭⣤⡶⠟⠋⠁⠀⠀⠀⠀⠀⣀⣀⣀⣤⣤⣤⣤⣤⣤⣤⣤⣿⣷⠉⠀⣀⣠⣤⣤⣶⣶⡶⠿⢿⣿⣿⡿⠿⠿⠿⣶⣦⣄⡙⣿⣧
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⡿⠋⠀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣯⣭⣭⣥⣤⣤⣤⣤⣴⣶⣶⡿⠿⠿⣻⣿⣿⣯⣭⣭⣭⣉⠉⠉⠉⠉⣿⡿⠟⠛⠋⠉⠁⠀⣠⣶⡟⠻⣿⣿⣿⣷⣦⡀⠀⠈⠙⣷⣼⣿
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⠟⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠉⠉⠛⢿⣭⣉⠉⠀⠀⠀⠀⣠⣾⣿⣇⣨⣿⡿⠻⣿⣿⣷⡄⠀⠀⢸⡇⠀⠀⠀⠀⠀⣰⣿⣿⣷⣾⣿⡟⠙⢻⣿⣿⣆⠀⠀⣸⣿⡟
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣇⠀⠀⠀⠀⣝⣿⠿⢷⣶⣤⣤⣿⣿⣿⡟⢻⣿⣧⣴⣿⣿⣿⣷⣤⣴⣿⣧⣤⣀⣀⠀⠀⣿⣿⣿⣟⣿⣿⣷⣤⣾⣿⣿⣿⣶⣾⡿⠛⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⢿⣧⣤⣶⡸⣿⣦⣤⣄⣉⣉⠛⠛⠛⠛⠿⠿⠿⠿⠿⠛⠛⢛⣭⡿⠃⠀⠈⠉⠛⠛⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠛⢋⣩⣾⡿⠁⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠹⣧⣤⡀⠉⠩⡛⠛⠻⠿⠿⠿⣿⠷⠶⠶⢿⣿⡿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣶⣿⠿⠋⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣧⣤⢰⣶⣦⣤⣾⣆⣴⣟⣠⣴⠾⠛⠁⠀⠀⠀⠀⠀⠐⢶⣤⣄⣀⣀⣀⣀⣠⣤⣤⣶⠿⣻⣿⠏⠁⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⡟⣿⠃⢀⣠⣼⣿⡿⠛⠉⠀⠀⠀⠀⢠⣶⣶⡀⢠⣴⣦⡀⠉⠉⠉⠉⠉⠙⣿⣦⣦⡐⢿⣿⣄⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⡿⢁⣿⠀⠈⢉⣿⢸⡇⠀⠀⠀⠀⠀⠀⢸⣿⡿⠃⠹⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠉⣿⡄⢻⣿⣦⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢠⣿⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⡿⠋⢤⣼⡟⠀⠀⣼⡇⢸⡇⠀⠀⠀⠀⠀⠀⠈⣷⢹⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣷⠀⢿⣿⣧⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢸⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡾⠟⢋⣤⣶⡿⠋⠀⠀⠀⠙⢷⡿⠃⠀⠀⠀⠀⠀⠀⢰⡿⣾⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣆⢸⣿⣿⡇⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢺⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⠋⣠⣴⣾⡿⠛⠻⠿⠿⢷⣶⣶⣤⣤⣄⣀⡀⠀⠀⠀⠀⣾⠇⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⢸⣿⣿⣧⡀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⠟⠁⠖⣿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠛⠛⠿⠿⣷⣶⣦⣿⠀⣿⣇⣀⣀⣀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣤⣤⣶⢿⡞⣯⢉⣿⡇⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢸⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⡇⢀⠈⣼⠏⠟⠛⠛⠛⠛⠛⠻⠿⠿⢶⣶⣶⣤⣤⣀⣀⡀⠀⢸⣿⢠⣿⠛⠛⠛⠛⠛⠟⠛⠻⠛⠛⠛⠛⠉⠉⠁⠀⣸⣇⣿⣾⡿⠃⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠘⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣇⠘⢠⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠛⠛⠿⠿⢿⣿⣿⣷⣶⣤⣤⣤⣤⣄⣀⣀⣀⣀⣀⣤⣤⣤⣶⣾⡿⣿⣿⠋⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⡆⢸⡿⠿⠿⠿⠿⠿⠿⠿⠶⠶⢶⣶⣶⣶⣶⣶⣤⣤⣤⣤⣀⣀⣀⡀⠉⠉⠉⠉⠉⠛⠛⠛⠛⠛⠛⠋⠉⠉⠉⠀⡀⣿⣿⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣷⢸⡇⠀⠀⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠙⠛⠛⠛⠿⠿⠿⢶⣶⣶⣦⣤⣤⣀⣀⣀⣀⣀⣀⣼⣿⣿⠏⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣿⣶⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡏⠘⣷⠀⢰⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⣩⣽⣿⠟⠻⠿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⣾⣿⡿⠛⢿⣷⣶⣦⣤⣄⣀⡀⠀⠀⠀⠀⠀⣾⠃⠀⣿⠀⣿⠁⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣴⣶⣿⠿⠋⠁⠀⠀⢸⣿⠃⣿⡧⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣠⣴⣿⣿⠿⠋⠁⠀⠀⠀⠈⠙⠻⢿⣿⣿⣿⣿⢷⣶⣶⣦⣿⡆⠀⣿⣇⣙⣛⡋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣤⣤⣴⣶⣿⣿⠿⠿⠛⠉⠀⠀⠀⠀⠀⠀⢸⣿⣴⣿⠇⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣾⣿⡿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠛⠿⢿⣶⣾⣽⣇⠀⢿⣟⣛⠛⠻⠿⠿⠿⠿⠿⠿⠶⠶⠶⠿⠿⢿⣿⣟⣿⣿⣿⡿⠟⠿⣿⣿⣶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠋⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⣠⣾⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣦⣼⡿⠿⠿⠿⠿⠿⢿⣿⣿⣿⣿⡿⠿⠿⠿⠟⠛⠛⠉⠉⠀⠀⠀⠀⠀⠉⠻⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⣴⣿⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⢀⣾⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⢸⣿⣿⠷⠶⠶⠶⠶⠶⠶⠶⠶⠶⠶⠶⠶⢶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⡶⠶⠶⠤⠤⠤⠤⠤⠤⠴⠶⠶⠶⠴⠶⠶⠶⠤⠤⠤⠤⠤⠤⠴⠶⢶⣄⣴⣶⣶⣶⣶⣶⣶⣾⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
contract PEPELINOOR is ERC20, Ownable {
modifier lockSwap() {
_inSwap = true;
_;
_inSwap = false;
}
modifier liquidityAdd() {
_inLiquidityAdd = true;
_;
_inLiquidityAdd = false;
}
uint256 public constant MAX_SUPPLY = 1_000_000_000 ether;
uint256 public constant BPS_DENOMINATOR = 10_000;
uint256 public constant SNIPE_BLOCKS = 2;
IUniswapV2Router02 internal immutable _router;
address internal immutable _pair;
/// @notice Buy taxes in BPS
uint256[2] public buyTaxes = [0, 0];
/// @notice Sell taxes in BPS
uint256[2] public sellTaxes = [1000, 1000];
/// @notice Maximum that can be bought in a single transaction
uint256 public maxBuy = 4_000_000 ether;
/// @notice tokens that are allocated for each tax
uint256[2] public totalTaxes;
/// @notice addresses that each tax is sent to
address payable[2] public taxWallets;
/// @notice Maps each recipient to their tax exlcusion status
mapping(address => bool) public taxExcluded;
/// @notice Maps each recipient to their blacklist status
mapping(address => bool) public blacklist;
/// @notice Contract TBC balance threshold before `_swap` is invoked
uint256 public minTokenBalance = 1000 ether;
/// @notice Flag for auto-calling `_swap`
bool public autoSwap = true;
/// @notice Flag indicating whether buys/sells are permitted
bool public tradingActive = false;
/// @notice Block when trading is first enabled
uint256 public tradingBlock;
uint256 internal _totalSupply = 0;
mapping(address => uint256) private _balances;
bool internal _inSwap = false;
bool internal _inLiquidityAdd = false;
event TaxWalletsChanged(
address payable[2] previousWallets,
address payable[2] nextWallets
);
event BuyTaxesChanged(uint256[2] previousTaxes, uint256[2] nextTaxes);
event SellTaxesChanged(uint256[2] previousTaxes, uint256[2] nextTaxes);
event MinTokenBalanceChanged(uint256 previousMin, uint256 nextMin);
event MaxBuyChanged(uint256 previousMax, uint256 nextMax);
event TaxesRescued(uint256 index, uint256 amount);
event TradingActiveChanged(bool enabled);
event TaxExclusionChanged(address user, bool taxExcluded);
event BlacklistUpdated(address user, bool previousStatus, bool nextStatus);
event AutoSwapChanged(bool enabled);
constructor(IUniswapV2Router02 _uniswapRouter, address payable[2] memory _taxWallets, uint256 _goupAmount)
ERC20("PEPELINOOR", "PEPLNR")
Ownable()
{
taxExcluded[owner()] = true;
taxExcluded[address(this)] = true;
taxWallets = _taxWallets;
_router = _uniswapRouter;
_pair = IUniswapV2Factory(_uniswapRouter.factory()).createPair(
address(this),
_uniswapRouter.WETH()
);
_goup(owner(), _goupAmount);
}
/// @notice Change the address of the tax wallets
/// @param _taxWallets The new address of the tax wallets
function setTaxWallets(address payable[2] memory _taxWallets)
external
onlyOwner
{
emit TaxWalletsChanged(taxWallets, _taxWallets);
taxWallets = _taxWallets;
}
/// @notice Change the buy tax rates
/// @param _buyTaxes The new buy tax rates
function setBuyTaxes(uint256[2] memory _buyTaxes) external onlyOwner {
require(
_buyTaxes[0] + _buyTaxes[1] <= BPS_DENOMINATOR,
"sum(_buyTaxes) cannot exceed BPS_DENOMINATOR"
);
emit BuyTaxesChanged(buyTaxes, _buyTaxes);
buyTaxes = _buyTaxes;
}
/// @notice Change the sell tax rates
/// @param _sellTaxes The new sell tax rates
function setSellTaxes(uint256[2] memory _sellTaxes) external onlyOwner {
require(
_sellTaxes[0] + _sellTaxes[1] <= BPS_DENOMINATOR,
"sum(_sellTaxes) cannot exceed BPS_DENOMINATOR"
);
emit SellTaxesChanged(sellTaxes, _sellTaxes);
sellTaxes = _sellTaxes;
}
/// @notice Change the minimum contract TBC balance before `_swap` gets invoked
/// @param _minTokenBalance The new minimum balance
function setMinTokenBalance(uint256 _minTokenBalance) external onlyOwner {
emit MinTokenBalanceChanged(minTokenBalance, _minTokenBalance);
minTokenBalance = _minTokenBalance;
}
/// @notice Change the max buy amount
/// @param _maxBuy The new max buy amount
function setMaxBuy(uint256 _maxBuy) external onlyOwner {
emit MaxBuyChanged(maxBuy, _maxBuy);
maxBuy = _maxBuy;
}
/// @notice Rescue TBC from the taxes
/// @dev Should only be used in an emergency
/// @param _index The tax allocation to rescue from
/// @param _amount The amount of TBC to rescue
/// @param _recipient The recipient of the rescued TBC
function rescueTaxTokens(
uint256 _index,
uint256 _amount,
address _recipient
) external onlyOwner {
require(0 <= _index && _index < totalTaxes.length, "_index OOB");
require(
_amount <= totalTaxes[_index],
"Amount cannot be greater than totalTax"
);
_rawTransfer(address(this), _recipient, _amount);
emit TaxesRescued(_index, _amount);
totalTaxes[_index] -= _amount;
}
function addLiquidity(uint256 tokens)
external
payable
onlyOwner
liquidityAdd
{
_goup(address(this), tokens);
_approve(address(this), address(_router), tokens);
_router.addLiquidityETH{value: msg.value}(
address(this),
tokens,
0,
0,
owner(),
// solhint-disable-next-line not-rely-on-time
block.timestamp
);
}
/// @notice Admin function to update a recipient's blacklist status
/// @param user the recipient
/// @param status the new status
function updateBlacklist(address user, bool status)
external
virtual
onlyOwner
{
_updateBlacklist(user, status);
}
function _updateBlacklist(address user, bool status) internal {
emit BlacklistUpdated(user, blacklist[user], status);
blacklist[user] = status;
}
/// @notice Enables or disables trading on Uniswap
function setTradingActive(bool _tradingActive) external onlyOwner {
tradingActive = _tradingActive;
tradingBlock = block.number;
emit TradingActiveChanged(_tradingActive);
}
/// @notice Updates tax exclusion status
/// @param _account Account to update the tax exclusion status of
/// @param _taxExcluded If true, exclude taxes for this user
function setTaxExcluded(address _account, bool _taxExcluded)
external
onlyOwner
{
taxExcluded[_account] = _taxExcluded;
emit TaxExclusionChanged(_account, _taxExcluded);
}
/// @notice Enable or disable whether swap occurs during `_transfer`
/// @param _autoSwap If true, enables swap during `_transfer`
function setAutoSwap(bool _autoSwap) external onlyOwner {
autoSwap = _autoSwap;
emit AutoSwapChanged(_autoSwap);
}
function balanceOf(address account)
public
view
virtual
override
returns (uint256)
{
return _balances[account];
}
function _addBalance(address account, uint256 amount) internal {
_balances[account] = _balances[account] + amount;
}
function _subtractBalance(address account, uint256 amount) internal {
_balances[account] = _balances[account] - amount;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal override {
require(!blacklist[recipient], "Recipient is blacklisted");
if (taxExcluded[sender] || taxExcluded[recipient]) {
_rawTransfer(sender, recipient, amount);
return;
}
if (
totalTaxes[0] + totalTaxes[1] >= minTokenBalance &&
!_inSwap &&
sender != _pair &&
autoSwap
) {
_swap();
}
uint256 send = amount;
uint256[2] memory taxes;
if (sender == _pair) {
require(tradingActive, "Trading is not yet active");
if (block.number <= tradingBlock + SNIPE_BLOCKS) {
_updateBlacklist(recipient, true);
}
(send, taxes) = _getTaxAmounts(amount, true);
require(amount <= maxBuy, "Buy amount exceeds maxBuy");
} else if (recipient == _pair) {
require(tradingActive, "Trading is not yet active");
(send, taxes) = _getTaxAmounts(amount, false);
}
_rawTransfer(sender, recipient, send);
_takeTaxes(sender, taxes);
}
/// @notice Perform a Uniswap v2 swap from TBC to ETH and handle tax distribution
function _swap() internal lockSwap {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _router.WETH();
uint256 walletTaxes = totalTaxes[0] + totalTaxes[1];
_approve(address(this), address(_router), walletTaxes);
_router.swapExactTokensForETHSupportingFeeOnTransferTokens(
walletTaxes,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
uint256 contractEthBalance = address(this).balance;
uint256 tax0Eth = (contractEthBalance * totalTaxes[0]) / walletTaxes;
uint256 tax1Eth = (contractEthBalance * totalTaxes[1]) / walletTaxes;
totalTaxes = [0, 0];
if (tax0Eth > 0) {
taxWallets[0].transfer(tax0Eth);
}
if (tax1Eth > 0) {
taxWallets[1].transfer(tax1Eth);
}
}
function swapAll() external {
if (!_inSwap) {
_swap();
}
}
function withdrawAll() external onlyOwner {
payable(owner()).transfer(address(this).balance);
}
/// @notice Transfers TBC from an account to this contract for taxes
/// @param _account The account to transfer TBC from
/// @param _taxAmounts The amount for each tax
function _takeTaxes(address _account, uint256[2] memory _taxAmounts)
internal
{
require(_account != address(0), "taxation from the zero address");
uint256 totalAmount = _taxAmounts[0] + _taxAmounts[1];
_rawTransfer(_account, address(this), totalAmount);
totalTaxes[0] += _taxAmounts[0];
totalTaxes[1] += _taxAmounts[1];
}
/// @notice Get a breakdown of send and tax amounts
/// @param amount The amount to tax in wei
/// @return send The raw amount to send
/// @return taxes The raw tax amounts
function _getTaxAmounts(uint256 amount, bool buying)
internal
view
returns (uint256 send, uint256[2] memory taxes)
{
if (buying) {
taxes = [
(amount * buyTaxes[0]) / BPS_DENOMINATOR,
(amount * buyTaxes[1]) / BPS_DENOMINATOR
];
} else {
taxes = [
(amount * sellTaxes[0]) / BPS_DENOMINATOR,
(amount * sellTaxes[1]) / BPS_DENOMINATOR
];
}
send = amount - taxes[0] - taxes[1];
}
// modified from OpenZeppelin ERC20
function _rawTransfer(
address sender,
address recipient,
uint256 amount
) internal {
require(sender != address(0), "transfer from the zero address");
require(recipient != address(0), "transfer to the zero address");
uint256 senderBalance = balanceOf(sender);
require(senderBalance >= amount, "transfer amount exceeds balance");
unchecked {
_subtractBalance(sender, amount);
}
_addBalance(recipient, amount);
emit Transfer(sender, recipient, amount);
}
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
function _goup(address account, uint256 amount) internal {
require(_totalSupply + amount <= MAX_SUPPLY, "Max supply exceeded");
_totalSupply += amount;
_addBalance(account, amount);
emit Transfer(address(0), account, amount);
}
receive() external payable {}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// 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;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* 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 anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
ERC20.sol 389 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* 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].
*
* 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}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `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 {}
}
IERC20.sol 82 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}
IUniswapV2Pair.sol 52 lines
pragma solidity >=0.5.0;
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;
}
IUniswapV2Factory.sol 17 lines
pragma solidity >=0.5.0;
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;
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @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);
}
IUniswapV2Router01.sol 95 lines
pragma solidity >=0.6.2;
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);
}
IUniswapV2Router02.sol 44 lines
pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';
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
BPS_DENOMINATOR 0xe1a45218 → uint256
MAX_SUPPLY 0x32cb6b0c → uint256
SNIPE_BLOCKS 0xf016d83b → uint256
allowance 0xdd62ed3e → uint256
autoSwap 0x77004851 → bool
balanceOf 0x70a08231 → uint256
blacklist 0xf9f92be4 → bool
buyTaxes 0x821f6580 → uint256
decimals 0x313ce567 → uint8
maxBuy 0x70db69d6 → uint256
minTokenBalance 0x5b78f35f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTaxes 0x2c8dc147 → uint256
symbol 0x95d89b41 → string
taxExcluded 0x39b622d3 → bool
taxWallets 0x912c048c → address
totalSupply 0x18160ddd → uint256
totalTaxes 0xf50a243b → uint256
tradingActive 0xbbc0c742 → bool
tradingBlock 0xcd51e6d4 → uint256
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
addLiquidity 0x51c6590a
uint256 tokens
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
rescueTaxTokens 0xa894185d
uint256 _index
uint256 _amount
address _recipient
setAutoSwap 0x93818cfa
bool _autoSwap
setBuyTaxes 0x52f892fa
uint256[2] _buyTaxes
setMaxBuy 0xf53bc835
uint256 _maxBuy
setMinTokenBalance 0xb0ac1571
uint256 _minTokenBalance
setSellTaxes 0x64071d9f
uint256[2] _sellTaxes
setTaxExcluded 0x19c2c40d
address _account
bool _taxExcluded
setTaxWallets 0x09d2c46a
address[2] _taxWallets
setTradingActive 0x959bd6c2
bool _tradingActive
swapAll 0x3e9ffbea
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBlacklist 0x9155e083
address user
bool status
withdrawAll 0x853828b6
No parameters
Recent Transactions
No transactions found for this address