Address Contract Partially Verified
Address
0x61e42A3d56687C94DBc216E534eF5d162Fd59f69
Balance
0 ETH
Nonce
1
Code Size
23999 bytes
Creator
0x022b99BC...aE94 at tx 0xfaa4b5cf...cdb59d
Indexed Transactions
0
Contract Bytecode
23999 bytes
0x6080604052600436106103c6575f3560e01c80637d48c8c2116101f1578063c4530d721161010c578063e7ad9fcd1161009f578063f2fde38b1161006e578063f2fde38b14610e15578063f3290d7514610e3d578063f637434214610e65578063feb3ece014610e8f576103cd565b8063e7ad9fcd14610d6f578063e7dd050b14610d97578063e8338a1c14610dc1578063f11a24d314610deb576103cd565b8063d9a018d5116100db578063d9a018d514610cb7578063dd62ed3e14610ce1578063e19b282314610d1d578063e2f4560514610d45576103cd565b8063c4530d7214610c11578063c8c8ebe414610c27578063d257b34f14610c51578063d85ba06314610c8d576103cd565b8063a9059cbb11610184578063bbc0c74211610153578063bbc0c74214610b6b578063be5fff2914610b95578063beb08ab914610bbf578063c024666814610be9576103cd565b8063a9059cbb14610aa1578063aa49802314610add578063adb873bd14610b05578063b62496f514610b2f576103cd565b80639a7a23d6116101c05780639a7a23d6146109ed578063a457c2d714610a15578063a4bb11e914610a51578063a71225f514610a79576103cd565b80637d48c8c2146109595780638a8c523c146109835780638da5cb5b1461099957806395d89b41146109c3576103cd565b80632e6ed7ef116102e1578063617c53eb11610274578063715018a611610243578063715018a6146108c957806371927628146108df578063751039fc146109075780637571336a14610931576103cd565b8063617c53eb14610811578063679ae7d11461083b5780636a486a8e1461086357806370a082311461088d576103cd565b806345e34949116102b057806345e349491461075957806349bd5a5e146107815780634a62bb65146107ab5780634fbee193146107d5576103cd565b80632e6ed7ef146106a1578063313ce567146106c9578063323401ed146106f3578063395093511461071d576103cd565b80631a8145bb1161035957806327c8f8351161032857806327c8f835146105fd5780632a2ad7b4146106275780632a7bab5d1461064f5780632e1b0cf214610677576103cd565b80631a8145bb146105435780631d7778561461056d57806323b872dd1461059757806325b62434146105d3576103cd565b806310d5de531161039557806310d5de531461048957806312096556146104c55780631694505e146104ef57806318160ddd14610519576103cd565b806305e09eb2146103d157806306fdde03146103e7578063095ea7b3146104115780630bef0ec71461044d576103cd565b366103cd57005b5f80fd5b3480156103dc575f80fd5b506103e5610eb9565b005b3480156103f2575f80fd5b506103fb611073565b6040516104089190614729565b60405180910390f35b34801561041c575f80fd5b50610437600480360381019061043291906147da565b611103565b6040516104449190614832565b60405180910390f35b348015610458575f80fd5b50610473600480360381019061046e919061484b565b611120565b6040516104809190614832565b60405180910390f35b348015610494575f80fd5b506104af60048036038101906104aa919061484b565b611172565b6040516104bc9190614832565b60405180910390f35b3480156104d0575f80fd5b506104d961118f565b6040516104e69190614885565b60405180910390f35b3480156104fa575f80fd5b506105036111b4565b60405161051091906148f9565b60405180910390f35b348015610524575f80fd5b5061052d6111d8565b60405161053a9190614921565b60405180910390f35b34801561054e575f80fd5b506105576111e1565b6040516105649190614921565b60405180910390f35b348015610578575f80fd5b506105816111e7565b60405161058e9190614921565b60405180910390f35b3480156105a2575f80fd5b506105bd60048036038101906105b8919061493a565b6111ed565b6040516105ca9190614832565b60405180910390f35b3480156105de575f80fd5b506105e76112df565b6040516105f49190614832565b60405180910390f35b348015610608575f80fd5b506106116112f2565b60405161061e9190614885565b60405180910390f35b348015610632575f80fd5b5061064d6004803603810190610648919061484b565b6112f8565b005b34801561065a575f80fd5b506106756004803603810190610670919061498a565b611432565b005b348015610682575f80fd5b5061068b611541565b6040516106989190614921565b60405180910390f35b3480156106ac575f80fd5b506106c760048036038101906106c291906149b5565b611547565b005b3480156106d4575f80fd5b506106dd61165b565b6040516106ea9190614a34565b60405180910390f35b3480156106fe575f80fd5b50610707611663565b6040516107149190614921565b60405180910390f35b348015610728575f80fd5b50610743600480360381019061073e91906147da565b611669565b6040516107509190614832565b60405180910390f35b348015610764575f80fd5b5061077f600480360381019061077a919061484b565b611710565b005b34801561078c575f80fd5b506107956117e3565b6040516107a29190614885565b60405180910390f35b3480156107b6575f80fd5b506107bf611807565b6040516107cc9190614832565b60405180910390f35b3480156107e0575f80fd5b506107fb60048036038101906107f6919061484b565b611819565b6040516108089190614832565b60405180910390f35b34801561081c575f80fd5b5061082561186b565b6040516108329190614921565b60405180910390f35b348015610846575f80fd5b50610861600480360381019061085c919061484b565b611871565b005b34801561086e575f80fd5b50610877611999565b6040516108849190614921565b60405180910390f35b348015610898575f80fd5b506108b360048036038101906108ae919061484b565b61199f565b6040516108c09190614921565b60405180910390f35b3480156108d4575f80fd5b506108dd6119e4565b005b3480156108ea575f80fd5b506109056004803603810190610900919061484b565b611a6b565b005b348015610912575f80fd5b5061091b611ba5565b6040516109289190614832565b60405180910390f35b34801561093c575f80fd5b5061095760048036038101906109529190614a77565b611c42565b005b348015610964575f80fd5b5061096d611d16565b60405161097a9190614921565b60405180910390f35b34801561098e575f80fd5b50610997611d1c565b005b3480156109a4575f80fd5b506109ad611dd0565b6040516109ba9190614885565b60405180910390f35b3480156109ce575f80fd5b506109d7611df8565b6040516109e49190614729565b60405180910390f35b3480156109f8575f80fd5b50610a136004803603810190610a0e9190614a77565b611e88565b005b348015610a20575f80fd5b50610a3b6004803603810190610a3691906147da565b611fa0565b604051610a489190614832565b60405180910390f35b348015610a5c575f80fd5b50610a776004803603810190610a729190614ab5565b612086565b005b348015610a84575f80fd5b50610a9f6004803603810190610a9a9190614ae0565b61211f565b005b348015610aac575f80fd5b50610ac76004803603810190610ac291906147da565b612305565b604051610ad49190614832565b60405180910390f35b348015610ae8575f80fd5b50610b036004803603810190610afe919061498a565b612322565b005b348015610b10575f80fd5b50610b19612431565b604051610b269190614921565b60405180910390f35b348015610b3a575f80fd5b50610b556004803603810190610b50919061484b565b612437565b604051610b629190614832565b60405180910390f35b348015610b76575f80fd5b50610b7f612454565b604051610b8c9190614832565b60405180910390f35b348015610ba0575f80fd5b50610ba9612467565b604051610bb69190614921565b60405180910390f35b348015610bca575f80fd5b50610bd361246d565b604051610be09190614885565b60405180910390f35b348015610bf4575f80fd5b50610c0f6004803603810190610c0a9190614a77565b612492565b005b348015610c1c575f80fd5b50610c256125b4565b005b348015610c32575f80fd5b50610c3b61264d565b604051610c489190614921565b60405180910390f35b348015610c5c575f80fd5b50610c776004803603810190610c72919061498a565b612653565b604051610c849190614832565b60405180910390f35b348015610c98575f80fd5b50610ca16127a7565b604051610cae9190614921565b60405180910390f35b348015610cc2575f80fd5b50610ccb6127ad565b604051610cd89190614832565b60405180910390f35b348015610cec575f80fd5b50610d076004803603810190610d029190614ae0565b6127c0565b604051610d149190614921565b60405180910390f35b348015610d28575f80fd5b50610d436004803603810190610d3e919061484b565b612842565b005b348015610d50575f80fd5b50610d59612a41565b604051610d669190614921565b60405180910390f35b348015610d7a575f80fd5b50610d956004803603810190610d9091906149b5565b612a47565b005b348015610da2575f80fd5b50610dab612b5b565b604051610db89190614921565b60405180910390f35b348015610dcc575f80fd5b50610dd5612b61565b604051610de29190614921565b60405180910390f35b348015610df6575f80fd5b50610dff612b67565b604051610e0c9190614921565b60405180910390f35b348015610e20575f80fd5b50610e3b6004803603810190610e36919061484b565b612b6d565b005b348015610e48575f80fd5b50610e636004803603810190610e5e919061484b565b612c63565b005b348015610e70575f80fd5b50610e79612e62565b604051610e869190614921565b60405180910390f35b348015610e9a575f80fd5b50610ea3612e68565b604051610eb09190614921565b60405180910390f35b610ec1612e6e565b73ffffffffffffffffffffffffffffffffffffffff16610edf611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c90614b68565b60405180910390fd5b5f3073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f6f9190614885565b602060405180830381865afa158015610f8a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fae9190614b9a565b90503073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610feb929190614bc5565b6020604051808303815f875af1158015611007573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061102b9190614c00565b503373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f1935050505015801561106f573d5f803e3d5ffd5b5050565b60606003805461108290614c58565b80601f01602080910402602001604051908101604052809291908181526020018280546110ae90614c58565b80156110f95780601f106110d0576101008083540402835291602001916110f9565b820191905f5260205f20905b8154815290600101906020018083116110dc57829003601f168201915b5050505050905090565b5f61111661110f612e6e565b8484612e75565b6001905092915050565b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b601c602052805f5260405f205f915054906101000a900460ff1681565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b60195481565b60175481565b5f6111f9848484613038565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f611240612e6e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050828110156112bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b690614cf8565b60405180910390fd5b6112d3856112cb612e6e565b858403612e75565b60019150509392505050565b600b60039054906101000a900460ff1681565b61dead81565b611300612e6e565b73ffffffffffffffffffffffffffffffffffffffff1661131e611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614611374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136b90614b68565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7b9a991aa973cfc07437f57202ed5bf6e157e0f73c766b6104014b4c9f1fdb0f60405160405180910390a38060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61143a612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611458611dd0565b73ffffffffffffffffffffffffffffffffffffffff16146114ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a590614b68565b60405180910390fd5b670de0b6b3a76400006103e8600a6114c46111d8565b6114ce9190614d43565b6114d89190614db1565b6114e29190614db1565b811015611524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151b90614e2b565b60405180910390fd5b670de0b6b3a7640000816115389190614d43565b60098190555050565b60095481565b61154f612e6e565b73ffffffffffffffffffffffffffffffffffffffff1661156d611dd0565b73ffffffffffffffffffffffffffffffffffffffff16146115c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ba90614b68565b60405180910390fd5b83600d8190555082600e8190555081600f8190555080601081905550601054600f54600e54600d546115f59190614e49565b6115ff9190614e49565b6116099190614e49565b60118190555060056011541115611655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164c90614ec6565b60405180910390fd5b50505050565b5f6012905090565b60155481565b5f611706611675612e6e565b848460015f611682612e6e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546117019190614e49565b612e75565b6001905092915050565b611718612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611736611dd0565b73ffffffffffffffffffffffffffffffffffffffff161461178c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178390614b68565b60405180910390fd5b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b7f000000000000000000000000c3afb3ad21d96cdb0ef1535732efd427c8ed78d781565b600b5f9054906101000a900460ff1681565b5f601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60185481565b611879612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611897611dd0565b73ffffffffffffffffffffffffffffffffffffffff16146118ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e490614b68565b60405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff164760405161191290614f11565b5f6040518083038185875af1925050503d805f811461194c576040519150601f19603f3d011682016040523d82523d5f602084013e611951565b606091505b5050905080611995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198c90614f6f565b60405180910390fd5b5050565b60165481565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6119ec612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611a0a611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614611a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5790614b68565b60405180910390fd5b611a695f613c6e565b565b611a73612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611a91611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614611ae7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ade90614b68565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fd0bdd1bf92049384d44f81d258f51a39b26cfc1d256348efb3b109fd8db7271160405160405180910390a38060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f611bae612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611bcc611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614611c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1990614b68565b60405180910390fd5b5f600b5f6101000a81548160ff0219169083151502179055506001905090565b611c4a612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611c68611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb590614b68565b60405180910390fd5b80601c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b600e5481565b611d24612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611d42611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614611d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8f90614b68565b60405180910390fd5b6001600b60016101000a81548160ff0219169083151502179055506001600b60026101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611e0790614c58565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3390614c58565b8015611e7e5780601f10611e5557610100808354040283529160200191611e7e565b820191905f5260205f20905b815481529060010190602001808311611e6157829003601f168201915b5050505050905090565b611e90612e6e565b73ffffffffffffffffffffffffffffffffffffffff16611eae611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614611f04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efb90614b68565b60405180910390fd5b7f000000000000000000000000c3afb3ad21d96cdb0ef1535732efd427c8ed78d773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8990614fd7565b60405180910390fd5b611f9c8282613d31565b5050565b5f8060015f611fad612e6e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015612067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205e90615065565b60405180910390fd5b61207b612072612e6e565b85858403612e75565b600191505092915050565b61208e612e6e565b73ffffffffffffffffffffffffffffffffffffffff166120ac611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614612102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f990614b68565b60405180910390fd5b80600b60026101000a81548160ff02191690831515021790555050565b612127612e6e565b73ffffffffffffffffffffffffffffffffffffffff16612145611dd0565b73ffffffffffffffffffffffffffffffffffffffff161461219b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219290614b68565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612209576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612200906150cd565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016122439190614885565b602060405180830381865afa15801561225e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122829190614b9a565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016122bf929190614bc5565b6020604051808303815f875af11580156122db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122ff9190614c00565b50505050565b5f612318612311612e6e565b8484613038565b6001905092915050565b61232a612e6e565b73ffffffffffffffffffffffffffffffffffffffff16612348611dd0565b73ffffffffffffffffffffffffffffffffffffffff161461239e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239590614b68565b60405180910390fd5b670de0b6b3a76400006103e860056123b46111d8565b6123be9190614d43565b6123c89190614db1565b6123d29190614db1565b811015612414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240b90615135565b60405180910390fd5b670de0b6b3a7640000816124289190614d43565b60088190555050565b60125481565b601d602052805f5260405f205f915054906101000a900460ff1681565b600b60019054906101000a900460ff1681565b60135481565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61249a612e6e565b73ffffffffffffffffffffffffffffffffffffffff166124b8611dd0565b73ffffffffffffffffffffffffffffffffffffffff161461250e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250590614b68565b60405180910390fd5b80601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516125a89190614832565b60405180910390a25050565b6125bc612e6e565b73ffffffffffffffffffffffffffffffffffffffff166125da611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614612630576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262790614b68565b60405180910390fd5b6001600b60036101000a81548160ff021916908315150217905550565b60085481565b5f61265c612e6e565b73ffffffffffffffffffffffffffffffffffffffff1661267a611dd0565b73ffffffffffffffffffffffffffffffffffffffff16146126d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c790614b68565b60405180910390fd5b620186a060016126de6111d8565b6126e89190614d43565b6126f29190614db1565b821015612734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272b906151c3565b60405180910390fd5b6103e860056127416111d8565b61274b9190614d43565b6127559190614db1565b821115612797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278e90615251565b60405180910390fd5b81600a8190555060019050919050565b60115481565b600b60029054906101000a900460ff1681565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61284a612e6e565b73ffffffffffffffffffffffffffffffffffffffff16612868611dd0565b73ffffffffffffffffffffffffffffffffffffffff16146128be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b590614b68565b60405180910390fd5b600b60039054906101000a900460ff161561290e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612905906152b9565b60405180910390fd5b7f000000000000000000000000c3afb3ad21d96cdb0ef1535732efd427c8ed78d773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156129aa5750737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b6129e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e090615321565b60405180910390fd5b6001600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b600a5481565b612a4f612e6e565b73ffffffffffffffffffffffffffffffffffffffff16612a6d611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614612ac3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aba90614b68565b60405180910390fd5b83601281905550826013819055508160148190555080601581905550601554601454601354601254612af59190614e49565b612aff9190614e49565b612b099190614e49565b60168190555060056016541115612b55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4c90614ec6565b60405180910390fd5b50505050565b60105481565b601a5481565b600f5481565b612b75612e6e565b73ffffffffffffffffffffffffffffffffffffffff16612b93611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614612be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be090614b68565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4e906153af565b60405180910390fd5b612c6081613c6e565b50565b612c6b612e6e565b73ffffffffffffffffffffffffffffffffffffffff16612c89611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614612cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd690614b68565b60405180910390fd5b600b60039054906101000a900460ff1615612d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d26906152b9565b60405180910390fd5b7f000000000000000000000000c3afb3ad21d96cdb0ef1535732efd427c8ed78d773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015612dcb5750737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b612e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0190615321565b60405180910390fd5b6001600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60145481565b600d5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eda9061543d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f48906154cb565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161302b9190614921565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309d90615559565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613114576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310b906155e7565b60405180910390fd5b600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561319e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131959061564f565b60405180910390fd5b600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615613228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321f906156b7565b60405180910390fd5b5f810361323f5761323a83835f613dcf565b613c69565b600b5f9054906101000a900460ff16156137235761325b611dd0565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156132c95750613299611dd0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561330157505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561333b575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156133545750600560149054906101000a900460ff16155b1561372257600b60019054906101000a900460ff1661344857601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806134085750601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b613447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343e9061571f565b60405180910390fd5b5b601d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156134e55750601c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561358c5760085481111561352f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613526906157ad565b60405180910390fd5b60095461353b8361199f565b826135469190614e49565b1115613587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357e9061583b565b60405180910390fd5b613721565b601d5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156136295750601c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561367857600854811115613673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366a906158c9565b60405180910390fd5b613720565b601c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661371f576009546136d28361199f565b826136dd9190614e49565b111561371e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137159061583b565b60405180910390fd5b5b5b5b5b5b5f61372d3061199f565b90505f600a5482101590508080156137515750600b60029054906101000a900460ff165b801561376a5750600560149054906101000a900460ff16155b80156137bd5750601d5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156138105750601b5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156138635750601b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156138a6576001600560146101000a81548160ff02191690831515021790555061388b614044565b5f600560146101000a81548160ff0219169083151502179055505b5f600560149054906101000a900460ff16159050601b5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806139555750601b5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b1561395e575f90505b5f8115613c5957601d5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156139bc57505f601654115b15613ab8576139e960646139db6016548861434590919063ffffffff16565b61435a90919063ffffffff16565b9050601654601454826139fc9190614d43565b613a069190614db1565b60195f828254613a169190614e49565b9250508190555060165460155482613a2e9190614d43565b613a389190614db1565b601a5f828254613a489190614e49565b9250508190555060165460135482613a609190614d43565b613a6a9190614db1565b60185f828254613a7a9190614e49565b9250508190555060165460125482613a929190614d43565b613a9c9190614db1565b60175f828254613aac9190614e49565b92505081905550613c08565b601d5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015613b0f57505f601154115b15613c0757613b3c6064613b2e6011548861434590919063ffffffff16565b61435a90919063ffffffff16565b9050601154600f5482613b4f9190614d43565b613b599190614db1565b60195f828254613b699190614e49565b9250508190555060115460105482613b819190614d43565b613b8b9190614db1565b601a5f828254613b9b9190614e49565b92505081905550601154600e5482613bb39190614d43565b613bbd9190614db1565b60185f828254613bcd9190614e49565b92505081905550601154600d5482613be59190614d43565b613bef9190614db1565b60175f828254613bff9190614e49565b925050819055505b5b5f811115613c4a57613c28873060175484613c2391906158e7565b613dcf565b5f6017541115613c4957613c418761dead601754613dcf565b5f6017819055505b5b8085613c5691906158e7565b94505b613c64878787613dcf565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e349061598a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613eab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ea290615a18565b60405180910390fd5b613eb683838361436f565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015613f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f3090615aa6565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254613fc79190614e49565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161402b9190614921565b60405180910390a361403e848484614374565b50505050565b5f61404e3061199f565b90505f601a546018546019546140649190614e49565b61406e9190614e49565b90505f8083148061407e57505f82145b1561408b57505050614343565b6014600a5461409a9190614d43565b8311156140b3576014600a546140b09190614d43565b92505b5f600283601954866140c59190614d43565b6140cf9190614db1565b6140d99190614db1565b90505f6140ef828661437990919063ffffffff16565b90505f4790506140fe8261438e565b5f614112824761437990919063ffffffff16565b90505f61415560026019546141279190614db1565b8861413291906158e7565b6141476018548561434590919063ffffffff16565b61435a90919063ffffffff16565b90505f614198600260195461416a9190614db1565b8961417591906158e7565b61418a601a548661434590919063ffffffff16565b61435a90919063ffffffff16565b90505f8183856141a891906158e7565b6141b291906158e7565b90505f6019819055505f6018819055505f601a8190555060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161420e90614f11565b5f6040518083038185875af1925050503d805f8114614248576040519150601f19603f3d011682016040523d82523d5f602084013e61424d565b606091505b5050809850505f8711801561426157505f81115b156142ae5761427087826145c1565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb56186826019546040516142a593929190615ac4565b60405180910390a15b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516142f390614f11565b5f6040518083038185875af1925050503d805f811461432d576040519150601f19603f3d011682016040523d82523d5f602084013e614332565b606091505b505080985050505050505050505050505b565b5f81836143529190614d43565b905092915050565b5f81836143679190614db1565b905092915050565b505050565b505050565b5f818361438691906158e7565b905092915050565b5f600267ffffffffffffffff8111156143aa576143a9615af9565b5b6040519080825280602002602001820160405280156143d85781602001602082028036833780820191505090505b50905030815f815181106143ef576143ee615b26565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015614492573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906144b69190615b67565b816001815181106144ca576144c9615b26565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061452f307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612e75565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401614590959493929190615c82565b5f604051808303815f87803b1580156145a7575f80fd5b505af11580156145b9573d5f803e3d5ffd5b505050505050565b6145ec307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612e75565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f80614635611dd0565b426040518863ffffffff1660e01b815260040161465796959493929190615cda565b60606040518083038185885af1158015614673573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906146989190615d39565b5050505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156146d65780820151818401526020810190506146bb565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6146fb8261469f565b61470581856146a9565b93506147158185602086016146b9565b61471e816146e1565b840191505092915050565b5f6020820190508181035f83015261474181846146f1565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6147768261474d565b9050919050565b6147868161476c565b8114614790575f80fd5b50565b5f813590506147a18161477d565b92915050565b5f819050919050565b6147b9816147a7565b81146147c3575f80fd5b50565b5f813590506147d4816147b0565b92915050565b5f80604083850312156147f0576147ef614749565b5b5f6147fd85828601614793565b925050602061480e858286016147c6565b9150509250929050565b5f8115159050919050565b61482c81614818565b82525050565b5f6020820190506148455f830184614823565b92915050565b5f602082840312156148605761485f614749565b5b5f61486d84828501614793565b91505092915050565b61487f8161476c565b82525050565b5f6020820190506148985f830184614876565b92915050565b5f819050919050565b5f6148c16148bc6148b78461474d565b61489e565b61474d565b9050919050565b5f6148d2826148a7565b9050919050565b5f6148e3826148c8565b9050919050565b6148f3816148d9565b82525050565b5f60208201905061490c5f8301846148ea565b92915050565b61491b816147a7565b82525050565b5f6020820190506149345f830184614912565b92915050565b5f805f6060848603121561495157614950614749565b5b5f61495e86828701614793565b935050602061496f86828701614793565b9250506040614980868287016147c6565b9150509250925092565b5f6020828403121561499f5761499e614749565b5b5f6149ac848285016147c6565b91505092915050565b5f805f80608085870312156149cd576149cc614749565b5b5f6149da878288016147c6565b94505060206149eb878288016147c6565b93505060406149fc878288016147c6565b9250506060614a0d878288016147c6565b91505092959194509250565b5f60ff82169050919050565b614a2e81614a19565b82525050565b5f602082019050614a475f830184614a25565b92915050565b614a5681614818565b8114614a60575f80fd5b50565b5f81359050614a7181614a4d565b92915050565b5f8060408385031215614a8d57614a8c614749565b5b5f614a9a85828601614793565b9250506020614aab85828601614a63565b9150509250929050565b5f60208284031215614aca57614ac9614749565b5b5f614ad784828501614a63565b91505092915050565b5f8060408385031215614af657614af5614749565b5b5f614b0385828601614793565b9250506020614b1485828601614793565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f614b526020836146a9565b9150614b5d82614b1e565b602082019050919050565b5f6020820190508181035f830152614b7f81614b46565b9050919050565b5f81519050614b94816147b0565b92915050565b5f60208284031215614baf57614bae614749565b5b5f614bbc84828501614b86565b91505092915050565b5f604082019050614bd85f830185614876565b614be56020830184614912565b9392505050565b5f81519050614bfa81614a4d565b92915050565b5f60208284031215614c1557614c14614749565b5b5f614c2284828501614bec565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680614c6f57607f821691505b602082108103614c8257614c81614c2b565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f614ce26028836146a9565b9150614ced82614c88565b604082019050919050565b5f6020820190508181035f830152614d0f81614cd6565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614d4d826147a7565b9150614d58836147a7565b9250828202614d66816147a7565b91508282048414831517614d7d57614d7c614d16565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614dbb826147a7565b9150614dc6836147a7565b925082614dd657614dd5614d84565b5b828204905092915050565b7f4d757374206265203e20312e30250000000000000000000000000000000000005f82015250565b5f614e15600e836146a9565b9150614e2082614de1565b602082019050919050565b5f6020820190508181035f830152614e4281614e09565b9050919050565b5f614e53826147a7565b9150614e5e836147a7565b9250828201905080821115614e7657614e75614d16565b5b92915050565b7f466565206d757374206265203c3d2035000000000000000000000000000000005f82015250565b5f614eb06010836146a9565b9150614ebb82614e7c565b602082019050919050565b5f6020820190508181035f830152614edd81614ea4565b9050919050565b5f81905092915050565b50565b5f614efc5f83614ee4565b9150614f0782614eee565b5f82019050919050565b5f614f1b82614ef1565b9150819050919050565b7f776974686472617754726170706564457468206661696c6564000000000000005f82015250565b5f614f596019836146a9565b9150614f6482614f25565b602082019050919050565b5f6020820190508181035f830152614f8681614f4d565b9050919050565b7f506169722072656d6f76616c206e6f74207065726d69747465640000000000005f82015250565b5f614fc1601a836146a9565b9150614fcc82614f8d565b602082019050919050565b5f6020820190508181035f830152614fee81614fb5565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f61504f6025836146a9565b915061505a82614ff5565b604082019050919050565b5f6020820190508181035f83015261507c81615043565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000005f82015250565b5f6150b7601a836146a9565b91506150c282615083565b602082019050919050565b5f6020820190508181035f8301526150e4816150ab565b9050919050565b7f4d757374206265203e20302e35250000000000000000000000000000000000005f82015250565b5f61511f600e836146a9565b915061512a826150eb565b602082019050919050565b5f6020820190508181035f83015261514c81615113565b9050919050565b7f53776170206d757374206265203e20302e3030312520746f74616c20737570705f8201527f6c792e0000000000000000000000000000000000000000000000000000000000602082015250565b5f6151ad6023836146a9565b91506151b882615153565b604082019050919050565b5f6020820190508181035f8301526151da816151a1565b9050919050565b7f53776170206d757374206265203c20302e352520746f74616c20737570706c795f8201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b5f61523b6021836146a9565b9150615246826151e1565b604082019050919050565b5f6020820190508181035f8301526152688161522f565b9050919050565b7f426c61636b6c69737420726967687473207265766f6b656400000000000000005f82015250565b5f6152a36018836146a9565b91506152ae8261526f565b602082019050919050565b5f6020820190508181035f8301526152d081615297565b9050919050565b7f43616e277420626c61636b6c69737420763220726f757465722f706f6f6c2e005f82015250565b5f61530b601f836146a9565b9150615316826152d7565b602082019050919050565b5f6020820190508181035f830152615338816152ff565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6153996026836146a9565b91506153a48261533f565b604082019050919050565b5f6020820190508181035f8301526153c68161538d565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6154276024836146a9565b9150615432826153cd565b604082019050919050565b5f6020820190508181035f8301526154548161541b565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6154b56022836146a9565b91506154c08261545b565b604082019050919050565b5f6020820190508181035f8301526154e2816154a9565b9050919050565b7f45524332303a207472616e73666572696e672066726f6d207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6155436024836146a9565b915061554e826154e9565b604082019050919050565b5f6020820190508181035f83015261557081615537565b9050919050565b7f45524332303a207472616e73666572696e6720746f207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6155d16022836146a9565b91506155dc82615577565b604082019050919050565b5f6020820190508181035f8301526155fe816155c5565b9050919050565b7f53656e64657220626c61636b6c697374656400000000000000000000000000005f82015250565b5f6156396012836146a9565b915061564482615605565b602082019050919050565b5f6020820190508181035f8301526156668161562d565b9050919050565b7f526563656976657220626c61636b6c69737465640000000000000000000000005f82015250565b5f6156a16014836146a9565b91506156ac8261566d565b602082019050919050565b5f6020820190508181035f8301526156ce81615695565b9050919050565b7f54726164696e6720696e6163746976652e0000000000000000000000000000005f82015250565b5f6157096011836146a9565b9150615714826156d5565b602082019050919050565b5f6020820190508181035f830152615736816156fd565b9050919050565b7f4275792065786365656473206d61785472616e73616374696f6e416d6f756e745f8201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b5f6157976021836146a9565b91506157a28261573d565b604082019050919050565b5f6020820190508181035f8301526157c48161578b565b9050919050565b7f6d617857616c6c6574486f6c64416d6f756e7420616d6f756e742065786365655f8201527f6465640000000000000000000000000000000000000000000000000000000000602082015250565b5f6158256023836146a9565b9150615830826157cb565b604082019050919050565b5f6020820190508181035f83015261585281615819565b9050919050565b7f53656c6c2065786365656473206d61785472616e73616374696f6e416d6f756e5f8201527f742e000000000000000000000000000000000000000000000000000000000000602082015250565b5f6158b36022836146a9565b91506158be82615859565b604082019050919050565b5f6020820190508181035f8301526158e0816158a7565b9050919050565b5f6158f1826147a7565b91506158fc836147a7565b925082820390508181111561591457615913614d16565b5b92915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6159746025836146a9565b915061597f8261591a565b604082019050919050565b5f6020820190508181035f8301526159a181615968565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f615a026023836146a9565b9150615a0d826159a8565b604082019050919050565b5f6020820190508181035f830152615a2f816159f6565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f615a906026836146a9565b9150615a9b82615a36565b604082019050919050565b5f6020820190508181035f830152615abd81615a84565b9050919050565b5f606082019050615ad75f830186614912565b615ae46020830185614912565b615af16040830184614912565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050615b618161477d565b92915050565b5f60208284031215615b7c57615b7b614749565b5b5f615b8984828501615b53565b91505092915050565b5f819050919050565b5f615bb5615bb0615bab84615b92565b61489e565b6147a7565b9050919050565b615bc581615b9b565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b615bfd8161476c565b82525050565b5f615c0e8383615bf4565b60208301905092915050565b5f602082019050919050565b5f615c3082615bcb565b615c3a8185615bd5565b9350615c4583615be5565b805f5b83811015615c75578151615c5c8882615c03565b9750615c6783615c1a565b925050600181019050615c48565b5085935050505092915050565b5f60a082019050615c955f830188614912565b615ca26020830187615bbc565b8181036040830152615cb48186615c26565b9050615cc36060830185614876565b615cd06080830184614912565b9695505050505050565b5f60c082019050615ced5f830189614876565b615cfa6020830188614912565b615d076040830187615bbc565b615d146060830186615bbc565b615d216080830185614876565b615d2e60a0830184614912565b979650505050505050565b5f805f60608486031215615d5057615d4f614749565b5b5f615d5d86828701614b86565b9350506020615d6e86828701614b86565b9250506040615d7f86828701614b86565b915050925092509256fea26469706673582212208027d8a641ebcaba0540ea6447675686405b7842d043fab84b6cd423da01fdf764736f6c63430008140033
Verified Source Code Partial Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: No
DeFiBot.sol 1627 lines
/**
DeFiBot
Telegram Trading & Research Bot
Fast Trading, Fast Information and Free-to-use,
We are focused on serving our members and providing the best UX.
Website: DeFiBot.app
Twitter: twitter.com/DeFiBotTeam
Telegram: t.me/DeFiBotHub
Tutorials: docs.defibot.app/Tutorials
Documentation: docs.defibot.app
Youtube: youtube.com/playlist?list=PLtTTDS0-qZI6Kbu0a6rDirBqi41DnzPWE
Email: [email protected]
**/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
pragma experimental ABIEncoderV2;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
////// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
/* pragma solidity ^0.8.0; */
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(
address owner,
address spender
) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
////// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)
/* pragma solidity ^0.8.0; */
/* import "../IERC20.sol"; */
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(
address account
) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(
address owner,
address spender
) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(
address spender,
uint256 amount
) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(
currentAllowance >= amount,
"ERC20: transfer amount exceeds allowance"
);
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(
address spender,
uint256 addedValue
) public virtual returns (bool) {
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender] + addedValue
);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(
address spender,
uint256 subtractedValue
) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(
address tokenA,
address tokenB
) external view returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
////// src/IUniswapV2Pair.sol
/* pragma solidity 0.8.10; */
/* pragma experimental ABIEncoderV2; */
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(
address owner,
address spender
) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function burn(
address to
) external returns (uint256 amount0, uint256 amount1);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB, uint256 liquidity);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract DeFiBot is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
// Private variables
bool private swapInProgress;
//Public Variables
// Wallets for collected fees
address public memberPerksWallet;
address public projectWallet;
// These will prevent whales accumulating all of the supply initially, at maturation these will be turned off
uint256 public maxTransactionAmount;
uint256 public maxWalletHoldAmount;
// How many tokens to collect in fees before swapping back
uint256 public swapTokensAtAmount;
// Variables for initial restricted trading conditions
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapOfCollectedTradingFeesEnabled = false;
bool public blacklistAbilityRenounced = false;
// If MEV Bots or Whales do not behave themselves, we can blacklist them from buying or selling
mapping(address => bool) blacklistedAddresses;
// Buy Fees and totals
uint256 public buyBurnFees;
uint256 public buyCommunityPerkFee;
uint256 public buyLiquidityFee;
uint256 public buyProjectFee;
uint256 public buyTotalFees;
// Sell Fees and totals
uint256 public sellBurnFee;
uint256 public sellCommunityPerkFee;
uint256 public sellLiquidityFee;
uint256 public sellProjectFee;
uint256 public sellTotalFees;
// Tokens Amount for fees in a swap.
uint256 public tokensForBurn;
uint256 public tokensForCommunityPerk;
uint256 public tokensForLiquidity;
uint256 public tokensForProject;
/******************/
// we will want to exclude some Address from fees and max transaction restrictions
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
// Store addresses for automatic market maker pairs. Transfers to these addresses may be
// subject to a maximum transfer amount.
mapping(address => bool) public automatedMarketMakerPairs;
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event memberPerksWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event projectWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("DeFiBot", "DEFIBOT") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
// These are the initial fees, they will be reconfigured as the project matures
// look at https://docs.defibot.app where the plan is described
// or come to our telegram channel Telegram: t.me/DeFiBotHub
uint256 _buyBurnFees = 0;
uint256 _buyCommunityPerkFee = 0;
uint256 _buyLiquidityFee = 2;
uint256 _buyProjectFee = 3;
uint256 _sellBurnFee = 0;
uint256 _sellCommunityPerkFee = 0;
uint256 _sellLiquidityFee = 2;
uint256 _sellProjectFee = 3;
// Supply is fixed at 10 million, there is no further minting.
uint256 totalSupply = 10_000_000 * 1e18;
// Initially 1% is the most any wallet can hold this is to minimise whale
// gaining too much control of the token. This will be adjusted as the project grows.
maxTransactionAmount = 100_000 * 1e18; // 1% or 100,000 tokens
maxWalletHoldAmount = 100_000 * 1e18; // 1% or 100,000 tokens for startrs
swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05%
buyBurnFees = _buyBurnFees;
buyCommunityPerkFee = _buyCommunityPerkFee;
buyLiquidityFee = _buyLiquidityFee;
buyProjectFee = _buyProjectFee;
buyTotalFees =
buyBurnFees +
buyCommunityPerkFee +
buyLiquidityFee +
buyProjectFee;
sellBurnFee = _sellBurnFee;
sellCommunityPerkFee = _sellCommunityPerkFee;
sellLiquidityFee = _sellLiquidityFee;
sellProjectFee = _sellProjectFee;
sellTotalFees =
sellBurnFee +
sellCommunityPerkFee +
sellLiquidityFee +
sellProjectFee;
memberPerksWallet = address(0xeb29535D3d1cF7A578e6aFd4b52A9d846770EF84); // set as memberPerks wallet
projectWallet = address(0x7cB909C374c5Fd919F97097C71c87e20300A0E2B); // set as project wallet
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
/*
_mint is an internal function in ERC20 standard we only call it for the intial mint
*/
_mint(msg.sender, totalSupply);
}
receive() external payable {}
// one way switch, once switched on it can't be switched off
function enableTrading() external onlyOwner {
tradingActive = true;
swapOfCollectedTradingFeesEnabled = true;
}
// remove limits after adoptioin and token matures
function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(
uint256 newAmount
) external onlyOwner returns (bool) {
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap must be > 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap must be < 0.5% total supply."
);
swapTokensAtAmount = newAmount;
return true;
}
//update the max transaction amount allows in a single transaction Min is 0.5%
function updateMaxTransactionAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Must be > 0.5%"
);
maxTransactionAmount = newNum * (10 ** 18);
}
//update the max wallet amount allowed. Min is 1%
function updateMaxWalletHoldAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 10) / 1000) / 1e18,
"Must be > 1.0%"
);
maxWalletHoldAmount = newNum * (10 ** 18);
}
// some address are exempt, like uniswapV2Pair, router, contract, owner etc
function excludeFromMaxTransaction(
address updAds,
bool isEx
) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// is present in case of emergency and temporary suspension of contract sales is required, a last resort
function updateSwapOfCollectedTradingFeesEnabled(
bool enabled
) external onlyOwner {
swapOfCollectedTradingFeesEnabled = enabled;
}
// update the fees for buying these are planned to change, at project maturation members will have input on alloaction
function updateBuyFees(
uint256 _burnFees,
uint256 _communityPerkFee,
uint256 _liquidityFee,
uint256 _projectFee
) external onlyOwner {
buyBurnFees = _burnFees;
buyCommunityPerkFee = _communityPerkFee;
buyLiquidityFee = _liquidityFee;
buyProjectFee = _projectFee;
buyTotalFees =
buyBurnFees +
buyCommunityPerkFee +
buyLiquidityFee +
buyProjectFee;
require(buyTotalFees <= 5, "Fee must be <= 5");
}
// update the fees for selling these are planned to change, at project maturation members will have input on allocation
function updateSellFees(
uint256 _burnFees,
uint256 _communityPerkFee,
uint256 _liquidityFee,
uint256 _projectFee
) external onlyOwner {
sellBurnFee = _burnFees;
sellCommunityPerkFee = _communityPerkFee;
sellLiquidityFee = _liquidityFee;
sellProjectFee = _projectFee;
sellTotalFees =
sellBurnFee +
sellCommunityPerkFee +
sellLiquidityFee +
sellProjectFee;
require(sellTotalFees <= 5, "Fee must be <= 5");
}
// some address are exempt, like uniswapV2Pair, router, contract, owner etc
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(
address pair,
bool value
) public onlyOwner {
require(pair != uniswapV2Pair, "Pair removal not permitted");
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
//modify the community Perks wallet address
function updateMemberPerksWallet(
address newMemberPerksWallet
) external onlyOwner {
emit memberPerksWalletUpdated(newMemberPerksWallet, memberPerksWallet);
memberPerksWallet = newMemberPerksWallet;
}
//modify the project wallet address
function updateProjectWallet(address newWallet) external onlyOwner {
emit projectWalletUpdated(newWallet, projectWallet);
projectWallet = newWallet;
}
//some address may need to be exempt, like uniswapV2Pair, router, contract, owner etc
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
//this will be used for MEV bots who offer nothing to the community
function isBlacklistedAddress(address account) public view returns (bool) {
return blacklistedAddresses[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfering from zero address");
require(to != address(0), "ERC20: transfering to zero address");
require(!blacklistedAddresses[from], "Sender blacklisted");
require(!blacklistedAddresses[to], "Receiver blacklisted");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (limitsInEffect) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapInProgress
) {
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading inactive."
);
}
//handle buy transaction
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"Buy exceeds maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWalletHoldAmount,
"maxWalletHoldAmount amount exceeded"
);
}
//handle sell transactions
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxTransactionAmount,
"Sell exceeds maxTransactionAmount."
);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWalletHoldAmount,
"maxWalletHoldAmount amount exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
swapOfCollectedTradingFeesEnabled &&
!swapInProgress &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapInProgress = true;
swapCollectedTradingFees();
swapInProgress = false;
}
bool takeFee = !swapInProgress;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount.mul(sellTotalFees).div(100);
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForProject += (fees * sellProjectFee) / sellTotalFees;
tokensForCommunityPerk +=
(fees * sellCommunityPerkFee) /
sellTotalFees;
tokensForBurn += (fees * sellBurnFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForProject += (fees * buyProjectFee) / buyTotalFees;
tokensForCommunityPerk +=
(fees * buyCommunityPerkFee) /
buyTotalFees;
tokensForBurn += (fees * buyBurnFees) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees - tokensForBurn);
//Burn Tokens if there are any to burn
if (tokensForBurn > 0) {
super._transfer(from, deadAddress, tokensForBurn);
tokensForBurn = 0;
}
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // accept slippage
0, // accept slippage
owner(),
block.timestamp
);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // any ETH Amount
path,
address(this),
block.timestamp
);
}
function swapCollectedTradingFees() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForCommunityPerk +
tokensForProject;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
// Split the liquidity into half so we can balance the pool
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
totalTokensToSwap /
2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForCommunityPerk = ethBalance
.mul(tokensForCommunityPerk)
.div(totalTokensToSwap - (tokensForLiquidity / 2));
uint256 ethForProject = ethBalance.mul(tokensForProject).div(
totalTokensToSwap - (tokensForLiquidity / 2)
);
uint256 ethForLiquidity = ethBalance -
...
// [truncated — 52925 bytes total]
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
blacklistAbilityRenounced 0x25b62434 → bool
buyBurnFees 0xfeb3ece0 → uint256
buyCommunityPerkFee 0x7d48c8c2 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyProjectFee 0xe7dd050b → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
isBlacklistedAddress 0x0bef0ec7 → bool
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWalletHoldAmount 0x2e1b0cf2 → uint256
memberPerksWallet 0x12096556 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
projectWallet 0xbeb08ab9 → address
sellBurnFee 0xadb873bd → uint256
sellCommunityPerkFee 0xbe5fff29 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellProjectFee 0x323401ed → uint256
sellTotalFees 0x6a486a8e → uint256
swapOfCollectedTradingFeesEnabled 0xd9a018d5 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForBurn 0x1d777856 → uint256
tokensForCommunityPerk 0x617c53eb → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForProject 0xe8338a1c → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 27 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklistAddress 0xf3290d75
address _addr
blacklistLiquidityPool 0xe19b2823
address lpAddress
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceBlacklistAbility 0xc4530d72
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unblacklistAddress 0x45e34949
address _addr
updateBuyFees 0x2e6ed7ef
uint256 _burnFees
uint256 _communityPerkFee
uint256 _liquidityFee
uint256 _projectFee
updateMaxTransactionAmount 0xaa498023
uint256 newNum
updateMaxWalletHoldAmount 0x2a7bab5d
uint256 newNum
updateMemberPerksWallet 0x2a2ad7b4
address newMemberPerksWallet
updateProjectWallet 0x71927628
address newWallet
updateSellFees 0xe7ad9fcd
uint256 _burnFees
uint256 _communityPerkFee
uint256 _liquidityFee
uint256 _projectFee
updateSwapOfCollectedTradingFeesEnabled 0xa4bb11e9
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
withdrawTrappedDefibot 0x05e09eb2
No parameters
withdrawTrappedEth 0x679ae7d1
address toAddr
withdrawTrappedToken 0xa71225f5
address _token
address _to
Recent Transactions
No transactions found for this address