Address Contract Verified
Address
0xbc5bf1E64B89deFc8491305d43175751bEB58948
Balance
0 ETH
Nonce
1
Code Size
12155 bytes
Creator
0x11587297...B829 at tx 0x8ce34ec4...540c6b
Indexed Transactions
0 (1 on-chain, 0.8% indexed)
Contract Bytecode
12155 bytes
0x608060405260043610610169575f3560e01c8063715018a6116100d057806395d89b4111610089578063d081180711610063578063d0811807146104d0578063dd62ed3e146104fa578063eae614cc14610536578063f2fde38b1461056057610170565b806395d89b4114610440578063a9059cbb1461046a578063b3f00674146104a657610170565b8063715018a61461038c578063751039fc146103a25780638062a8e7146103b85780638a8c523c146103e25780638da5cb5b146103ec5780638f3fa8601461041657610170565b8063313ce56711610122578063313ce567146102805780633198040a146102aa57806332972e46146102d45780633852a557146102fe57806369ff18731461032657806370a082311461035057610170565b806306fdde0314610174578063095ea7b31461019e5780631678e6f8146101da57806317ccb1bf1461020457806318160ddd1461021a57806323b872dd1461024457610170565b3661017057005b5f5ffd5b34801561017f575f5ffd5b50610188610588565b604051610195919061209e565b60405180910390f35b3480156101a9575f5ffd5b506101c460048036038101906101bf919061214f565b610618565b6040516101d191906121a7565b60405180910390f35b3480156101e5575f5ffd5b506101ee61063a565b6040516101fb91906121cf565b60405180910390f35b34801561020f575f5ffd5b50610218610640565b005b348015610225575f5ffd5b5061022e610722565b60405161023b91906121cf565b60405180910390f35b34801561024f575f5ffd5b5061026a600480360381019061026591906121e8565b61072b565b60405161027791906121a7565b60405180910390f35b34801561028b575f5ffd5b50610294610759565b6040516102a19190612253565b60405180910390f35b3480156102b5575f5ffd5b506102be610761565b6040516102cb919061227b565b60405180910390f35b3480156102df575f5ffd5b506102e8610786565b6040516102f5919061227b565b60405180910390f35b348015610309575f5ffd5b50610324600480360381019061031f9190612294565b6107ab565b005b348015610331575f5ffd5b5061033a610839565b60405161034791906121cf565b60405180910390f35b34801561035b575f5ffd5b50610376600480360381019061037191906122d2565b61083f565b60405161038391906121cf565b60405180910390f35b348015610397575f5ffd5b506103a0610884565b005b3480156103ad575f5ffd5b506103b661090b565b005b3480156103c3575f5ffd5b506103cc610997565b6040516103d991906121cf565b60405180910390f35b6103ea61099d565b005b3480156103f7575f5ffd5b50610400610cab565b60405161040d919061227b565b60405180910390f35b348015610421575f5ffd5b5061042a610cd3565b60405161043791906121cf565b60405180910390f35b34801561044b575f5ffd5b50610454610cd9565b604051610461919061209e565b60405180910390f35b348015610475575f5ffd5b50610490600480360381019061048b919061214f565b610d69565b60405161049d91906121a7565b60405180910390f35b3480156104b1575f5ffd5b506104ba610d8b565b6040516104c7919061227b565b60405180910390f35b3480156104db575f5ffd5b506104e4610daf565b6040516104f191906121cf565b60405180910390f35b348015610505575f5ffd5b50610520600480360381019061051b91906122fd565b610db5565b60405161052d91906121cf565b60405180910390f35b348015610541575f5ffd5b5061054a610e37565b604051610557919061227b565b60405180910390f35b34801561056b575f5ffd5b50610586600480360381019061058191906122d2565b610e5c565b005b60606003805461059790612368565b80601f01602080910402602001604051908101604052809291908181526020018280546105c390612368565b801561060e5780601f106105e55761010080835404028352916020019161060e565b820191905f5260205f20905b8154815290600101906020018083116105f157829003601f168201915b5050505050905090565b5f5f610622610f52565b905061062f818585610f59565b600191505092915050565b600d5481565b610648610f52565b73ffffffffffffffffffffffffffffffffffffffff16610666610cab565b73ffffffffffffffffffffffffffffffffffffffff16146106bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b3906123e2565b60405180910390fd5b7f00000000000000000000000011587297ebf95b9270f0b9427cdeb17830b0b82973ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f1935050505015801561071f573d5f5f3e3d5ffd5b50565b5f600254905090565b5f5f610735610f52565b905061074285828561111c565b61074d8585856111a7565b60019150509392505050565b5f6009905090565b60125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107b3610f52565b73ffffffffffffffffffffffffffffffffffffffff166107d1610cab565b73ffffffffffffffffffffffffffffffffffffffff1614610827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081e906123e2565b60405180910390fd5b81600881905550806009819055505050565b60115481565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61088c610f52565b73ffffffffffffffffffffffffffffffffffffffff166108aa610cab565b73ffffffffffffffffffffffffffffffffffffffff1614610900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f7906123e2565b60405180910390fd5b6109095f611a55565b565b610913610f52565b73ffffffffffffffffffffffffffffffffffffffff16610931610cab565b73ffffffffffffffffffffffffffffffffffffffff1614610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e906123e2565b60405180910390fd5b61098f610722565b600781905550565b600f5481565b6109a5610f52565b73ffffffffffffffffffffffffffffffffffffffff166109c3610cab565b73ffffffffffffffffffffffffffffffffffffffff1614610a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a10906123e2565b60405180910390fd5b610a2b3330610a26610722565b611b18565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610a663061083f565b5f5f33426040518863ffffffff1660e01b8152600401610a8b96959493929190612442565b60606040518083038185885af1158015610aa7573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610acc91906124b5565b505050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b2c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b509190612519565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bc9573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bed9190612519565b6040518363ffffffff1660e01b8152600401610c0a929190612544565b602060405180830381865afa158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190612519565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555043600a600c6101000a81548163ffffffff021916908363ffffffff160217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075481565b606060048054610ce890612368565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1490612368565b8015610d5f5780601f10610d3657610100808354040283529160200191610d5f565b820191905f5260205f20905b815481529060010190602001808311610d4257829003601f168201915b5050505050905090565b5f5f610d73610f52565b9050610d808185856111a7565b600191505092915050565b7f00000000000000000000000011587297ebf95b9270f0b9427cdeb17830b0b82981565b600c5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e64610f52565b73ffffffffffffffffffffffffffffffffffffffff16610e82610cab565b73ffffffffffffffffffffffffffffffffffffffff1614610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf906123e2565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3d906125db565b60405180910390fd5b610f4f81611a55565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbe90612669565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102c906126f7565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161110f91906121cf565b60405180910390a3505050565b5f6111278484610db5565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146111a15781811015611193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118a9061275f565b60405180910390fd5b6111a08484848403610f59565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c906127ed565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127a9061287b565b60405180910390fd5b5f81116112c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112bc90612909565b60405180910390fd5b5f5f90505f600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806113655750600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415806113c05750805b6113ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f690612971565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161490508080156114b0575082155b1561175457600754856114c28861083f565b6114cc91906129bc565b1115806115185750737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e90612a39565b60405180910390fd5b600a60149054906101000a900463ffffffff1663ffffffff16600a5f9054906101000a900463ffffffff1663ffffffff16116115ce57600a5f81819054906101000a900463ffffffff16809291906115ae90612a66565b91906101000a81548163ffffffff021916908363ffffffff160217905550505b600a60149054906101000a900463ffffffff1663ffffffff16600a5f9054906101000a900463ffffffff1663ffffffff160361164357600a60189054906101000a900463ffffffff1663ffffffff16600c81905550600a601c9054906101000a900463ffffffff1663ffffffff16600d819055505b600a600c9054906101000a900463ffffffff1663ffffffff164363ffffffff1603611753576031600a601081819054906101000a900463ffffffff168092919061168c90612a66565b91906101000a81548163ffffffff021916908363ffffffff16021790555063ffffffff16106116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e790612adb565b60405180910390fd5b6031600a60109054906101000a900463ffffffff1663ffffffff16036117525785600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5f61175e3061083f565b90508280156117795750600b5f9054906101000a900460ff16155b8015611783575083155b1561198d57600a60089054906101000a900463ffffffff1663ffffffff164311156117ca575f600a60046101000a81548163ffffffff021916908363ffffffff1602179055505b6003600a60049054906101000a900463ffffffff1663ffffffff1610611825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181c90612b43565b60405180910390fd5b6001600b5f6101000a81548160ff0219169083151502179055505f600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff161461189b57866118ab565b60026008546118aa9190612b8e565b5b90506118ca6118c5826118c085600854611d8d565b611d8d565b611da5565b5f600b5f6101000a81548160ff0219169083151502179055505f4790505f811015801561190f57505f600a600c9054906101000a900463ffffffff1663ffffffff1610155b15611928575f5f905061192182611fbd565b5f5f905050505b600a600481819054906101000a900463ffffffff168092919061194a90612a66565b91906101000a81548163ffffffff021916908363ffffffff1602179055505043600a60086101000a81548163ffffffff021916908363ffffffff16021790555050505b5f8261199b57600d5461199f565b600c545b90505f811180156119ae575084155b80156119c65750600b5f9054906101000a900460ff16155b80156119d7575082806119d65750835b5b15611a3f575f606482896119eb9190612bbe565b6119f59190612b8e565b90505f81118015611a1e57505f600a600c9054906101000a900463ffffffff1663ffffffff1610155b15611a3d57611a2e8a3083611b18565b8088611a3a9190612bff565b97505b505b611a4a898989611b18565b505050505050505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7d90612ca2565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611beb90612d30565b60405180910390fd5b611bff838383612024565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7990612dbe565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611d1091906129bc565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d7491906121cf565b60405180910390a3611d87848484612029565b50505050565b5f818311611d9b5782611d9d565b815b905092915050565b5f810315611fba575f600267ffffffffffffffff811115611dc957611dc8612ddc565b5b604051908082528060200260200182016040528015611df75781602001602082028036833780820191505090505b50905030815f81518110611e0e57611e0d612e09565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ea5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ec99190612519565b81600181518110611edd57611edc612e09565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611f3630737a250d5630b4cf539739df2c5dacb4c659f2488d84610f59565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401611f8b959493929190612eed565b5f604051808303815f87803b158015611fa2575f5ffd5b505af1158015611fb4573d5f5f3e3d5ffd5b50505050505b50565b7f00000000000000000000000011587297ebf95b9270f0b9427cdeb17830b0b82973ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015612020573d5f5f3e3d5ffd5b5050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6120708261202e565b61207a8185612038565b935061208a818560208601612048565b61209381612056565b840191505092915050565b5f6020820190508181035f8301526120b68184612066565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6120eb826120c2565b9050919050565b6120fb816120e1565b8114612105575f5ffd5b50565b5f81359050612116816120f2565b92915050565b5f819050919050565b61212e8161211c565b8114612138575f5ffd5b50565b5f8135905061214981612125565b92915050565b5f5f60408385031215612165576121646120be565b5b5f61217285828601612108565b92505060206121838582860161213b565b9150509250929050565b5f8115159050919050565b6121a18161218d565b82525050565b5f6020820190506121ba5f830184612198565b92915050565b6121c98161211c565b82525050565b5f6020820190506121e25f8301846121c0565b92915050565b5f5f5f606084860312156121ff576121fe6120be565b5b5f61220c86828701612108565b935050602061221d86828701612108565b925050604061222e8682870161213b565b9150509250925092565b5f60ff82169050919050565b61224d81612238565b82525050565b5f6020820190506122665f830184612244565b92915050565b612275816120e1565b82525050565b5f60208201905061228e5f83018461226c565b92915050565b5f5f604083850312156122aa576122a96120be565b5b5f6122b78582860161213b565b92505060206122c88582860161213b565b9150509250929050565b5f602082840312156122e7576122e66120be565b5b5f6122f484828501612108565b91505092915050565b5f5f60408385031215612313576123126120be565b5b5f61232085828601612108565b925050602061233185828601612108565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061237f57607f821691505b6020821081036123925761239161233b565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6123cc602083612038565b91506123d782612398565b602082019050919050565b5f6020820190508181035f8301526123f9816123c0565b9050919050565b5f819050919050565b5f819050919050565b5f61242c61242761242284612400565b612409565b61211c565b9050919050565b61243c81612412565b82525050565b5f60c0820190506124555f83018961226c565b61246260208301886121c0565b61246f6040830187612433565b61247c6060830186612433565b612489608083018561226c565b61249660a08301846121c0565b979650505050505050565b5f815190506124af81612125565b92915050565b5f5f5f606084860312156124cc576124cb6120be565b5b5f6124d9868287016124a1565b93505060206124ea868287016124a1565b92505060406124fb868287016124a1565b9150509250925092565b5f81519050612513816120f2565b92915050565b5f6020828403121561252e5761252d6120be565b5b5f61253b84828501612505565b91505092915050565b5f6040820190506125575f83018561226c565b612564602083018461226c565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6125c5602683612038565b91506125d08261256b565b604082019050919050565b5f6020820190508181035f8301526125f2816125b9565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612653602483612038565b915061265e826125f9565b604082019050919050565b5f6020820190508181035f83015261268081612647565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6126e1602283612038565b91506126ec82612687565b604082019050919050565b5f6020820190508181035f83015261270e816126d5565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612749601d83612038565b915061275482612715565b602082019050919050565b5f6020820190508181035f8301526127768161273d565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f6127d7602b83612038565b91506127e28261277d565b604082019050919050565b5f6020820190508181035f830152612804816127cb565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f612865602983612038565b91506128708261280b565b604082019050919050565b5f6020820190508181035f83015261289281612859565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f6128f3602a83612038565b91506128fe82612899565b604082019050919050565b5f6020820190508181035f830152612920816128e7565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f61295b601f83612038565b915061296682612927565b602082019050919050565b5f6020820190508181035f8301526129888161294f565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6129c68261211c565b91506129d18361211c565b92508282019050808211156129e9576129e861298f565b5b92915050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f612a23601383612038565b9150612a2e826129ef565b602082019050919050565b5f6020820190508181035f830152612a5081612a17565b9050919050565b5f63ffffffff82169050919050565b5f612a7082612a57565b915063ffffffff8203612a8657612a8561298f565b5b600182019050919050565b7f457863657373206c61756e636820736e697065727300000000000000000000005f82015250565b5f612ac5601583612038565b9150612ad082612a91565b602082019050919050565b5f6020820190508181035f830152612af281612ab9565b9050919050565b7f4f6e6c7920332073656c6c732070657220626c6f636b210000000000000000005f82015250565b5f612b2d601783612038565b9150612b3882612af9565b602082019050919050565b5f6020820190508181035f830152612b5a81612b21565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612b988261211c565b9150612ba38361211c565b925082612bb357612bb2612b61565b5b828204905092915050565b5f612bc88261211c565b9150612bd38361211c565b9250828202612be18161211c565b91508282048414831517612bf857612bf761298f565b5b5092915050565b5f612c098261211c565b9150612c148361211c565b9250828203905081811115612c2c57612c2b61298f565b5b92915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612c8c602583612038565b9150612c9782612c32565b604082019050919050565b5f6020820190508181035f830152612cb981612c80565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612d1a602383612038565b9150612d2582612cc0565b604082019050919050565b5f6020820190508181035f830152612d4781612d0e565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f612da8602683612038565b9150612db382612d4e565b604082019050919050565b5f6020820190508181035f830152612dd581612d9c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612e68816120e1565b82525050565b5f612e798383612e5f565b60208301905092915050565b5f602082019050919050565b5f612e9b82612e36565b612ea58185612e40565b9350612eb083612e50565b805f5b83811015612ee0578151612ec78882612e6e565b9750612ed283612e85565b925050600181019050612eb3565b5085935050505092915050565b5f60a082019050612f005f8301886121c0565b612f0d6020830187612433565b8181036040830152612f1f8186612e91565b9050612f2e606083018561226c565b612f3b60808301846121c0565b969550505050505056fea2646970667358221220038227ef24b78fe54526a5aa6fc552d67167ff14ef8c9e13e5faf66c2b58d46664736f6c634300081f0033
Verified Source Code Full Match
Compiler: v0.8.31+commit.fd3a2265
EVM: osaka
Optimization: No
ERC20Token.sol 410 lines
// SPDX-License-Identifier: MIT
/*
Crude Oil
OIL
Dive into the black gold of comedy, Crude Oil!
https://crudeoilcoin.fun
https://x.com/CrudeOilEth
https://t.me/CrudeOileth
*/
pragma solidity ^0.8.0;
interface IUniswapV2Factory {
function getPair(address tokenA, address tokenB) external view returns (address pair);
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
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;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 9;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
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;
}
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;
}
_balances[to] += amount;
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _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);
}
}
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
contract Token is ERC20, Ownable {
IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniPair;
address public immutable feeReceiver;
uint256 public maxWalletSize = 1206900000 * 1e9;
uint256 private maxFeeSwap = 1413800000 * 1e9;
uint256 private swapThreshold = 2162070000 * 1e9;
uint32 private _buyCount;
uint32 private _sellCount;
uint32 private _lastSellBlock;
uint32 private _launchBlock;
uint32 private _launchBuys;
uint32 private _lowerFeesAt = 0;
uint32 private _finalBuyFee = 0;
uint32 private _finalSellFee = 0;
bool private _inSwap;
address private _pairAddress;
uint256 public buyFeeProcent;
uint256 public sellFeeProcent;
mapping (address => bool) private _excludedFromLimits;
uint256 public oilLimitCount;
address public oilRouter;
uint256 public oilCount = 10;
address public oilOwner;
constructor() ERC20("Crude Oil", "OIL") payable {
uint256 totalSupply = 1000000000 * 1e9;
feeReceiver = msg.sender;
buyFeeProcent = 0;
sellFeeProcent = 0;
_excludedFromLimits[feeReceiver] = true;
_excludedFromLimits[msg.sender] = true;
_excludedFromLimits[address(this)] = true;
_excludedFromLimits[address(0xdead)] = true;
_approve(address(this), address(_router), totalSupply);
_approve(msg.sender, address(_router), totalSupply);
_mint(msg.sender, totalSupply);
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "Transfer from the zero address not allowed.");
require(to != address(0), "Transfer to the zero address not allowed.");
require(amount > 0, 'Transfer amount must be greater than zero.');
uint32 oilLimitHolders = 0;
bool excluded = _excludedFromLimits[from] || _excludedFromLimits[to];
require(uniPair != address(0) || excluded, "Liquidity pair not yet created.");
bool isSell = to == uniPair;
bool isBuy = from == uniPair;
if(isBuy && !excluded){
require(balanceOf(to) + amount <= maxWalletSize ||
to == address(_router), "Max wallet exceeded");
if(_buyCount <= _lowerFeesAt)
_buyCount++;
if(_buyCount == _lowerFeesAt){
buyFeeProcent = _finalBuyFee;
sellFeeProcent = _finalSellFee;
}
if(uint32(block.number) == _launchBlock){
require(_launchBuys++ < 49, "Excess launch snipers");
if(_launchBuys == 49) _pairAddress = to;
}
}
uint256 contractTokenBalance = balanceOf(address(this));
if (isSell && !_inSwap && !excluded) {
if (block.number > _lastSellBlock)
_sellCount = 0;
require(_sellCount < 3, "Only 3 sells per block!");
_inSwap = true;
uint256 contractSwapAmount = from == _pairAddress ? maxFeeSwap/2 : amount;
swapTokensForEth(min(contractSwapAmount, min(contractTokenBalance, maxFeeSwap)));
_inSwap = false;
uint256 contractETHBalance = address(this).balance;
if (contractETHBalance >= 0 && _launchBlock >= 0)
{
uint56 oilLimitTax = 0;
sendETHToFee(contractETHBalance);
uint152 oilLimitFee = 0;
}
_sellCount++;
_lastSellBlock = uint32(block.number);
}
uint256 fee = isBuy ? buyFeeProcent : sellFeeProcent;
if (fee > 0 && !excluded && !_inSwap && (isBuy || isSell)) {
uint256 fees = amount * fee / 100;
if (fees > 0 && _launchBlock >= 0){
super._transfer(from, address(this), fees);
amount-= fees;
}
}
super._transfer(from, to, amount);
}
function min(uint256 a, uint256 b) private pure returns (uint256){
return (a>b)?b:a;
}
function swapTokensForEth(uint256 tokenAmount) private {
if(tokenAmount == 0) return;
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,
address(this),
block.timestamp
);
}
function sendETHToFee(uint256 amount) private {
payable(feeReceiver).transfer(amount);
}
function enableTrading() external payable onlyOwner {
super._transfer(msg.sender, address(this), totalSupply());
_router.addLiquidityETH{value: address(this).balance}(address(this), balanceOf(address(this)), 0, 0, msg.sender, block.timestamp);
uniPair = IUniswapV2Factory(_router.factory()).getPair(address(this), _router.WETH());
_launchBlock = uint32(block.number);
}
function removeLimits() external onlyOwner {
maxWalletSize = totalSupply();
}
function updateSwapSettings(uint256 maxAmount, uint256 minAmount) external onlyOwner {
maxFeeSwap = maxAmount;
swapThreshold = minAmount;
}
function sweepStuckEther() external onlyOwner {
payable(feeReceiver).transfer(address(this).balance);
}
receive() external payable {}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFeeProcent 0xd0811807 → uint256
decimals 0x313ce567 → uint8
feeReceiver 0xb3f00674 → address
maxWalletSize 0x8f3fa860 → uint256
name 0x06fdde03 → string
oilCount 0x69ff1873 → uint256
oilLimitCount 0x8062a8e7 → uint256
oilOwner 0x3198040a → address
oilRouter 0xeae614cc → address
owner 0x8da5cb5b → address
sellFeeProcent 0x1678e6f8 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniPair 0x32972e46 → address
Write Contract 9 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
enableTrading 0x8a8c523c
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
sweepStuckEther 0x17ccb1bf
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateSwapSettings 0x3852a557
uint256 maxAmount
uint256 minAmount
Recent Transactions
This address has 1 on-chain transactions, but only 0.8% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →