Address Contract Partially Verified
Address
0xCF304C34A6C9Bb2eF7b7C81145B09196E14f90B8
Balance
0 ETH
Nonce
1
Code Size
23167 bytes
Creator
0xe8df3C86...2d53 at tx 0xe8af750a...f0ac2f
Indexed Transactions
0
Contract Bytecode
23167 bytes
0x6080604052600436106103bb575f3560e01c80638ea5220f116101f1578063bbc0c7421161010c578063db9855e81161009f578063f11a24d31161006e578063f11a24d314610e0c578063f2fde38b14610e36578063f637434214610e5e578063f8b45b0514610e88576103c2565b8063db9855e814610d56578063dd62ed3e14610d7e578063e01af92c14610dba578063e884f26014610de2576103c2565b8063c876d0b9116100db578063c876d0b914610cc2578063c8c8ebe414610cec578063c9567bf914610d16578063d85ba06314610d2c576103c2565b8063bbc0c74214610c20578063c024666814610c4a578063c17b5b8c14610c72578063c18bc19514610c9a576103c2565b80639fccce3211610184578063a9059cbb11610153578063a9059cbb14610b58578063aa49802314610b94578063aacebbe314610bbc578063b62496f514610be4576103c2565b80639fccce3214610a9e578063a0d82dc514610ac8578063a457c2d714610af2578063a4c82a0014610b2e576103c2565b80639a7a23d6116101c05780639a7a23d6146109fa5780639c3b4fdc14610a225780639cd441da14610a4c5780639ec22c0e14610a74576103c2565b80638ea5220f14610940578063921369131461096a57806395d89b411461099457806398d7e721146109be576103c2565b806349bd5a5e116102e15780636ddd17131161027457806375f0a8741161024357806375f0a8741461089a5780637bce5a04146108c45780638095d564146108ee5780638da5cb5b14610916576103c2565b80636ddd1713146107f457806370a082311461081e578063715018a61461085a578063751039fc14610870576103c2565b80635a3a96f3116102b05780635a3a96f31461073c578063632af960146107665780636440f719146107a25780636a486a8e146107ca576103c2565b806349bd5a5e146106825780634a62bb65146106ac5780634fbee193146106d6578063501a535414610712576103c2565b80631a8145bb116103595780632c3e486c116103285780632c3e486c146105c85780632e82f1a0146105f2578063313ce5671461061c5780633950935114610646576103c2565b80631a8145bb1461050e5780631f3fed8f1461053857806323b872dd1461056257806327c8f8351461059e576103c2565b80631694505e116103955780631694505e1461046857806318160ddd146104925780631816467f146104bc578063184c16c5146104e4576103c2565b806306fdde03146103c6578063095ea7b3146103f057806310d5de531461042c576103c2565b366103c257005b5f80fd5b3480156103d1575f80fd5b506103da610eb2565b6040516103e791906143e7565b60405180910390f35b3480156103fb575f80fd5b5061041660048036038101906104119190614498565b610f42565b60405161042391906144f0565b60405180910390f35b348015610437575f80fd5b50610452600480360381019061044d9190614509565b610f5f565b60405161045f91906144f0565b60405180910390f35b348015610473575f80fd5b5061047c610f7b565b604051610489919061458f565b60405180910390f35b34801561049d575f80fd5b506104a6610f9f565b6040516104b391906145b7565b60405180910390f35b3480156104c7575f80fd5b506104e260048036038101906104dd9190614509565b610fa8565b005b3480156104ef575f80fd5b506104f86110e2565b60405161050591906145b7565b60405180910390f35b348015610519575f80fd5b506105226110e8565b60405161052f91906145b7565b60405180910390f35b348015610543575f80fd5b5061054c6110ee565b60405161055991906145b7565b60405180910390f35b34801561056d575f80fd5b50610588600480360381019061058391906145d0565b6110f4565b60405161059591906144f0565b60405180910390f35b3480156105a9575f80fd5b506105b26111e6565b6040516105bf919061462f565b60405180910390f35b3480156105d3575f80fd5b506105dc6111ec565b6040516105e991906145b7565b60405180910390f35b3480156105fd575f80fd5b506106066111f2565b60405161061391906144f0565b60405180910390f35b348015610627575f80fd5b50610630611204565b60405161063d9190614663565b60405180910390f35b348015610651575f80fd5b5061066c60048036038101906106679190614498565b61120c565b60405161067991906144f0565b60405180910390f35b34801561068d575f80fd5b506106966112b3565b6040516106a3919061462f565b60405180910390f35b3480156106b7575f80fd5b506106c06112d7565b6040516106cd91906144f0565b60405180910390f35b3480156106e1575f80fd5b506106fc60048036038101906106f79190614509565b6112e9565b60405161070991906144f0565b60405180910390f35b34801561071d575f80fd5b5061072661133b565b60405161073391906145b7565b60405180910390f35b348015610747575f80fd5b50610750611341565b60405161075d91906145b7565b60405180910390f35b348015610771575f80fd5b5061078c6004803603810190610787919061467c565b611347565b60405161079991906144f0565b60405180910390f35b3480156107ad575f80fd5b506107c860048036038101906107c391906146d1565b61149b565b005b3480156107d5575f80fd5b506107de6115d9565b6040516107eb91906145b7565b60405180910390f35b3480156107ff575f80fd5b506108086115df565b60405161081591906144f0565b60405180910390f35b348015610829575f80fd5b50610844600480360381019061083f9190614509565b6115f2565b60405161085191906145b7565b60405180910390f35b348015610865575f80fd5b5061086e611637565b005b34801561087b575f80fd5b506108846116be565b60405161089191906144f0565b60405180910390f35b3480156108a5575f80fd5b506108ae61175b565b6040516108bb919061462f565b60405180910390f35b3480156108cf575f80fd5b506108d8611780565b6040516108e591906145b7565b60405180910390f35b3480156108f9575f80fd5b50610914600480360381019061090f9190614721565b611786565b005b348015610921575f80fd5b5061092a611885565b604051610937919061462f565b60405180910390f35b34801561094b575f80fd5b506109546118ad565b604051610961919061462f565b60405180910390f35b348015610975575f80fd5b5061097e6118d2565b60405161098b91906145b7565b60405180910390f35b34801561099f575f80fd5b506109a86118d8565b6040516109b591906143e7565b60405180910390f35b3480156109c9575f80fd5b506109e460048036038101906109df919061467c565b611968565b6040516109f191906144f0565b60405180910390f35b348015610a05575f80fd5b50610a206004803603810190610a1b9190614771565b611c34565b005b348015610a2d575f80fd5b50610a36611d4c565b604051610a4391906145b7565b60405180910390f35b348015610a57575f80fd5b50610a726004803603810190610a6d91906147af565b611d52565b005b348015610a7f575f80fd5b50610a88611e2b565b604051610a9591906145b7565b60405180910390f35b348015610aa9575f80fd5b50610ab2611e31565b604051610abf91906145b7565b60405180910390f35b348015610ad3575f80fd5b50610adc611e37565b604051610ae991906145b7565b60405180910390f35b348015610afd575f80fd5b50610b186004803603810190610b139190614498565b611e3d565b604051610b2591906144f0565b60405180910390f35b348015610b39575f80fd5b50610b42611f23565b604051610b4f91906145b7565b60405180910390f35b348015610b63575f80fd5b50610b7e6004803603810190610b799190614498565b611f29565b604051610b8b91906144f0565b60405180910390f35b348015610b9f575f80fd5b50610bba6004803603810190610bb5919061467c565b611f46565b005b348015610bc7575f80fd5b50610be26004803603810190610bdd9190614509565b612055565b005b348015610bef575f80fd5b50610c0a6004803603810190610c059190614509565b61218f565b604051610c1791906144f0565b60405180910390f35b348015610c2b575f80fd5b50610c346121ac565b604051610c4191906144f0565b60405180910390f35b348015610c55575f80fd5b50610c706004803603810190610c6b9190614771565b6121bf565b005b348015610c7d575f80fd5b50610c986004803603810190610c939190614721565b6122e1565b005b348015610ca5575f80fd5b50610cc06004803603810190610cbb919061467c565b6123e0565b005b348015610ccd575f80fd5b50610cd66124ef565b604051610ce391906144f0565b60405180910390f35b348015610cf7575f80fd5b50610d00612501565b604051610d0d91906145b7565b60405180910390f35b348015610d21575f80fd5b50610d2a612507565b005b348015610d37575f80fd5b50610d406125d4565b604051610d4d91906145b7565b60405180910390f35b348015610d61575f80fd5b50610d7c6004803603810190610d779190614771565b6125da565b005b348015610d89575f80fd5b50610da46004803603810190610d9f91906147ed565b6126ae565b604051610db191906145b7565b60405180910390f35b348015610dc5575f80fd5b50610de06004803603810190610ddb919061482b565b612730565b005b348015610ded575f80fd5b50610df66127c9565b604051610e0391906144f0565b60405180910390f35b348015610e17575f80fd5b50610e20612866565b604051610e2d91906145b7565b60405180910390f35b348015610e41575f80fd5b50610e5c6004803603810190610e579190614509565b61286c565b005b348015610e69575f80fd5b50610e72612962565b604051610e7f91906145b7565b60405180910390f35b348015610e93575f80fd5b50610e9c612968565b604051610ea991906145b7565b60405180910390f35b606060038054610ec190614883565b80601f0160208091040260200160405190810160405280929190818152602001828054610eed90614883565b8015610f385780601f10610f0f57610100808354040283529160200191610f38565b820191905f5260205f20905b815481529060010190602001808311610f1b57829003601f168201915b5050505050905090565b5f610f55610f4e61296e565b8484612975565b6001905092915050565b60208052805f5260405f205f915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b610fb061296e565b73ffffffffffffffffffffffffffffffffffffffff16610fce611885565b73ffffffffffffffffffffffffffffffffffffffff1614611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b906148fd565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74360405160405180910390a38060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f5481565b601d5481565b601c5481565b5f611100848484612b38565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f61114761296e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050828110156111c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bd9061498b565b60405180910390fd5b6111da856111d261296e565b858403612975565b60019150509392505050565b61dead81565b600d5481565b600c5f9054906101000a900460ff1681565b5f6012905090565b5f6112a961121861296e565b848460015f61122561296e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546112a491906149d6565b612975565b6001905092915050565b7f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e581565b60115f9054906101000a900460ff1681565b5f601f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60095481565b600b5481565b5f61135061296e565b73ffffffffffffffffffffffffffffffffffffffff1661136e611885565b73ffffffffffffffffffffffffffffffffffffffff16146113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb906148fd565b60405180910390fd5b620186a060016113d2610f9f565b6113dc9190614a09565b6113e69190614a77565b821015611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f90614b17565b60405180910390fd5b6103e86005611435610f9f565b61143f9190614a09565b6114499190614a77565b82111561148b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148290614ba5565b60405180910390fd5b8160098190555060019050919050565b6114a361296e565b73ffffffffffffffffffffffffffffffffffffffff166114c1611885565b73ffffffffffffffffffffffffffffffffffffffff1614611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e906148fd565b60405180910390fd5b61025883101561155c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155390614c33565b60405180910390fd5b6103e8821115801561156e57505f8210155b6115ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a490614cc1565b60405180910390fd5b82600d8190555081600b8190555080600c5f6101000a81548160ff021916908315150217905550505050565b60185481565b601160029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61163f61296e565b73ffffffffffffffffffffffffffffffffffffffff1661165d611885565b73ffffffffffffffffffffffffffffffffffffffff16146116b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116aa906148fd565b60405180910390fd5b6116bc5f613882565b565b5f6116c761296e565b73ffffffffffffffffffffffffffffffffffffffff166116e5611885565b73ffffffffffffffffffffffffffffffffffffffff161461173b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611732906148fd565b60405180910390fd5b5f60115f6101000a81548160ff0219169083151502179055506001905090565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60155481565b61178e61296e565b73ffffffffffffffffffffffffffffffffffffffff166117ac611885565b73ffffffffffffffffffffffffffffffffffffffff1614611802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f9906148fd565b60405180910390fd5b82601581905550816016819055508060178190555060175460165460155461182a91906149d6565b61183491906149d6565b601481905550600a6014541115611880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187790614d29565b60405180910390fd5b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60195481565b6060600480546118e790614883565b80601f016020809104026020016040519081016040528092919081815260200182805461191390614883565b801561195e5780601f106119355761010080835404028352916020019161195e565b820191905f5260205f20905b81548152906001019060200180831161194157829003601f168201915b5050505050905090565b5f61197161296e565b73ffffffffffffffffffffffffffffffffffffffff1661198f611885565b73ffffffffffffffffffffffffffffffffffffffff16146119e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dc906148fd565b60405180910390fd5b600f546010546119f591906149d6565b4211611a36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2d90614d91565b60405180910390fd5b6103e8821115611a7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7290614e1f565b60405180910390fd5b426010819055505f3073ffffffffffffffffffffffffffffffffffffffff166370a082317f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e56040518263ffffffff1660e01b8152600401611adc919061462f565b602060405180830381865afa158015611af7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b1b9190614e51565b90505f611b45612710611b37868561394590919063ffffffff16565b61395a90919063ffffffff16565b90505f811115611b7d57611b7c7f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e561dead8361396f565b5b5f7f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e590508073ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015611be6575f80fd5b505af1158015611bf8573d5f803e3d5ffd5b505050507f8462566617872a3fbab94534675218431ff9e204063ee3f4f43d965626a39abb60405160405180910390a160019350505050919050565b611c3c61296e565b73ffffffffffffffffffffffffffffffffffffffff16611c5a611885565b73ffffffffffffffffffffffffffffffffffffffff1614611cb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca7906148fd565b60405180910390fd5b7f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3590614eec565b60405180910390fd5b611d488282613be4565b5050565b60175481565b611d7d307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612975565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f8061dead426040518863ffffffff1660e01b8152600401611de396959493929190614f43565b60606040518083038185885af1158015611dff573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611e249190614fa2565b5050505050565b60105481565b601e5481565b601b5481565b5f8060015f611e4a61296e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015611f04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efb90615062565b60405180910390fd5b611f18611f0f61296e565b85858403612975565b600191505092915050565b600e5481565b5f611f3c611f3561296e565b8484612b38565b6001905092915050565b611f4e61296e565b73ffffffffffffffffffffffffffffffffffffffff16611f6c611885565b73ffffffffffffffffffffffffffffffffffffffff1614611fc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb9906148fd565b60405180910390fd5b670de0b6b3a76400006103e86001611fd8610f9f565b611fe29190614a09565b611fec9190614a77565b611ff69190614a77565b811015612038576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202f906150f0565b60405180910390fd5b670de0b6b3a76400008161204c9190614a09565b60088190555050565b61205d61296e565b73ffffffffffffffffffffffffffffffffffffffff1661207b611885565b73ffffffffffffffffffffffffffffffffffffffff16146120d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c8906148fd565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567460405160405180910390a38060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6021602052805f5260405f205f915054906101000a900460ff1681565b601160019054906101000a900460ff1681565b6121c761296e565b73ffffffffffffffffffffffffffffffffffffffff166121e5611885565b73ffffffffffffffffffffffffffffffffffffffff161461223b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612232906148fd565b60405180910390fd5b80601f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516122d591906144f0565b60405180910390a25050565b6122e961296e565b73ffffffffffffffffffffffffffffffffffffffff16612307611885565b73ffffffffffffffffffffffffffffffffffffffff161461235d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612354906148fd565b60405180910390fd5b8260198190555081601a8190555080601b81905550601b54601a5460195461238591906149d6565b61238f91906149d6565b601881905550601460185411156123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290615158565b60405180910390fd5b505050565b6123e861296e565b73ffffffffffffffffffffffffffffffffffffffff16612406611885565b73ffffffffffffffffffffffffffffffffffffffff161461245c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612453906148fd565b60405180910390fd5b670de0b6b3a76400006103e86005612472610f9f565b61247c9190614a09565b6124869190614a77565b6124909190614a77565b8110156124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c9906151e6565b60405180910390fd5b670de0b6b3a7640000816124e69190614a09565b600a8190555050565b60135f9054906101000a900460ff1681565b60085481565b61250f61296e565b73ffffffffffffffffffffffffffffffffffffffff1661252d611885565b73ffffffffffffffffffffffffffffffffffffffff1614612583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257a906148fd565b60405180910390fd5b61259561258f306115f2565b47611d52565b6001601160016101000a81548160ff0219169083151502179055506001601160026101000a81548160ff02191690831515021790555042600e81905550565b60145481565b6125e261296e565b73ffffffffffffffffffffffffffffffffffffffff16612600611885565b73ffffffffffffffffffffffffffffffffffffffff1614612656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264d906148fd565b60405180910390fd5b8060205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61273861296e565b73ffffffffffffffffffffffffffffffffffffffff16612756611885565b73ffffffffffffffffffffffffffffffffffffffff16146127ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a3906148fd565b60405180910390fd5b80601160026101000a81548160ff02191690831515021790555050565b5f6127d261296e565b73ffffffffffffffffffffffffffffffffffffffff166127f0611885565b73ffffffffffffffffffffffffffffffffffffffff1614612846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283d906148fd565b60405180910390fd5b5f60135f6101000a81548160ff0219169083151502179055506001905090565b60165481565b61287461296e565b73ffffffffffffffffffffffffffffffffffffffff16612892611885565b73ffffffffffffffffffffffffffffffffffffffff16146128e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128df906148fd565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d90615274565b60405180910390fd5b61295f81613882565b50565b601a5481565b600a5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129da90615302565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4890615390565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612b2b91906145b7565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9d9061541e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0b906154ac565b60405180910390fd5b5f8103612c2b57612c2683835f61396f565b61387d565b60115f9054906101000a900460ff16156132d257612c47611885565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612cb55750612c85611885565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612ced57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612d27575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612d405750600560149054906101000a900460ff16155b156132d157601160019054906101000a900460ff16612e3457601f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612df45750601f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612e33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2a90615514565b60405180910390fd5b5b60135f9054906101000a900460ff1615612ff757612e50611885565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612ed757507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612f2f57507f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612ff6574360125f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410612fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612faa906155c8565b60405180910390fd5b4360125f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60215f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015613094575060205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561313b576008548111156130de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130d590615656565b60405180910390fd5b600a546130ea836115f2565b826130f591906149d6565b1115613136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312d906156be565b60405180910390fd5b6132d0565b60215f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156131d8575060205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561322757600854811115613222576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132199061574c565b60405180910390fd5b6132cf565b60205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166132ce57600a54613281836115f2565b8261328c91906149d6565b11156132cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132c4906156be565b60405180910390fd5b5b5b5b5b5b5f6132dc306115f2565b90505f60095482101590508080156133005750601160029054906101000a900460ff165b80156133195750600560149054906101000a900460ff16155b801561336c575060215f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156133bf5750601f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156134125750601f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15613455576001600560146101000a81548160ff02191690831515021790555061343a613c82565b5f600560146101000a81548160ff0219169083151502179055505b600560149054906101000a900460ff161580156134b8575060215f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b80156134cf5750600c5f9054906101000a900460ff165b80156134ea5750600d54600e546134e691906149d6565b4210155b801561353d5750601f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561354c5761354a613f51565b505b5f600560149054906101000a900460ff16159050601f5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806135fb5750601f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15613604575f90505b5f811561386d5760215f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561366257505f601854115b1561372c5761368f60646136816018548861394590919063ffffffff16565b61395a90919063ffffffff16565b9050601854601a54826136a29190614a09565b6136ac9190614a77565b601d5f8282546136bc91906149d6565b92505081905550601854601b54826136d49190614a09565b6136de9190614a77565b601e5f8282546136ee91906149d6565b92505081905550601854601954826137069190614a09565b6137109190614a77565b601c5f82825461372091906149d6565b9250508190555061384a565b60215f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561378357505f601454115b15613849576137b060646137a26014548861394590919063ffffffff16565b61395a90919063ffffffff16565b9050601454601654826137c39190614a09565b6137cd9190614a77565b601d5f8282546137dd91906149d6565b92505081905550601454601754826137f59190614a09565b6137ff9190614a77565b601e5f82825461380f91906149d6565b92505081905550601454601554826138279190614a09565b6138319190614a77565b601c5f82825461384191906149d6565b925050819055505b5b5f81111561385e5761385d87308361396f565b5b808561386a919061576a565b94505b61387887878761396f565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81836139529190614a09565b905092915050565b5f81836139679190614a77565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036139dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139d49061541e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a42906154ac565b60405180910390fd5b613a5683838361410b565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015613ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ad09061580d565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254613b6791906149d6565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613bcb91906145b7565b60405180910390a3613bde848484614110565b50505050565b8060215f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f613c8c306115f2565b90505f601e54601c54601d54613ca291906149d6565b613cac91906149d6565b90505f80831480613cbc57505f82145b15613cc957505050613f4f565b6014600954613cd89190614a09565b831115613cf1576014600954613cee9190614a09565b92505b5f600283601d5486613d039190614a09565b613d0d9190614a77565b613d179190614a77565b90505f613d2d828661411590919063ffffffff16565b90505f479050613d3c8261412a565b5f613d50824761411590919063ffffffff16565b90505f613d7a87613d6c601c548561394590919063ffffffff16565b61395a90919063ffffffff16565b90505f613da488613d96601e548661394590919063ffffffff16565b61395a90919063ffffffff16565b90505f818385613db4919061576a565b613dbe919061576a565b90505f601d819055505f601c819055505f601e8190555060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051613e1a90615858565b5f6040518083038185875af1925050503d805f8114613e54576040519150601f19603f3d011682016040523d82523d5f602084013e613e59565b606091505b5050809850505f87118015613e6d57505f81115b15613eba57613e7c8782611d52565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618682601d54604051613eb19392919061586c565b60405180910390a15b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051613eff90615858565b5f6040518083038185875af1925050503d805f8114613f39576040519150601f19603f3d011682016040523d82523d5f602084013e613f3e565b606091505b505080985050505050505050505050505b565b5f42600e819055505f3073ffffffffffffffffffffffffffffffffffffffff166370a082317f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e56040518263ffffffff1660e01b8152600401613fb3919061462f565b602060405180830381865afa158015613fce573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613ff29190614e51565b90505f61401e612710614010600b548561394590919063ffffffff16565b61395a90919063ffffffff16565b90505f811115614056576140557f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e561dead8361396f565b5b5f7f000000000000000000000000edc1eb59b6d432f83dda5760521ede9477d307e590508073ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156140bf575f80fd5b505af11580156140d1573d5f803e3d5ffd5b505050507f454c91ae84fcc766ddda0dcb289f26b3d0176efeacf4061fc219fa6ca8c3048d60405160405180910390a16001935050505090565b505050565b505050565b5f8183614122919061576a565b905092915050565b5f600267ffffffffffffffff811115614146576141456158a1565b5b6040519080825280602002602001820160405280156141745781602001602082028036833780820191505090505b50905030815f8151811061418b5761418a6158ce565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561422e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190614252919061590f565b81600181518110614266576142656158ce565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506142cb307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612975565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b815260040161432c9594939291906159f1565b5f604051808303815f87803b158015614343575f80fd5b505af1158015614355573d5f803e3d5ffd5b505050505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015614394578082015181840152602081019050614379565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6143b98261435d565b6143c38185614367565b93506143d3818560208601614377565b6143dc8161439f565b840191505092915050565b5f6020820190508181035f8301526143ff81846143af565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6144348261440b565b9050919050565b6144448161442a565b811461444e575f80fd5b50565b5f8135905061445f8161443b565b92915050565b5f819050919050565b61447781614465565b8114614481575f80fd5b50565b5f813590506144928161446e565b92915050565b5f80604083850312156144ae576144ad614407565b5b5f6144bb85828601614451565b92505060206144cc85828601614484565b9150509250929050565b5f8115159050919050565b6144ea816144d6565b82525050565b5f6020820190506145035f8301846144e1565b92915050565b5f6020828403121561451e5761451d614407565b5b5f61452b84828501614451565b91505092915050565b5f819050919050565b5f61455761455261454d8461440b565b614534565b61440b565b9050919050565b5f6145688261453d565b9050919050565b5f6145798261455e565b9050919050565b6145898161456f565b82525050565b5f6020820190506145a25f830184614580565b92915050565b6145b181614465565b82525050565b5f6020820190506145ca5f8301846145a8565b92915050565b5f805f606084860312156145e7576145e6614407565b5b5f6145f486828701614451565b935050602061460586828701614451565b925050604061461686828701614484565b9150509250925092565b6146298161442a565b82525050565b5f6020820190506146425f830184614620565b92915050565b5f60ff82169050919050565b61465d81614648565b82525050565b5f6020820190506146765f830184614654565b92915050565b5f6020828403121561469157614690614407565b5b5f61469e84828501614484565b91505092915050565b6146b0816144d6565b81146146ba575f80fd5b50565b5f813590506146cb816146a7565b92915050565b5f805f606084860312156146e8576146e7614407565b5b5f6146f586828701614484565b935050602061470686828701614484565b9250506040614717868287016146bd565b9150509250925092565b5f805f6060848603121561473857614737614407565b5b5f61474586828701614484565b935050602061475686828701614484565b925050604061476786828701614484565b9150509250925092565b5f806040838503121561478757614786614407565b5b5f61479485828601614451565b92505060206147a5858286016146bd565b9150509250929050565b5f80604083850312156147c5576147c4614407565b5b5f6147d285828601614484565b92505060206147e385828601614484565b9150509250929050565b5f806040838503121561480357614802614407565b5b5f61481085828601614451565b925050602061482185828601614451565b9150509250929050565b5f602082840312156148405761483f614407565b5b5f61484d848285016146bd565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061489a57607f821691505b6020821081036148ad576148ac614856565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6148e7602083614367565b91506148f2826148b3565b602082019050919050565b5f6020820190508181035f830152614914816148db565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f614975602883614367565b91506149808261491b565b604082019050919050565b5f6020820190508181035f8301526149a281614969565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6149e082614465565b91506149eb83614465565b9250828201905080821115614a0357614a026149a9565b5b92915050565b5f614a1382614465565b9150614a1e83614465565b9250828202614a2c81614465565b91508282048414831517614a4357614a426149a9565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614a8182614465565b9150614a8c83614465565b925082614a9c57614a9b614a4a565b5b828204905092915050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f614b01603583614367565b9150614b0c82614aa7565b604082019050919050565b5f6020820190508181035f830152614b2e81614af5565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f614b8f603483614367565b9150614b9a82614b35565b604082019050919050565b5f6020820190508181035f830152614bbc81614b83565b9050919050565b7f63616e6e6f74206275726e204c50206d6f7265206f6674656e207468616e20655f8201527f76657279203130206d696e757465730000000000000000000000000000000000602082015250565b5f614c1d602f83614367565b9150614c2882614bc3565b604082019050919050565b5f6020820190508181035f830152614c4a81614c11565b9050919050565b7f4c50206275726e2070657263656e74206d757374206265206265747765656e205f8201527f302520616e642031302500000000000000000000000000000000000000000000602082015250565b5f614cab602a83614367565b9150614cb682614c51565b604082019050919050565b5f6020820190508181035f830152614cd881614c9f565b9050919050565b7f4d757374206b656570206665657320617420313025206f72206c6573730000005f82015250565b5f614d13601d83614367565b9150614d1e82614cdf565b602082019050919050565b5f6020820190508181035f830152614d4081614d07565b9050919050565b7f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e6973685f82015250565b5f614d7b602083614367565b9150614d8682614d47565b602082019050919050565b5f6020820190508181035f830152614da881614d6f565b9050919050565b7f43616e6e6f74206e756b65206d6f7265207468616e20313025206f6620746f6b5f8201527f656e7320696e204c500000000000000000000000000000000000000000000000602082015250565b5f614e09602983614367565b9150614e1482614daf565b604082019050919050565b5f6020820190508181035f830152614e3681614dfd565b9050919050565b5f81519050614e4b8161446e565b92915050565b5f60208284031215614e6657614e65614407565b5b5f614e7384828501614e3d565b91505092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f614ed6603983614367565b9150614ee182614e7c565b604082019050919050565b5f6020820190508181035f830152614f0381614eca565b9050919050565b5f819050919050565b5f614f2d614f28614f2384614f0a565b614534565b614465565b9050919050565b614f3d81614f13565b82525050565b5f60c082019050614f565f830189614620565b614f6360208301886145a8565b614f706040830187614f34565b614f7d6060830186614f34565b614f8a6080830185614620565b614f9760a08301846145a8565b979650505050505050565b5f805f60608486031215614fb957614fb8614407565b5b5f614fc686828701614e3d565b9350506020614fd786828701614e3d565b9250506040614fe886828701614e3d565b9150509250925092565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f61504c602583614367565b915061505782614ff2565b604082019050919050565b5f6020820190508181035f83015261507981615040565b9050919050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74205f8201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b5f6150da602f83614367565b91506150e582615080565b604082019050919050565b5f6020820190508181035f830152615107816150ce565b9050919050565b7f4d757374206b656570206665657320617420323025206f72206c6573730000005f82015250565b5f615142601d83614367565b915061514d8261510e565b602082019050919050565b5f6020820190508181035f83015261516f81615136565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e205f8201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b5f6151d0602483614367565b91506151db82615176565b604082019050919050565b5f6020820190508181035f8301526151fd816151c4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61525e602683614367565b915061526982615204565b604082019050919050565b5f6020820190508181035f83015261528b81615252565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6152ec602483614367565b91506152f782615292565b604082019050919050565b5f6020820190508181035f830152615319816152e0565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61537a602283614367565b915061538582615320565b604082019050919050565b5f6020820190508181035f8301526153a78161536e565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f615408602583614367565b9150615413826153ae565b604082019050919050565b5f6020820190508181035f830152615435816153fc565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f615496602383614367565b91506154a18261543c565b604082019050919050565b5f6020820190508181035f8301526154c38161548a565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f6154fe601683614367565b9150615509826154ca565b602082019050919050565b5f6020820190508181035f83015261552b816154f2565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b5f6155b2604983614367565b91506155bd82615532565b606082019050919050565b5f6020820190508181035f8301526155df816155a6565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f615640603583614367565b915061564b826155e6565b604082019050919050565b5f6020820190508181035f83015261566d81615634565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f6156a8601383614367565b91506156b382615674565b602082019050919050565b5f6020820190508181035f8301526156d58161569c565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f615736603683614367565b9150615741826156dc565b604082019050919050565b5f6020820190508181035f8301526157638161572a565b9050919050565b5f61577482614465565b915061577f83614465565b9250828203905081811115615797576157966149a9565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6157f7602683614367565b91506158028261579d565b604082019050919050565b5f6020820190508181035f830152615824816157eb565b9050919050565b5f81905092915050565b50565b5f6158435f8361582b565b915061584e82615835565b5f82019050919050565b5f61586282615838565b9150819050919050565b5f60608201905061587f5f8301866145a8565b61588c60208301856145a8565b61589960408301846145a8565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f815190506159098161443b565b92915050565b5f6020828403121561592457615923614407565b5b5f615931848285016158fb565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61596c8161442a565b82525050565b5f61597d8383615963565b60208301905092915050565b5f602082019050919050565b5f61599f8261593a565b6159a98185615944565b93506159b483615954565b805f5b838110156159e45781516159cb8882615972565b97506159d683615989565b9250506001810190506159b7565b5085935050505092915050565b5f60a082019050615a045f8301886145a8565b615a116020830187614f34565b8181036040830152615a238186615995565b9050615a326060830185614620565b615a3f60808301846145a8565b969550505050505056fea26469706673582212204f5b204b6a59b79a49d60fdf4a2c1df9067b915ff86e59d39c3ed183306fa4e864736f6c63430008160033
Verified Source Code Partial Match
Compiler: v0.8.22+commit.4fc1097e
EVM: shanghai
Optimization: No
UpTiSm.sol 1545 lines
/**
* UpTiSm (MESSI)
*
* PRICE GOES UP, UP THEN MOAR UP.
* JOIN THE UPTISTIC REVOLUTION TO TURN EVERY PLEB INTO A BIG WALLET SWINGING CHAD.
*
* https://twitter.com/UpTiSm_ErC20
* https://t.me/UpTiSmPortal
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
/**
* @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);
}
}
/**
* @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);
}
/**
* @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;
}
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 UpTiSm is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokenThreshold;
uint256 public maxWallet;
uint256 public basisPointsForLPBurn = 500; // 25 = .25%
bool public lpBurnEnabled = true;
uint256 public lpBurnFrequency = 600 seconds;
uint256 public lastLpBurnTime;
uint256 public manualBurnFrequency = 69 minutes;
uint256 public lastManualLpBurnTime;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
bool public transferDelayEnabled = true;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
/******************/
// exlcude from fees and max transaction amount
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could 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 marketingWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event devWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event AutoNukeLP();
event ManualNukeLP();
constructor() ERC20("UpTiSm", "MESSI") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
setExcludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
setExcludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 10;
uint256 _buyLiquidityFee = 10;
uint256 _buyDevFee = 10;
uint256 _sellMarketingFee = 10;
uint256 _sellLiquidityFee = 10;
uint256 _sellDevFee = 10;
uint256 totalSupply = 1_000_000_000 * 1e18;
maxTransactionAmount = 10_000_000 * 1e18; // 1% from total supply maxTransactionAmountTxn
// maxWallet = 1_000_000_000 * 1e18; // 1% from total supply maxWallet
maxWallet = 5_000_000 * 1e18; // 1% from total supply maxWallet
swapTokenThreshold = (totalSupply * 5) / 10000; // 0.05% swap wallet
buyMarketingFee = _buyMarketingFee;
buyLiquidityFee = _buyLiquidityFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
sellMarketingFee = _sellMarketingFee;
sellLiquidityFee = _sellLiquidityFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
marketingWallet = address(0x347b25117FB2a68bF8213f6B3559558A7b16891e);
devWallet = address(0x347b25117FB2a68bF8213f6B3559558A7b16891e);
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
setExcludeFromMaxTransaction(owner(), true);
setExcludeFromMaxTransaction(address(this), true);
setExcludeFromMaxTransaction(address(0xdead), true);
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(address(this), totalSupply);
}
receive() external payable {}
// once enabled, can never be turned off
function openTrading() external onlyOwner {
addLiquidity(balanceOf(address(this)), address(this).balance);
tradingActive = true;
swapEnabled = true;
lastLpBurnTime = block.timestamp;
}
// remove limits after token is stable
function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
// disable Transfer delay - cannot be reenabled
function disableTransferDelay() external onlyOwner returns (bool) {
transferDelayEnabled = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokenThreshold(uint256 newAmount)
external
onlyOwner
returns (bool)
{
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTokenThreshold = newAmount;
return true;
}
function updateMaxTransactionAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 1) / 1000) / 1e18,
"Cannot set maxTransactionAmount lower than 0.1%"
);
maxTransactionAmount = newNum * (10**18);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxWallet lower than 0.5%"
);
maxWallet = newNum * (10**18);
}
function setExcludeFromMaxTransaction(address updAds, bool isExcluded)
public
onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isExcluded;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function setSwapEnabled(bool enabled) external onlyOwner {
swapEnabled = enabled;
}
function updateBuyFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _devFee
) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyDevFee = _devFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
require(buyTotalFees <= 10, "Must keep fees at 10% or less");
}
function updateSellFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _devFee
) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellDevFee = _devFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
require(sellTotalFees <= 20, "Must keep fees at 20% or less");
}
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,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateMarketingWallet(address newMarketingWallet)
external
onlyOwner
{
emit marketingWalletUpdated(newMarketingWallet, marketingWallet);
marketingWallet = newMarketingWallet;
}
function updateDevWallet(address newWallet) external onlyOwner {
emit devWalletUpdated(newWallet, devWallet);
devWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
event BoughtEarly(address indexed sniper);
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (limitsInEffect) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
) {
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled) {
if (
to != owner() &&
to != address(uniswapV2Router) &&
to != address(uniswapV2Pair)
) {
require(
_holderLastTransferTimestamp[tx.origin] <
block.number,
"_transfer:: Transfer Delay enabled. Only one purchase per block allowed."
);
_holderLastTransferTimestamp[tx.origin] = block.number;
}
}
//when buy
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxTransactionAmount,
"Sell transfer amount exceeds the maxTransactionAmount."
);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokenThreshold;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
if (
!swapping &&
automatedMarketMakerPairs[to] &&
lpBurnEnabled &&
block.timestamp >= lastLpBurnTime + lpBurnFrequency &&
!_isExcludedFromFees[from]
) {
autoBurnLiquidityPairTokens();
}
bool takeFee = !swapping;
// 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;
tokensForDev += (fees * sellDevFee) / sellTotalFees;
tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForDev += (fees * buyDevFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
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, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) public {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
deadAddress,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing +
tokensForDev;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokenThreshold * 20) {
contractBalance = swapTokenThreshold * 20;
}
// Halve the amount of liquidity tokens
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 ethForMarketing = ethBalance.mul(tokensForMarketing).div(
totalTokensToSwap
);
uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev;
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForDev = 0;
(success, ) = address(devWallet).call{value: ethForDev}("");
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
tokensForLiquidity
);
}
(success, ) = address(marketingWallet).call{
value: address(this).balance
}("");
}
function updateAutoLPBurnSettings(
uint256 _frequencyInSeconds,
uint256 _percent,
bool _Enabled
) external onlyOwner {
require(
_frequencyInSeconds >= 600,
"cannot burn LP more often than every 10 minutes"
);
require(
_percent <= 1000 && _percent >= 0,
"LP burn percent must be between 0% and 10%"
);
lpBurnFrequency = _frequencyInSeconds;
basisPointsForLPBurn = _percent;
lpBurnEnabled = _Enabled;
}
function autoBurnLiquidityPairTokens() internal returns (bool) {
lastLpBurnTime = block.timestamp;
// get balance of liquidity pair
uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);
// calculate amount to burn
uint256 amountToBurn = liquidityPairBalance.mul(basisPointsForLPBurn).div(
10000
);
// pull tokens from pair liquidity and move to dead address permanently
if (amountToBurn > 0) {
super._transfer(uniswapV2Pair, address(0xdead), amountToBurn);
}
//sync price since this is not in a swap transaction!
IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair);
pair.sync();
emit AutoNukeLP();
return true;
}
function manualBurnLPTokens(uint256 percent)
external
onlyOwner
returns (bool)
{
require(
block.timestamp > lastManualLpBurnTime + manualBurnFrequency,
"Must wait for cooldown to finish"
);
require(percent <= 1000, "Cannot nuke more than 10% of tokens in LP");
lastManualLpBurnTime = block.timestamp;
// get balance of liquidity pair
uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);
// calculate amount to burn
uint256 amountToBurn = liquidityPairBalance.mul(percent).div(10000);
// pull tokens from pair liquidity and move to dead address permanently
if (amountToBurn > 0) {
super._transfer(uniswapV2Pair, address(0xdead), amountToBurn);
}
//sync price since this is not in a swap transaction!
IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair);
pair.sync();
emit M...
// [truncated — 50046 bytes total]
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
basisPointsForLPBurn 0x5a3a96f3 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
lastLpBurnTime 0xa4c82a00 → uint256
lastManualLpBurnTime 0x9ec22c0e → uint256
limitsInEffect 0x4a62bb65 → bool
lpBurnEnabled 0x2e82f1a0 → bool
lpBurnFrequency 0x2c3e486c → uint256
manualBurnFrequency 0x184c16c5 → uint256
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokenThreshold 0x501a5354 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 24 functions
These functions modify contract state and require a wallet transaction to execute.
addLiquidity 0x9cd441da
uint256 tokenAmount
uint256 ethAmount
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualBurnLPTokens 0x98d7e721
uint256 percent
returns: bool
openTrading 0xc9567bf9
No parameters
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setExcludeFromMaxTransaction 0xdb9855e8
address updAds
bool isExcluded
setSwapEnabled 0xe01af92c
bool enabled
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateAutoLPBurnSettings 0x6440f719
uint256 _frequencyInSeconds
uint256 _percent
bool _Enabled
updateBuyFees 0x8095d564
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
updateDevWallet 0x1816467f
address newWallet
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxTransactionAmount 0xaa498023
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xc17b5b8c
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
updateSwapTokenThreshold 0x632af960
uint256 newAmount
returns: bool
Recent Transactions
No transactions found for this address