Address Contract Partially Verified
Address
0x10c8798EbB8E18bCefaf67f77399297F9966899D
Balance
0 ETH
Nonce
1
Code Size
13456 bytes
Creator
0x9097844A...17ca at tx 0x051b9915...527242
Indexed Transactions
0
Contract Bytecode
13456 bytes
0x6080604052600436106101d0575f3560e01c80638a8c523c116100f6578063c062ca5f11610094578063e54f4faa11610063578063e54f4faa14610621578063f2fde38b1461064b578063f442d3fb14610673578063f5648a4f1461069b576101d7565b8063c062ca5f14610567578063cc3fdd4c14610591578063dd62ed3e146105bb578063e0d30d9b146105f7576101d7565b8063a457c2d7116100d0578063a457c2d71461049b578063a9059cbb146104d7578063ac3c457314610513578063b60e06df1461053d576101d7565b80638a8c523c146104315780638da5cb5b1461044757806395d89b4114610471576101d7565b806332972e461161016e5780636ac5eeee1161013d5780636ac5eeee146103b357806370a08231146103c9578063715018a614610405578063751039fc1461041b576101d7565b806332972e461461030f57806339509351146103395780633963510b146103755780635564ad711461039d576101d7565b80630b78f9c0116101aa5780630b78f9c01461025757806318160ddd1461027f57806323b872dd146102a9578063313ce567146102e5576101d7565b8063063be69e146101db57806306fdde03146101f1578063095ea7b31461021b576101d7565b366101d757005b5f80fd5b3480156101e6575f80fd5b506101ef6106b1565b005b3480156101fc575f80fd5b50610205610736565b60405161021291906122fc565b60405180910390f35b348015610226575f80fd5b50610241600480360381019061023c91906123ad565b6107c6565b60405161024e9190612405565b60405180910390f35b348015610262575f80fd5b5061027d6004803603810190610278919061241e565b6107e8565b005b34801561028a575f80fd5b506102936108c7565b6040516102a0919061246b565b60405180910390f35b3480156102b4575f80fd5b506102cf60048036038101906102ca9190612484565b6108d0565b6040516102dc9190612405565b60405180910390f35b3480156102f0575f80fd5b506102f96108fe565b60405161030691906124ef565b60405180910390f35b34801561031a575f80fd5b50610323610906565b6040516103309190612517565b60405180910390f35b348015610344575f80fd5b5061035f600480360381019061035a91906123ad565b61092b565b60405161036c9190612405565b60405180910390f35b348015610380575f80fd5b5061039b6004803603810190610396919061256b565b6109d0565b005b3480156103a8575f80fd5b506103b1610b62565b005b3480156103be575f80fd5b506103c7610be7565b005b3480156103d4575f80fd5b506103ef60048036038101906103ea9190612596565b610e40565b6040516103fc919061246b565b60405180910390f35b348015610410575f80fd5b50610419610e85565b005b348015610426575f80fd5b5061042f610f0c565b005b34801561043c575f80fd5b50610445610f98565b005b348015610452575f80fd5b5061045b6111cf565b6040516104689190612517565b60405180910390f35b34801561047c575f80fd5b506104856111f7565b60405161049291906122fc565b60405180910390f35b3480156104a6575f80fd5b506104c160048036038101906104bc91906123ad565b611287565b6040516104ce9190612405565b60405180910390f35b3480156104e2575f80fd5b506104fd60048036038101906104f891906123ad565b61136b565b60405161050a9190612405565b60405180910390f35b34801561051e575f80fd5b5061052761138d565b604051610534919061246b565b60405180910390f35b348015610548575f80fd5b50610551611393565b60405161055e9190612517565b60405180910390f35b348015610572575f80fd5b5061057b6113b7565b604051610588919061246b565b60405180910390f35b34801561059c575f80fd5b506105a56113bd565b6040516105b2919061246b565b60405180910390f35b3480156105c6575f80fd5b506105e160048036038101906105dc91906125c1565b6113c3565b6040516105ee919061246b565b60405180910390f35b348015610602575f80fd5b5061060b611445565b604051610618919061246b565b60405180910390f35b34801561062c575f80fd5b5061063561144b565b604051610642919061246b565b60405180910390f35b348015610656575f80fd5b50610671600480360381019061066c9190612596565b611451565b005b34801561067e575f80fd5b50610699600480360381019061069491906125ff565b611547565b005b3480156106a6575f80fd5b506106af6116af565b005b6106b9611791565b73ffffffffffffffffffffffffffffffffffffffff166106d76111cf565b73ffffffffffffffffffffffffffffffffffffffff161461072d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072490612674565b60405180910390fd5b5f600781905550565b606060038054610745906126bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610771906126bf565b80156107bc5780601f10610793576101008083540402835291602001916107bc565b820191905f5260205f20905b81548152906001019060200180831161079f57829003601f168201915b5050505050905090565b5f806107d0611791565b90506107dd818585611798565b600191505092915050565b6107f0611791565b73ffffffffffffffffffffffffffffffffffffffff1661080e6111cf565b73ffffffffffffffffffffffffffffffffffffffff1614610864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085b90612674565b60405180910390fd5b600f8211158015610876575060238111155b6108b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ac9061275f565b60405180910390fd5b81600a8190555080600b819055505050565b5f600254905090565b5f806108da611791565b90506108e785828561195b565b6108f28585856119e6565b60019150509392505050565b5f6012905090565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80610935611791565b90506109c581858560015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546109c091906127aa565b611798565b600191505092915050565b6109d8611791565b73ffffffffffffffffffffffffffffffffffffffff166109f66111cf565b73ffffffffffffffffffffffffffffffffffffffff1614610a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4390612674565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f00000000000000000000000055f89611baba0164fbda8eb86ace8413e6058d5d8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ac29190612517565b602060405180830381865afa158015610add573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b0191906127f1565b6040518363ffffffff1660e01b8152600401610b1e92919061281c565b6020604051808303815f875af1158015610b3a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b5e919061286d565b5050565b610b6a611791565b73ffffffffffffffffffffffffffffffffffffffff16610b886111cf565b73ffffffffffffffffffffffffffffffffffffffff1614610bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd590612674565b60405180910390fd5b5f600881905550565b5f610bf130610e40565b90505f8103610c005750610e3e565b600954811115610c105760095490505b5f600267ffffffffffffffff811115610c2c57610c2b612898565b5b604051908082528060200260200182016040528015610c5a5781602001602082028036833780820191505090505b50905030815f81518110610c7157610c706128c5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d08573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2c9190612906565b81600181518110610d4057610d3f6128c5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610d9930737a250d5630b4cf539739df2c5dacb4c659f2488d84611798565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f847f00000000000000000000000055f89611baba0164fbda8eb86ace8413e6058d5d426040518663ffffffff1660e01b8152600401610e0e959493929190612a2a565b5f604051808303815f87803b158015610e25575f80fd5b505af1158015610e37573d5f803e3d5ffd5b5050505050505b565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610e8d611791565b73ffffffffffffffffffffffffffffffffffffffff16610eab6111cf565b73ffffffffffffffffffffffffffffffffffffffff1614610f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef890612674565b60405180910390fd5b610f0a5f611ef1565b565b610f14611791565b73ffffffffffffffffffffffffffffffffffffffff16610f326111cf565b73ffffffffffffffffffffffffffffffffffffffff1614610f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7f90612674565b60405180910390fd5b5f6008819055505f600781905550565b610fa0611791565b73ffffffffffffffffffffffffffffffffffffffff16610fbe6111cf565b73ffffffffffffffffffffffffffffffffffffffff1614611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b90612674565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611071573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110959190612906565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561110e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111329190612906565b6040518363ffffffff1660e01b815260040161114f929190612a82565b602060405180830381865afa15801561116a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061118e9190612906565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611206906126bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611232906126bf565b801561127d5780601f106112545761010080835404028352916020019161127d565b820191905f5260205f20905b81548152906001019060200180831161126057829003601f168201915b5050505050905090565b5f80611291611791565b90505f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905083811015611352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134990612b19565b60405180910390fd5b61135f8286868403611798565b60019250505092915050565b5f80611375611791565b90506113828185856119e6565b600191505092915050565b60095481565b7f00000000000000000000000055f89611baba0164fbda8eb86ace8413e6058d5d81565b60075481565b600a5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600b5481565b60085481565b611459611791565b73ffffffffffffffffffffffffffffffffffffffff166114776111cf565b73ffffffffffffffffffffffffffffffffffffffff16146114cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c490612674565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361153b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153290612ba7565b60405180910390fd5b61154481611ef1565b50565b61154f611791565b73ffffffffffffffffffffffffffffffffffffffff1661156d6111cf565b73ffffffffffffffffffffffffffffffffffffffff16146115c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ba90612674565b60405180910390fd5b6115f3620186a06115e560016115d76108c7565b611fb490919063ffffffff16565b611fc990919063ffffffff16565b811015611635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162c90612c35565b60405180910390fd5b611663606461165560026116476108c7565b611fb490919063ffffffff16565b611fc990919063ffffffff16565b8111156116a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169c90612cc3565b60405180910390fd5b8060098190555050565b6116b7611791565b73ffffffffffffffffffffffffffffffffffffffff166116d56111cf565b73ffffffffffffffffffffffffffffffffffffffff161461172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290612674565b60405180910390fd5b7f00000000000000000000000055f89611baba0164fbda8eb86ace8413e6058d5d73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f1935050505015801561178e573d5f803e3d5ffd5b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fd90612d51565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b90612ddf565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161194e919061246b565b60405180910390a3505050565b5f61196684846113c3565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146119e057818110156119d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c990612e47565b60405180910390fd5b6119df8484848403611798565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4b90612ed5565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ac2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab990612f63565b60405180910390fd5b5f8111611b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afb90612ff1565b60405180910390fd5b5f600d5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611ba05750600d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580611bfb5750805b611c3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3190613059565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161490508080611ce95750815b8015611cf657505f600754115b8015611d00575082155b15611d4b57600754841115611d4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d419061310d565b60405180910390fd5b5b81158015611d5a57505f600854115b8015611d64575082155b15611dc25760085484611d7687610e40565b611d8091906127aa565b1115611dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db8906131c1565b60405180910390fd5b5b600954611dce30610e40565b10158015611de85750600c5f9054906101000a900460ff16155b8015611df15750815b8015611dfb575082155b15611e3c576001600c5f6101000a81548160ff021916908315150217905550611e22610be7565b5f600c5f6101000a81548160ff0219169083151502179055505b5f81611e4a57600b54611e4e565b600a545b90505f811115611edd5783158015611e725750600c5f9054906101000a900460ff16155b8015611e8357508180611e825750825b5b15611edc575f611eaf6064611ea18489611fb490919063ffffffff16565b611fc990919063ffffffff16565b90505f811115611ec557611ec4883083611fde565b5b611ed8818761225390919063ffffffff16565b9550505b5b611ee8878787611fde565b50505050505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8183611fc191906131df565b905092915050565b5f8183611fd6919061324d565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361204c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612043906132ed565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b19061337b565b60405180910390fd5b6120c5838383612268565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213f90613409565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546121d691906127aa565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161223a919061246b565b60405180910390a361224d84848461226d565b50505050565b5f81836122609190613427565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156122a957808201518184015260208101905061228e565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6122ce82612272565b6122d8818561227c565b93506122e881856020860161228c565b6122f1816122b4565b840191505092915050565b5f6020820190508181035f83015261231481846122c4565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61234982612320565b9050919050565b6123598161233f565b8114612363575f80fd5b50565b5f8135905061237481612350565b92915050565b5f819050919050565b61238c8161237a565b8114612396575f80fd5b50565b5f813590506123a781612383565b92915050565b5f80604083850312156123c3576123c261231c565b5b5f6123d085828601612366565b92505060206123e185828601612399565b9150509250929050565b5f8115159050919050565b6123ff816123eb565b82525050565b5f6020820190506124185f8301846123f6565b92915050565b5f80604083850312156124345761243361231c565b5b5f61244185828601612399565b925050602061245285828601612399565b9150509250929050565b6124658161237a565b82525050565b5f60208201905061247e5f83018461245c565b92915050565b5f805f6060848603121561249b5761249a61231c565b5b5f6124a886828701612366565b93505060206124b986828701612366565b92505060406124ca86828701612399565b9150509250925092565b5f60ff82169050919050565b6124e9816124d4565b82525050565b5f6020820190506125025f8301846124e0565b92915050565b6125118161233f565b82525050565b5f60208201905061252a5f830184612508565b92915050565b5f61253a8261233f565b9050919050565b61254a81612530565b8114612554575f80fd5b50565b5f8135905061256581612541565b92915050565b5f602082840312156125805761257f61231c565b5b5f61258d84828501612557565b91505092915050565b5f602082840312156125ab576125aa61231c565b5b5f6125b884828501612366565b91505092915050565b5f80604083850312156125d7576125d661231c565b5b5f6125e485828601612366565b92505060206125f585828601612366565b9150509250929050565b5f602082840312156126145761261361231c565b5b5f61262184828501612399565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61265e60208361227c565b91506126698261262a565b602082019050919050565b5f6020820190508181035f83015261268b81612652565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806126d657607f821691505b6020821081036126e9576126e8612692565b5b50919050565b7f417474656d7074696e6720746f207365742066656520686967686572207468615f8201527f6e20696e697469616c206665652e000000000000000000000000000000000000602082015250565b5f612749602e8361227c565b9150612754826126ef565b604082019050919050565b5f6020820190508181035f8301526127768161273d565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6127b48261237a565b91506127bf8361237a565b92508282019050808211156127d7576127d661277d565b5b92915050565b5f815190506127eb81612383565b92915050565b5f602082840312156128065761280561231c565b5b5f612813848285016127dd565b91505092915050565b5f60408201905061282f5f830185612508565b61283c602083018461245c565b9392505050565b61284c816123eb565b8114612856575f80fd5b50565b5f8151905061286781612843565b92915050565b5f602082840312156128825761288161231c565b5b5f61288f84828501612859565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8151905061290081612350565b92915050565b5f6020828403121561291b5761291a61231c565b5b5f612928848285016128f2565b91505092915050565b5f819050919050565b5f819050919050565b5f61295d61295861295384612931565b61293a565b61237a565b9050919050565b61296d81612943565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6129a58161233f565b82525050565b5f6129b6838361299c565b60208301905092915050565b5f602082019050919050565b5f6129d882612973565b6129e2818561297d565b93506129ed8361298d565b805f5b83811015612a1d578151612a0488826129ab565b9750612a0f836129c2565b9250506001810190506129f0565b5085935050505092915050565b5f60a082019050612a3d5f83018861245c565b612a4a6020830187612964565b8181036040830152612a5c81866129ce565b9050612a6b6060830185612508565b612a78608083018461245c565b9695505050505050565b5f604082019050612a955f830185612508565b612aa26020830184612508565b9392505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612b0360258361227c565b9150612b0e82612aa9565b604082019050919050565b5f6020820190508181035f830152612b3081612af7565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612b9160268361227c565b9150612b9c82612b37565b604082019050919050565b5f6020820190508181035f830152612bbe81612b85565b9050919050565b7f53776170207468726573686f6c642063616e6e6f74206265206c6f77657220745f8201527f68616e20302e3030312520746f74616c20737570706c792e0000000000000000602082015250565b5f612c1f60388361227c565b9150612c2a82612bc5565b604082019050919050565b5f6020820190508181035f830152612c4c81612c13565b9050919050565b7f53776170207468726573686f6c642063616e6e6f7420626520686967686572205f8201527f7468616e20322520746f74616c20737570706c792e0000000000000000000000602082015250565b5f612cad60358361227c565b9150612cb882612c53565b604082019050919050565b5f6020820190508181035f830152612cda81612ca1565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612d3b60248361227c565b9150612d4682612ce1565b604082019050919050565b5f6020820190508181035f830152612d6881612d2f565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612dc960228361227c565b9150612dd482612d6f565b604082019050919050565b5f6020820190508181035f830152612df681612dbd565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612e31601d8361227c565b9150612e3c82612dfd565b602082019050919050565b5f6020820190508181035f830152612e5e81612e25565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f612ebf602b8361227c565b9150612eca82612e65565b604082019050919050565b5f6020820190508181035f830152612eec81612eb3565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f612f4d60298361227c565b9150612f5882612ef3565b604082019050919050565b5f6020820190508181035f830152612f7a81612f41565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f612fdb602a8361227c565b9150612fe682612f81565b604082019050919050565b5f6020820190508181035f83015261300881612fcf565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f613043601f8361227c565b915061304e8261300f565b602082019050919050565b5f6020820190508181035f83015261307081613037565b9050919050565b7f537761702076616c75652065786365656473206d6178207377617020616d6f755f8201527f6e742c2074727920616761696e2077697468206c65737320737761702076616c60208201527f75652e0000000000000000000000000000000000000000000000000000000000604082015250565b5f6130f760438361227c565b915061310282613077565b606082019050919050565b5f6020820190508181035f830152613124816130eb565b9050919050565b7f42616c616e63652065786365656473206d617820686f6c64696e677320616d6f5f8201527f756e742c20636f6e7369646572207573696e672061207365636f6e642077616c60208201527f6c65742e00000000000000000000000000000000000000000000000000000000604082015250565b5f6131ab60448361227c565b91506131b68261312b565b606082019050919050565b5f6020820190508181035f8301526131d88161319f565b9050919050565b5f6131e98261237a565b91506131f48361237a565b92508282026132028161237a565b915082820484148315176132195761321861277d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6132578261237a565b91506132628361237a565b92508261327257613271613220565b5b828204905092915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6132d760258361227c565b91506132e28261327d565b604082019050919050565b5f6020820190508181035f830152613304816132cb565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f61336560238361227c565b91506133708261330b565b604082019050919050565b5f6020820190508181035f83015261339281613359565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6133f360268361227c565b91506133fe82613399565b604082019050919050565b5f6020820190508181035f830152613420816133e7565b9050919050565b5f6134318261237a565b915061343c8361237a565b92508282039050818111156134545761345361277d565b5b9291505056fea2646970667358221220f44d7da6b16853034780b7a9f69c53172ce6b5b9138e92b79be5dc7208aedca364736f6c63430008160033
Verified Source Code Partial Match
Compiler: v0.8.22+commit.4fc1097e
EVM: shanghai
Optimization: No
BLOCK.sol 459 lines
// SPDX-License-Identifier: MIT
/*
Website: blockscanai.com
X/Twitter: twitter.com/BlockscanAI
Telegram: https://t.me/BlockscanAI
Welcome to Blockscan, the unified data interface for the multichain degen.
*/
pragma solidity ^0.8.22;
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 18;
}
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 increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, _allowances[owner][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = _allowances[owner][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
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);
}
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
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;
}
contract BLOCK is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniPair;
address public immutable feeRecipientAddr;
uint256 public maxSwapTxAmount;
uint256 public maxHoldings;
uint256 public feeThresholdAmount;
uint256 public buyFeePercent;
uint256 public sellFeePercent;
bool private _inSwap;
mapping (address => bool) private _excludedFromLimits;
constructor() ERC20("Blockscan AI", "BLOCK") payable {
uint256 totalSupply = 1000000000 * 1e18;
uint256 lpSupply = totalSupply.mul(100).div(100);
maxSwapTxAmount = totalSupply.mul(2).div(100);
maxHoldings = totalSupply.mul(2).div(100);
feeThresholdAmount = totalSupply.mul(5).div(1000);
feeRecipientAddr = 0x55F89611BABa0164fBdA8Eb86ace8413e6058D5d;
buyFeePercent = 15;
sellFeePercent = 35;
_excludedFromLimits[feeRecipientAddr] = true;
_excludedFromLimits[msg.sender] = true;
_excludedFromLimits[tx.origin] = true;
_excludedFromLimits[address(this)] = true;
_excludedFromLimits[address(0xdead)] = true;
_mint(msg.sender, lpSupply);
}
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.');
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 || isSell) && maxSwapTxAmount > 0 && !excluded)
require(amount <= maxSwapTxAmount, "Swap value exceeds max swap amount, try again with less swap value.");
if (!isSell && maxHoldings > 0 && !excluded)
require(balanceOf(to) + amount <= maxHoldings, "Balance exceeds max holdings amount, consider using a second wallet.");
if (
balanceOf(address(this)) >= feeThresholdAmount &&
!_inSwap &&
isSell &&
!excluded
) {
_inSwap = true;
swapBack();
_inSwap = false;
}
uint256 fee = isBuy ? buyFeePercent : sellFeePercent;
if (fee > 0) {
if (!excluded && !_inSwap && (isBuy || isSell)) {
uint256 fees = amount.mul(fee).div(100);
if (fees > 0)
super._transfer(from, address(this), fees);
amount = amount.sub(fees);
}
}
super._transfer(from, to, amount);
}
function swapBack() public {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) return;
if (contractBalance > feeThresholdAmount) contractBalance = feeThresholdAmount;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _router.WETH();
_approve(address(this), address(_router), contractBalance);
_router.swapExactTokensForETHSupportingFeeOnTransferTokens(
contractBalance,
0,
path,
feeRecipientAddr,
block.timestamp
);
}
function enableTrading() external onlyOwner {
uniPair = IUniswapV2Factory(_router.factory()).getPair(address(this), _router.WETH());
}
function updateFeeTokenThreshold(uint256 newThreshold) external onlyOwner {
require(newThreshold >= totalSupply().mul(1).div(100000), "Swap threshold cannot be lower than 0.001% total supply.");
require(newThreshold <= totalSupply().mul(2).div(100), "Swap threshold cannot be higher than 2% total supply.");
feeThresholdAmount = newThreshold;
}
function setFees(uint256 newBuyFee, uint256 newSellFee) external onlyOwner {
require(newBuyFee <= 15 && newSellFee <= 35, 'Attempting to set fee higher than initial fee.'); // smaller than or equal to initial fee
buyFeePercent = newBuyFee;
sellFeePercent = newSellFee;
}
function removeLimits() external onlyOwner {
maxHoldings = 0;
maxSwapTxAmount = 0;
}
function disableHoldingLimit() external onlyOwner {
maxHoldings = 0;
}
function disableSwapLimit() external onlyOwner {
maxSwapTxAmount = 0;
}
function withdrawStuckETH() external onlyOwner {
payable(feeRecipientAddr).transfer(address(this).balance);
}
function withdrawStuckERC20(IERC20 token) external onlyOwner {
token.transfer(feeRecipientAddr, token.balanceOf(address(this)));
}
receive() external payable {}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFeePercent 0xcc3fdd4c → uint256
decimals 0x313ce567 → uint8
feeRecipientAddr 0xb60e06df → address
feeThresholdAmount 0xac3c4573 → uint256
maxHoldings 0xe54f4faa → uint256
maxSwapTxAmount 0xc062ca5f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFeePercent 0xe0d30d9b → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniPair 0x32972e46 → address
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableHoldingLimit 0x5564ad71
No parameters
disableSwapLimit 0x063be69e
No parameters
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setFees 0x0b78f9c0
uint256 newBuyFee
uint256 newSellFee
swapBack 0x6ac5eeee
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateFeeTokenThreshold 0xf442d3fb
uint256 newThreshold
withdrawStuckERC20 0x3963510b
address token
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
No transactions found for this address