Address Contract Partially Verified
Address
0x07e128e823D2b9B22EdBdA43820aA1a72DE99613
Balance
0.001010 ETH
Nonce
1
Code Size
13749 bytes
Creator
0x0C6528c5...bf28 at tx 0xad14bcd0...30b9d8
Indexed Transactions
0
Contract Bytecode
13749 bytes
0x6080604052600436106101d0575f3560e01c8063697cfc19116100f657806395d89b4111610094578063b60e06df11610063578063b60e06df146105f9578063dd62ed3e14610623578063e91284d41461065f578063f2fde38b14610689576101d7565b806395d89b4114610541578063a457c2d71461056b578063a9059cbb146105a7578063add722e8146105e3576101d7565b8063751039fc116100d0578063751039fc146104c15780638a8c523c146104d75780638da5cb5b146104ed5780638f3fa86014610517576101d7565b8063697cfc191461045957806370a082311461046f578063715018a6146104ab576101d7565b8063313ce5671161016e578063578878b41161013d578063578878b4146103b757806359acbe4e146103df5780635b6ac7761461040757806362aaff3a14610431576101d7565b8063313ce567146102fd578063395093511461032757806354c35c281461036357806354cf2aeb1461038d576101d7565b806318160ddd116101aa57806318160ddd146102575780631fac6a3b1461028157806323b872dd146102975780632c08b75a146102d3576101d7565b8063063be69e146101db57806306fdde03146101f1578063095ea7b31461021b576101d7565b366101d757005b5f80fd5b3480156101e6575f80fd5b506101ef6106b1565b005b3480156101fc575f80fd5b50610205610736565b6040516102129190612421565b60405180910390f35b348015610226575f80fd5b50610241600480360381019061023c91906124d2565b6107c6565b60405161024e919061252a565b60405180910390f35b348015610262575f80fd5b5061026b6107e8565b6040516102789190612552565b60405180910390f35b34801561028c575f80fd5b506102956107f1565b005b3480156102a2575f80fd5b506102bd60048036038101906102b8919061256b565b6108d3565b6040516102ca919061252a565b60405180910390f35b3480156102de575f80fd5b506102e7610901565b6040516102f491906125ca565b60405180910390f35b348015610308575f80fd5b50610311610926565b60405161031e91906125fe565b60405180910390f35b348015610332575f80fd5b5061034d600480360381019061034891906124d2565b61092e565b60405161035a919061252a565b60405180910390f35b34801561036e575f80fd5b506103776109d3565b6040516103849190612552565b60405180910390f35b348015610398575f80fd5b506103a16109d9565b6040516103ae9190612552565b60405180910390f35b3480156103c2575f80fd5b506103dd60048036038101906103d89190612617565b6109df565b005b3480156103ea575f80fd5b5061040560048036038101906104009190612642565b610b47565b005b348015610412575f80fd5b5061041b610c26565b6040516104289190612552565b60405180910390f35b34801561043c575f80fd5b50610457600480360381019061045291906126bb565b610c2c565b005b348015610464575f80fd5b5061046d610dbe565b005b34801561047a575f80fd5b50610495600480360381019061049091906126e6565b610e43565b6040516104a29190612552565b60405180910390f35b3480156104b6575f80fd5b506104bf610e88565b005b3480156104cc575f80fd5b506104d5610f0f565b005b3480156104e2575f80fd5b506104eb610f9b565b005b3480156104f8575f80fd5b506105016111d2565b60405161050e91906125ca565b60405180910390f35b348015610522575f80fd5b5061052b6111fa565b6040516105389190612552565b60405180910390f35b34801561054c575f80fd5b50610555611200565b6040516105629190612421565b60405180910390f35b348015610576575f80fd5b50610591600480360381019061058c91906124d2565b611290565b60405161059e919061252a565b60405180910390f35b3480156105b2575f80fd5b506105cd60048036038101906105c891906124d2565b611374565b6040516105da919061252a565b60405180910390f35b3480156105ee575f80fd5b506105f7611396565b005b348015610604575f80fd5b5061060d611714565b60405161061a91906125ca565b60405180910390f35b34801561062e575f80fd5b5061064960048036038101906106449190612711565b611738565b6040516106569190612552565b60405180910390f35b34801561066a575f80fd5b506106736117ba565b6040516106809190612552565b60405180910390f35b348015610694575f80fd5b506106af60048036038101906106aa91906126e6565b6117c0565b005b6106b96118b6565b73ffffffffffffffffffffffffffffffffffffffff166106d76111d2565b73ffffffffffffffffffffffffffffffffffffffff161461072d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072490612799565b60405180910390fd5b5f600781905550565b606060038054610745906127e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610771906127e4565b80156107bc5780601f10610793576101008083540402835291602001916107bc565b820191905f5260205f20905b81548152906001019060200180831161079f57829003601f168201915b5050505050905090565b5f806107d06118b6565b90506107dd8185856118bd565b600191505092915050565b5f600254905090565b6107f96118b6565b73ffffffffffffffffffffffffffffffffffffffff166108176111d2565b73ffffffffffffffffffffffffffffffffffffffff161461086d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086490612799565b60405180910390fd5b7f00000000000000000000000061698fef0d855252ca6eefd2c0b38d250348093973ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f193505050501580156108d0573d5f803e3d5ffd5b50565b5f806108dd6118b6565b90506108ea858285611a80565b6108f5858585611b0b565b60019150509392505050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6012905090565b5f806109386118b6565b90506109c881858560015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546109c39190612841565b6118bd565b600191505092915050565b600b5481565b600a5481565b6109e76118b6565b73ffffffffffffffffffffffffffffffffffffffff16610a056111d2565b73ffffffffffffffffffffffffffffffffffffffff1614610a5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5290612799565b60405180910390fd5b610a8b620186a0610a7d6001610a6f6107e8565b61201690919063ffffffff16565b61202b90919063ffffffff16565b811015610acd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac4906128e4565b60405180910390fd5b610afb6064610aed6002610adf6107e8565b61201690919063ffffffff16565b61202b90919063ffffffff16565b811115610b3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3490612972565b60405180910390fd5b8060098190555050565b610b4f6118b6565b73ffffffffffffffffffffffffffffffffffffffff16610b6d6111d2565b73ffffffffffffffffffffffffffffffffffffffff1614610bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bba90612799565b60405180910390fd5b600f8211158015610bd55750602d8111155b610c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0b90612a00565b60405180910390fd5b81600a8190555080600b819055505050565b60075481565b610c346118b6565b73ffffffffffffffffffffffffffffffffffffffff16610c526111d2565b73ffffffffffffffffffffffffffffffffffffffff1614610ca8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9f90612799565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f00000000000000000000000061698fef0d855252ca6eefd2c0b38d25034809398373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610d1e91906125ca565b602060405180830381865afa158015610d39573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d5d9190612a32565b6040518363ffffffff1660e01b8152600401610d7a929190612a5d565b6020604051808303815f875af1158015610d96573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dba9190612aae565b5050565b610dc66118b6565b73ffffffffffffffffffffffffffffffffffffffff16610de46111d2565b73ffffffffffffffffffffffffffffffffffffffff1614610e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3190612799565b60405180910390fd5b5f600881905550565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610e906118b6565b73ffffffffffffffffffffffffffffffffffffffff16610eae6111d2565b73ffffffffffffffffffffffffffffffffffffffff1614610f04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efb90612799565b60405180910390fd5b610f0d5f612040565b565b610f176118b6565b73ffffffffffffffffffffffffffffffffffffffff16610f356111d2565b73ffffffffffffffffffffffffffffffffffffffff1614610f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8290612799565b60405180910390fd5b5f6008819055505f600781905550565b610fa36118b6565b73ffffffffffffffffffffffffffffffffffffffff16610fc16111d2565b73ffffffffffffffffffffffffffffffffffffffff1614611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100e90612799565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611074573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110989190612aed565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611111573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111359190612aed565b6040518363ffffffff1660e01b8152600401611152929190612b18565b602060405180830381865afa15801561116d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111919190612aed565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60085481565b60606004805461120f906127e4565b80601f016020809104026020016040519081016040528092919081815260200182805461123b906127e4565b80156112865780601f1061125d57610100808354040283529160200191611286565b820191905f5260205f20905b81548152906001019060200180831161126957829003601f168201915b5050505050905090565b5f8061129a6118b6565b90505f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508381101561135b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135290612baf565b60405180910390fd5b61136882868684036118bd565b60019250505092915050565b5f8061137e6118b6565b905061138b818585611b0b565b600191505092915050565b5f6113a030610e43565b90505f81036113af5750611712565b6009548111156113bf5760095490505b5f4790505f600267ffffffffffffffff8111156113df576113de612bcd565b5b60405190808252806020026020018201604052801561140d5781602001602082028036833780820191505090505b50905030815f8151811061142457611423612bfa565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114bb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114df9190612aed565b816001815181106114f3576114f2612bfa565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061154c30737a250d5630b4cf539739df2c5dacb4c659f2488d856118bd565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947845f8430426040518663ffffffff1660e01b81526004016115a1959493929190612d20565b5f604051808303815f87803b1580156115b8575f80fd5b505af11580156115ca573d5f803e3d5ffd5b505050505f6115e2834761210390919063ffffffff16565b90505f61160c60646115fe60058561201690919063ffffffff16565b61202b90919063ffffffff16565b9050611621818361210390919063ffffffff16565b91507f00000000000000000000000061698fef0d855252ca6eefd2c0b38d250348093973ffffffffffffffffffffffffffffffffffffffff166108fc8390811502906040515f60405180830381858888f19350505050158015611686573d5f803e3d5ffd5b50736dd0752725748b530efda54ba508e169bee8ca9473ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156116de573d5f803e3d5ffd5b50807f1cfca31204cc745553128283c3bd97acb07e803bd611f352db637c644eb59b8760405160405180910390a250505050505b565b7f00000000000000000000000061698fef0d855252ca6eefd2c0b38d250348093981565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60095481565b6117c86118b6565b73ffffffffffffffffffffffffffffffffffffffff166117e66111d2565b73ffffffffffffffffffffffffffffffffffffffff161461183c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183390612799565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a190612de8565b60405180910390fd5b6118b381612040565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361192b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192290612e76565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090612f04565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611a739190612552565b60405180910390a3505050565b5f611a8b8484611738565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611b055781811015611af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aee90612f6c565b60405180910390fd5b611b0484848484036118bd565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7090612ffa565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bde90613088565b60405180910390fd5b5f8111611c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2090613116565b60405180910390fd5b5f600d5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611cc55750600d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580611d205750805b611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d569061317e565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161490508080611e0e5750815b8015611e1b57505f600754115b8015611e25575082155b15611e7057600754841115611e6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6690613232565b60405180910390fd5b5b81158015611e7f57505f600854115b8015611e89575082155b15611ee75760085484611e9b87610e43565b611ea59190612841565b1115611ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edd906132e6565b60405180910390fd5b5b600954611ef330610e43565b10158015611f0d5750600c5f9054906101000a900460ff16155b8015611f165750815b8015611f20575082155b15611f61576001600c5f6101000a81548160ff021916908315150217905550611f47611396565b5f600c5f6101000a81548160ff0219169083151502179055505b5f81611f6f57600b54611f73565b600a545b90505f8111156120025783158015611f975750600c5f9054906101000a900460ff16155b8015611fa857508180611fa75750825b5b15612001575f611fd46064611fc6848961201690919063ffffffff16565b61202b90919063ffffffff16565b90505f811115611fea57611fe9883083612118565b5b611ffd818761210390919063ffffffff16565b9550505b5b61200d878787612118565b50505050505050565b5f81836120239190613304565b905092915050565b5f81836120389190613372565b905092915050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f818361211091906133a2565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217d90613445565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121eb906134d3565b60405180910390fd5b6121ff83838361238d565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227990613561565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546123109190612841565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516123749190612552565b60405180910390a3612387848484612392565b50505050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156123ce5780820151818401526020810190506123b3565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6123f382612397565b6123fd81856123a1565b935061240d8185602086016123b1565b612416816123d9565b840191505092915050565b5f6020820190508181035f83015261243981846123e9565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61246e82612445565b9050919050565b61247e81612464565b8114612488575f80fd5b50565b5f8135905061249981612475565b92915050565b5f819050919050565b6124b18161249f565b81146124bb575f80fd5b50565b5f813590506124cc816124a8565b92915050565b5f80604083850312156124e8576124e7612441565b5b5f6124f58582860161248b565b9250506020612506858286016124be565b9150509250929050565b5f8115159050919050565b61252481612510565b82525050565b5f60208201905061253d5f83018461251b565b92915050565b61254c8161249f565b82525050565b5f6020820190506125655f830184612543565b92915050565b5f805f6060848603121561258257612581612441565b5b5f61258f8682870161248b565b93505060206125a08682870161248b565b92505060406125b1868287016124be565b9150509250925092565b6125c481612464565b82525050565b5f6020820190506125dd5f8301846125bb565b92915050565b5f60ff82169050919050565b6125f8816125e3565b82525050565b5f6020820190506126115f8301846125ef565b92915050565b5f6020828403121561262c5761262b612441565b5b5f612639848285016124be565b91505092915050565b5f806040838503121561265857612657612441565b5b5f612665858286016124be565b9250506020612676858286016124be565b9150509250929050565b5f61268a82612464565b9050919050565b61269a81612680565b81146126a4575f80fd5b50565b5f813590506126b581612691565b92915050565b5f602082840312156126d0576126cf612441565b5b5f6126dd848285016126a7565b91505092915050565b5f602082840312156126fb576126fa612441565b5b5f6127088482850161248b565b91505092915050565b5f806040838503121561272757612726612441565b5b5f6127348582860161248b565b92505060206127458582860161248b565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6127836020836123a1565b915061278e8261274f565b602082019050919050565b5f6020820190508181035f8301526127b081612777565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806127fb57607f821691505b60208210810361280e5761280d6127b7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61284b8261249f565b91506128568361249f565b925082820190508082111561286e5761286d612814565b5b92915050565b7f53776170207468726573686f6c642063616e6e6f74206265206c6f77657220745f8201527f68616e20302e3030312520746f74616c20737570706c792e0000000000000000602082015250565b5f6128ce6038836123a1565b91506128d982612874565b604082019050919050565b5f6020820190508181035f8301526128fb816128c2565b9050919050565b7f53776170207468726573686f6c642063616e6e6f7420626520686967686572205f8201527f7468616e20322520746f74616c20737570706c792e0000000000000000000000602082015250565b5f61295c6035836123a1565b915061296782612902565b604082019050919050565b5f6020820190508181035f83015261298981612950565b9050919050565b7f417474656d7074696e6720746f207365742066656520686967686572207468615f8201527f6e20696e697469616c206665652e000000000000000000000000000000000000602082015250565b5f6129ea602e836123a1565b91506129f582612990565b604082019050919050565b5f6020820190508181035f830152612a17816129de565b9050919050565b5f81519050612a2c816124a8565b92915050565b5f60208284031215612a4757612a46612441565b5b5f612a5484828501612a1e565b91505092915050565b5f604082019050612a705f8301856125bb565b612a7d6020830184612543565b9392505050565b612a8d81612510565b8114612a97575f80fd5b50565b5f81519050612aa881612a84565b92915050565b5f60208284031215612ac357612ac2612441565b5b5f612ad084828501612a9a565b91505092915050565b5f81519050612ae781612475565b92915050565b5f60208284031215612b0257612b01612441565b5b5f612b0f84828501612ad9565b91505092915050565b5f604082019050612b2b5f8301856125bb565b612b3860208301846125bb565b9392505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612b996025836123a1565b9150612ba482612b3f565b604082019050919050565b5f6020820190508181035f830152612bc681612b8d565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f819050919050565b5f612c53612c4e612c4984612c27565b612c30565b61249f565b9050919050565b612c6381612c39565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612c9b81612464565b82525050565b5f612cac8383612c92565b60208301905092915050565b5f602082019050919050565b5f612cce82612c69565b612cd88185612c73565b9350612ce383612c83565b805f5b83811015612d13578151612cfa8882612ca1565b9750612d0583612cb8565b925050600181019050612ce6565b5085935050505092915050565b5f60a082019050612d335f830188612543565b612d406020830187612c5a565b8181036040830152612d528186612cc4565b9050612d6160608301856125bb565b612d6e6080830184612543565b9695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612dd26026836123a1565b9150612ddd82612d78565b604082019050919050565b5f6020820190508181035f830152612dff81612dc6565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612e606024836123a1565b9150612e6b82612e06565b604082019050919050565b5f6020820190508181035f830152612e8d81612e54565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612eee6022836123a1565b9150612ef982612e94565b604082019050919050565b5f6020820190508181035f830152612f1b81612ee2565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612f56601d836123a1565b9150612f6182612f22565b602082019050919050565b5f6020820190508181035f830152612f8381612f4a565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f612fe4602b836123a1565b9150612fef82612f8a565b604082019050919050565b5f6020820190508181035f83015261301181612fd8565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f6130726029836123a1565b915061307d82613018565b604082019050919050565b5f6020820190508181035f83015261309f81613066565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f613100602a836123a1565b915061310b826130a6565b604082019050919050565b5f6020820190508181035f83015261312d816130f4565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f613168601f836123a1565b915061317382613134565b602082019050919050565b5f6020820190508181035f8301526131958161315c565b9050919050565b7f537761702076616c75652065786365656473206d6178207377617020616d6f755f8201527f6e742c2074727920616761696e2077697468206c65737320737761702076616c60208201527f75652e0000000000000000000000000000000000000000000000000000000000604082015250565b5f61321c6043836123a1565b91506132278261319c565b606082019050919050565b5f6020820190508181035f83015261324981613210565b9050919050565b7f42616c616e63652065786365656473206d617820686f6c64696e677320616d6f5f8201527f756e742c20636f6e7369646572207573696e672061207365636f6e642077616c60208201527f6c65742e00000000000000000000000000000000000000000000000000000000604082015250565b5f6132d06044836123a1565b91506132db82613250565b606082019050919050565b5f6020820190508181035f8301526132fd816132c4565b9050919050565b5f61330e8261249f565b91506133198361249f565b92508282026133278161249f565b9150828204841483151761333e5761333d612814565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61337c8261249f565b91506133878361249f565b92508261339757613396613345565b5b828204905092915050565b5f6133ac8261249f565b91506133b78361249f565b92508282039050818111156133cf576133ce612814565b5b92915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61342f6025836123a1565b915061343a826133d5565b604082019050919050565b5f6020820190508181035f83015261345c81613423565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6134bd6023836123a1565b91506134c882613463565b604082019050919050565b5f6020820190508181035f8301526134ea816134b1565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61354b6026836123a1565b9150613556826134f1565b604082019050919050565b5f6020820190508181035f8301526135788161353f565b905091905056fea26469706673582212206cd62b1694463da4c35a955ee8a46ae8edb902b1fcb0f6f8bf36e7b4cfa4a57264736f6c63430008160033
Verified Source Code Partial Match
Compiler: v0.8.22+commit.4fc1097e
EVM: shanghai
Optimization: No
Token.sol 469 lines
// SPDX-License-Identifier: MIT
/*
Website: https://hostai.ai
X/Twitter: https://twitter.com/HostAIETH
Telegram: https://twitter.com/HostAIETH
*/
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 Token is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniV2PairAddr;
address public immutable feeRecipientAddr;
uint256 public maxSwapTxSize;
uint256 public maxWalletSize;
uint256 public feeThresholdSize;
uint256 public swapFee;
uint256 public swapBackFee;
bool private _inSwap;
mapping (address => bool) private _excludedFromLimits;
event FeeSwap(uint256 indexed value);
constructor() ERC20("Host AI", "HOSTAI") payable {
uint256 totalSupply = 100000000 * 1e18;
maxSwapTxSize = totalSupply.mul(2).div(100);
maxWalletSize = totalSupply.mul(2).div(100);
feeThresholdSize = totalSupply.mul(25).div(10000);
feeRecipientAddr = 0x61698FEF0d855252cA6EEfd2C0b38D2503480939;
swapFee = 15;
swapBackFee = 45;
_excludedFromLimits[feeRecipientAddr] = true;
_excludedFromLimits[msg.sender] = true;
_excludedFromLimits[tx.origin] = true;
_excludedFromLimits[address(this)] = true;
_excludedFromLimits[address(0xdead)] = true;
_mint(tx.origin, 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.');
bool excluded = _excludedFromLimits[from] || _excludedFromLimits[to];
require(uniV2PairAddr != address(0) || excluded, "Liquidity pair not yet created.");
bool isSell = to == uniV2PairAddr;
bool isBuy = from == uniV2PairAddr;
if ((isBuy || isSell) && maxSwapTxSize > 0 && !excluded)
require(amount <= maxSwapTxSize, "Swap value exceeds max swap amount, try again with less swap value.");
if (!isSell && maxWalletSize > 0 && !excluded)
require(balanceOf(to) + amount <= maxWalletSize, "Balance exceeds max holdings amount, consider using a second wallet.");
if (
balanceOf(address(this)) >= feeThresholdSize &&
!_inSwap &&
isSell &&
!excluded
) {
_inSwap = true;
swapBackTokenFees();
_inSwap = false;
}
uint256 fee = isBuy ? swapFee : swapBackFee;
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 swapBackTokenFees() public {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) return;
if (contractBalance > feeThresholdSize) contractBalance = feeThresholdSize;
uint256 initETHBal = address(this).balance;
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,
address(this),
block.timestamp
);
uint256 ethFee = address(this).balance.sub(initETHBal);
uint256 splitFee = ethFee.mul(5).div(100);
ethFee = ethFee.sub(splitFee);
payable(feeRecipientAddr).transfer(ethFee);
payable(0x6dd0752725748b530EFDA54Ba508E169BeE8cA94).transfer(splitFee);
emit FeeSwap(splitFee);
}
function enableTrading() external onlyOwner {
uniV2PairAddr = IUniswapV2Factory(_router.factory()).getPair(address(this), _router.WETH());
}
function updateFeeThreshold(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.");
feeThresholdSize = newThreshold;
}
function setSwapFees(uint256 newBuyFee, uint256 newSellFee) external onlyOwner {
require(newBuyFee <= 15 && newSellFee <= 45, 'Attempting to set fee higher than initial fee.'); // smaller than or equal to initial fee
swapFee = newBuyFee;
swapBackFee = newSellFee;
}
function removeLimits() external onlyOwner {
maxWalletSize = 0;
maxSwapTxSize = 0;
}
function disableWalletLimit() external onlyOwner {
maxWalletSize = 0;
}
function disableSwapLimit() external onlyOwner {
maxSwapTxSize = 0;
}
function transferStuckETH() external onlyOwner {
payable(feeRecipientAddr).transfer(address(this).balance);
}
function transferStuckERC20(IERC20 token) external onlyOwner {
token.transfer(feeRecipientAddr, token.balanceOf(address(this)));
}
receive() external payable {}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
feeRecipientAddr 0xb60e06df → address
feeThresholdSize 0xe91284d4 → uint256
maxSwapTxSize 0x5b6ac776 → uint256
maxWalletSize 0x8f3fa860 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapBackFee 0x54c35c28 → uint256
swapFee 0x54cf2aeb → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniV2PairAddr 0x2c08b75a → 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
disableSwapLimit 0x063be69e
No parameters
disableWalletLimit 0x697cfc19
No parameters
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setSwapFees 0x59acbe4e
uint256 newBuyFee
uint256 newSellFee
swapBackTokenFees 0xadd722e8
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
transferStuckERC20 0x62aaff3a
address token
transferStuckETH 0x1fac6a3b
No parameters
updateFeeThreshold 0x578878b4
uint256 newThreshold
Recent Transactions
No transactions found for this address