Address Contract Partially Verified
Address
0x3984478D878053Eea2b154bCDf916429d09bfBF9
Balance
0 ETH
Nonce
1
Code Size
23824 bytes
Creator
0x853EfD64...3fdB at tx 0x472c7a39...4ed8d5
Indexed Transactions
0 (1 on-chain, 0.8% indexed)
Contract Bytecode
23824 bytes
0x6080604052600436106103c75760003560e01c80638a8c523c116101f2578063d168d1461161010d578063e7ad9fcd116100a0578063f2fde38b1161006f578063f2fde38b14610e94578063f637434214610ebd578063f8b45b0514610ee8578063fb35c32514610f13576103ce565b8063e7ad9fcd14610dda578063e9187b7414610e03578063f11a24d314610e40578063f14210a614610e6b576103ce565b8063dd62ed3e116100dc578063dd62ed3e14610d0a578063de0aad5314610d47578063e16b486914610d72578063e2f4560514610daf576103ce565b8063d168d14614610c4c578063d257b34f14610c77578063d49703c614610cb4578063d85ba06314610cdf576103ce565b8063a9059cbb11610185578063bbc0c74211610154578063bbc0c74214610ba4578063c024666814610bcf578063c18bc19514610bf8578063c8c8ebe414610c21576103ce565b8063a9059cbb14610ad8578063aacebbe314610b15578063ad8f346714610b3e578063b62496f514610b67576103ce565b806395d89b41116101c157806395d89b4114610a1c5780639a7a23d614610a47578063a002959c14610a70578063a457c2d714610a9b576103ce565b80638a8c523c146109865780638da5cb5b1461099d57806392136913146109c8578063924de9b7146109f3576103ce565b8063313ce567116102e2578063715018a61161027557806375f0a8741161024457806375f0a874146108e9578063782a2e3414610914578063790ca413146109305780637bce5a041461095b576103ce565b8063715018a61461085357806371d55b861461086a578063751039fc146108955780637571336a146108c0576103ce565b80634fbee193116102b15780634fbee193146107835780636a486a8e146107c05780636ddd1713146107eb57806370a0823114610816576103ce565b8063313ce567146106c557806339509351146106f057806349bd5a5e1461072d5780634a62bb6514610758576103ce565b80631a36d9301161035a578063203e727e11610329578063203e727e1461060b57806323b872dd1461063457806327c8f835146106715780632e6ed7ef1461069c576103ce565b80631a36d9301461055f5780631a8145bb1461058a5780631f3fed8f146105b55780631f7d5316146105e0576103ce565b806310d5de531161039657806310d5de531461048f5780631694505e146104cc57806318160ddd146104f75780631a1e2f0714610522576103ce565b806306b091f9146103d357806306fdde03146103fc578063095ea7b3146104275780630cfe2f3f14610464576103ce565b366103ce57005b600080fd5b3480156103df57600080fd5b506103fa60048036038101906103f59190614729565b610f3c565b005b34801561040857600080fd5b506104116110d3565b60405161041e9190614802565b60405180910390f35b34801561043357600080fd5b5061044e60048036038101906104499190614729565b611165565b60405161045b919061483f565b60405180910390f35b34801561047057600080fd5b50610479611183565b6040516104869190614869565b60405180910390f35b34801561049b57600080fd5b506104b660048036038101906104b19190614884565b611189565b6040516104c3919061483f565b60405180910390f35b3480156104d857600080fd5b506104e16111a9565b6040516104ee9190614910565b60405180910390f35b34801561050357600080fd5b5061050c6111cd565b6040516105199190614869565b60405180910390f35b34801561052e57600080fd5b506105496004803603810190610544919061492b565b6111d7565b6040516105569190614967565b60405180910390f35b34801561056b57600080fd5b5061057461120a565b6040516105819190614967565b60405180910390f35b34801561059657600080fd5b5061059f611230565b6040516105ac9190614869565b60405180910390f35b3480156105c157600080fd5b506105ca611236565b6040516105d79190614869565b60405180910390f35b3480156105ec57600080fd5b506105f561123c565b6040516106029190614869565b60405180910390f35b34801561061757600080fd5b50610632600480360381019061062d919061492b565b611242565b005b34801561064057600080fd5b5061065b60048036038101906106569190614982565b611351565b604051610668919061483f565b60405180910390f35b34801561067d57600080fd5b50610686611449565b6040516106939190614967565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be91906149d5565b61144f565b005b3480156106d157600080fd5b506106da611563565b6040516106e79190614a58565b60405180910390f35b3480156106fc57600080fd5b5061071760048036038101906107129190614729565b61156c565b604051610724919061483f565b60405180910390f35b34801561073957600080fd5b50610742611618565b60405161074f9190614967565b60405180910390f35b34801561076457600080fd5b5061076d61163c565b60405161077a919061483f565b60405180910390f35b34801561078f57600080fd5b506107aa60048036038101906107a59190614884565b61164f565b6040516107b7919061483f565b60405180910390f35b3480156107cc57600080fd5b506107d56116a5565b6040516107e29190614869565b60405180910390f35b3480156107f757600080fd5b506108006116ab565b60405161080d919061483f565b60405180910390f35b34801561082257600080fd5b5061083d60048036038101906108389190614884565b6116be565b60405161084a9190614869565b60405180910390f35b34801561085f57600080fd5b50610868611706565b005b34801561087657600080fd5b5061087f61178e565b60405161088c9190614869565b60405180910390f35b3480156108a157600080fd5b506108aa611794565b6040516108b7919061483f565b60405180910390f35b3480156108cc57600080fd5b506108e760048036038101906108e29190614a9f565b611834565b005b3480156108f557600080fd5b506108fe61190b565b60405161090b9190614967565b60405180910390f35b61092e60048036038101906109299190614b19565b611931565b005b34801561093c57600080fd5b50610945611b0d565b6040516109529190614869565b60405180910390f35b34801561096757600080fd5b50610970611b13565b60405161097d9190614869565b60405180910390f35b34801561099257600080fd5b5061099b611b19565b005b3480156109a957600080fd5b506109b2611bcd565b6040516109bf9190614967565b60405180910390f35b3480156109d457600080fd5b506109dd611bf7565b6040516109ea9190614869565b60405180910390f35b3480156109ff57600080fd5b50610a1a6004803603810190610a159190614b46565b611bfd565b005b348015610a2857600080fd5b50610a31611c96565b604051610a3e9190614802565b60405180910390f35b348015610a5357600080fd5b50610a6e6004803603810190610a699190614a9f565b611d28565b005b348015610a7c57600080fd5b50610a85611e41565b604051610a929190614869565b60405180910390f35b348015610aa757600080fd5b50610ac26004803603810190610abd9190614729565b611e47565b604051610acf919061483f565b60405180910390f35b348015610ae457600080fd5b50610aff6004803603810190610afa9190614729565b611f32565b604051610b0c919061483f565b60405180910390f35b348015610b2157600080fd5b50610b3c6004803603810190610b379190614884565b611f50565b005b348015610b4a57600080fd5b50610b656004803603810190610b609190614884565b61208c565b005b348015610b7357600080fd5b50610b8e6004803603810190610b899190614884565b61214c565b604051610b9b919061483f565b60405180910390f35b348015610bb057600080fd5b50610bb961216c565b604051610bc6919061483f565b60405180910390f35b348015610bdb57600080fd5b50610bf66004803603810190610bf19190614a9f565b61217f565b005b348015610c0457600080fd5b50610c1f6004803603810190610c1a919061492b565b6122a4565b005b348015610c2d57600080fd5b50610c366123b3565b604051610c439190614869565b60405180910390f35b348015610c5857600080fd5b50610c616123b9565b604051610c6e9190614869565b60405180910390f35b348015610c8357600080fd5b50610c9e6004803603810190610c99919061492b565b6123ec565b604051610cab919061483f565b60405180910390f35b348015610cc057600080fd5b50610cc961256e565b604051610cd69190614869565b60405180910390f35b348015610ceb57600080fd5b50610cf4612574565b604051610d019190614869565b60405180910390f35b348015610d1657600080fd5b50610d316004803603810190610d2c9190614b73565b61257a565b604051610d3e9190614869565b60405180910390f35b348015610d5357600080fd5b50610d5c612601565b604051610d699190614869565b60405180910390f35b348015610d7e57600080fd5b50610d996004803603810190610d94919061492b565b612607565b604051610da6919061483f565b60405180910390f35b348015610dbb57600080fd5b50610dc4612627565b604051610dd19190614869565b60405180910390f35b348015610de657600080fd5b50610e016004803603810190610dfc91906149d5565b61262d565b005b348015610e0f57600080fd5b50610e2a6004803603810190610e25919061492b565b612741565b604051610e379190614869565b60405180910390f35b348015610e4c57600080fd5b50610e55612759565b604051610e629190614869565b60405180910390f35b348015610e7757600080fd5b50610e926004803603810190610e8d919061492b565b61275f565b005b348015610ea057600080fd5b50610ebb6004803603810190610eb69190614884565b61283e565b005b348015610ec957600080fd5b50610ed2612936565b604051610edf9190614869565b60405180910390f35b348015610ef457600080fd5b50610efd61293c565b604051610f0a9190614869565b60405180910390f35b348015610f1f57600080fd5b50610f3a6004803603810190610f359190614884565b612942565b005b610f44612a7e565b73ffffffffffffffffffffffffffffffffffffffff16610f62611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614610fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faf90614bff565b60405180910390fd5b600082905060008211611044578073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ffe9190614967565b602060405180830381865afa15801561101b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103f9190614c34565b611046565b815b91508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61106c611bcd565b846040518363ffffffff1660e01b815260040161108a929190614c61565b6020604051808303816000875af11580156110a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cd9190614c9f565b50505050565b6060600380546110e290614cfb565b80601f016020809104026020016040519081016040528092919081815260200182805461110e90614cfb565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b5050505050905090565b6000611179611172612a7e565b8484612a86565b6001905092915050565b600f5481565b60216020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b601a6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60175481565b60165481565b60155481565b61124a612a7e565b73ffffffffffffffffffffffffffffffffffffffff16611268611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146112be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b590614bff565b60405180910390fd5b670de0b6b3a76400006103e860016112d46111cd565b6112de9190614d5c565b6112e89190614de5565b6112f29190614de5565b811015611334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132b90614e88565b60405180910390fd5b670de0b6b3a7640000816113489190614d5c565b60088190555050565b600061135e848484612c51565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006113a9612a7e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142090614f1a565b60405180910390fd5b61143d85611435612a7e565b858403612a86565b60019150509392505050565b61dead81565b611457612a7e565b73ffffffffffffffffffffffffffffffffffffffff16611475611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146114cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c290614bff565b60405180910390fd5b83600d8190555082600e8190555081600f8190555080601081905550601054600f54600e54600d546114fd9190614f3a565b6115079190614f3a565b6115119190614f3a565b600c819055506019600c54111561155d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490614fdc565b60405180910390fd5b50505050565b60006012905090565b600061160e611579612a7e565b848460016000611587612a7e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116099190614f3a565b612a86565b6001905092915050565b7f00000000000000000000000047f828dbcbc713668a06cd650293ca0259cc4f5181565b600b60009054906101000a900460ff1681565b6000602060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60115481565b600b60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61170e612a7e565b73ffffffffffffffffffffffffffffffffffffffff1661172c611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614611782576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177990614bff565b60405180910390fd5b61178c60006137aa565b565b60105481565b600061179e612a7e565b73ffffffffffffffffffffffffffffffffffffffff166117bc611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614611812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180990614bff565b60405180910390fd5b6000600b60006101000a81548160ff0219169083151502179055506001905090565b61183c612a7e565b73ffffffffffffffffffffffffffffffffffffffff1661185a611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146118b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a790614bff565b60405180910390fd5b80602160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611939612a7e565b73ffffffffffffffffffffffffffffffffffffffff16611957611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a490614bff565b60405180910390fd5b60648161ffff1611156119f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ec90615048565b60405180910390fd5b6000601d5414611a3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a31906150b4565b60405180910390fd5b60008161ffff161480611a4d5750600034115b611a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8390615120565b60405180910390fd5b600060648261ffff16611a9d6111cd565b611aa79190614d5c565b611ab19190614de5565b9050600081611abe6111cd565b611ac89190615140565b90506000821115611ade57611add8234613870565b5b6000811115611afa57611af930611af3611bcd565b83612c51565b5b42601d8190555043601e81905550505050565b601d5481565b600d5481565b611b21612a7e565b73ffffffffffffffffffffffffffffffffffffffff16611b3f611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c90614bff565b60405180910390fd5b6001600b60016101000a81548160ff0219169083151502179055506001600b60026101000a81548160ff021916908315150217905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60125481565b611c05612a7e565b73ffffffffffffffffffffffffffffffffffffffff16611c23611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614611c79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7090614bff565b60405180910390fd5b80600b60026101000a81548160ff02191690831515021790555050565b606060048054611ca590614cfb565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd190614cfb565b8015611d1e5780601f10611cf357610100808354040283529160200191611d1e565b820191906000526020600020905b815481529060010190602001808311611d0157829003601f168201915b5050505050905090565b611d30612a7e565b73ffffffffffffffffffffffffffffffffffffffff16611d4e611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614611da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9b90614bff565b60405180910390fd5b7f00000000000000000000000047f828dbcbc713668a06cd650293ca0259cc4f5173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2a906151e6565b60405180910390fd5b611e3d828261396c565b5050565b60185481565b60008060016000611e56612a7e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0a90615278565b60405180910390fd5b611f27611f1e612a7e565b85858403612a86565b600191505092915050565b6000611f46611f3f612a7e565b8484612c51565b6001905092915050565b611f58612a7e565b73ffffffffffffffffffffffffffffffffffffffff16611f76611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614611fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc390614bff565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567460405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612094612a7e565b73ffffffffffffffffffffffffffffffffffffffff166120b2611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614612108576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ff90614bff565b60405180910390fd5b80601f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60226020528060005260406000206000915054906101000a900460ff1681565b600b60019054906101000a900460ff1681565b612187612a7e565b73ffffffffffffffffffffffffffffffffffffffff166121a5611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146121fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f290614bff565b60405180910390fd5b80602060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051612298919061483f565b60405180910390a25050565b6122ac612a7e565b73ffffffffffffffffffffffffffffffffffffffff166122ca611bcd565b73ffffffffffffffffffffffffffffffffffffffff1614612320576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231790614bff565b60405180910390fd5b670de0b6b3a76400006103e860056123366111cd565b6123409190614d5c565b61234a9190614de5565b6123549190614de5565b811015612396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238d9061530a565b60405180910390fd5b670de0b6b3a7640000816123aa9190614d5c565b600a8190555050565b60085481565b600080601d54426123ca9190615140565b9050610e10816123da9190614de5565b60016123e69190614f3a565b91505090565b60006123f6612a7e565b73ffffffffffffffffffffffffffffffffffffffff16612414611bcd565b73ffffffffffffffffffffffffffffffffffffffff161461246a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246190614bff565b60405180910390fd5b670de0b6b3a7640000620186a061247f6111cd565b6124899190614de5565b6124939190614de5565b8210156124d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cc9061539c565b60405180910390fd5b670de0b6b3a76400006103e860146124eb6111cd565b6124f59190614d5c565b6124ff9190614de5565b6125099190614de5565b82111561254b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125429061542e565b60405180910390fd5b670de0b6b3a76400008261255f9190614d5c565b60098190555060019050919050565b60195481565b600c5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60145481565b601c6020528060005260406000206000915054906101000a900460ff1681565b60095481565b612635612a7e565b73ffffffffffffffffffffffffffffffffffffffff16612653611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146126a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a090614bff565b60405180910390fd5b836012819055508260138190555081601481905550806015819055506015546014546013546012546126db9190614f3a565b6126e59190614f3a565b6126ef9190614f3a565b6011819055506019601154111561273b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273290614fdc565b60405180910390fd5b50505050565b601b6020528060005260406000206000915090505481565b600e5481565b612767612a7e565b73ffffffffffffffffffffffffffffffffffffffff16612785611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146127db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d290614bff565b60405180910390fd5b600081146127e957806127eb565b475b90506127f5611bcd565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561283a573d6000803e3d6000fd5b5050565b612846612a7e565b73ffffffffffffffffffffffffffffffffffffffff16612864611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146128ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b190614bff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561292a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612921906154c0565b60405180910390fd5b612933816137aa565b50565b60135481565b600a5481565b61294a612a7e565b73ffffffffffffffffffffffffffffffffffffffff16612968611bcd565b73ffffffffffffffffffffffffffffffffffffffff16146129be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b590614bff565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167feb7490a2c1a7f0412cdcde74669f1352d9429069cc4c1f4823f8621f50e6e2e760405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aed90615552565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5d906155e4565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612c449190614869565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb890615676565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2890615708565b60405180910390fd5b60008111612d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6b9061579a565b60405180910390fd5b6000612d7e6123b9565b9050600b60009054906101000a900460ff161561326657612d9d611bcd565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015612e0b5750612ddb611bcd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015612e445750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015612e7e575061dead73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015612e975750600560149054906101000a900460ff16155b1561326557600b60019054906101000a900460ff16612f9157602060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612f515750602060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612f90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8790615806565b60405180910390fd5b5b602260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156130c657600a54612fef846116be565b83612ffa9190614f3a565b111561303b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303290615872565b60405180910390fd5b601b6000828152602001908152602001600020548211156130c15782601a600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601b6000838152602001908152602001600020819055505b613264565b602260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156131695750602160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156131b8576008548211156131b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131aa90615904565b60405180910390fd5b613263565b602160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661326257600a54613215846116be565b836132209190614f3a565b1115613261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325890615872565b60405180910390fd5b5b5b5b5b5b6000613271306116be565b9050600060095482101590508080156132965750600b60029054906101000a900460ff165b80156132af5750600560149054906101000a900460ff16155b80156133055750602260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b801561335b5750602060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156133b15750602060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156133f6576001600560146101000a81548160ff0219169083151502179055506133da83613a0d565b6000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050602060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806134ac5750602060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156134b657600090505b6000811561379557602260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561351957506000601154115b156136195761354660646135386011548961418690919063ffffffff16565b61419c90919063ffffffff16565b9050601154601354826135599190614d5c565b6135639190614de5565b601760008282546135749190614f3a565b925050819055506011546014548261358c9190614d5c565b6135969190614de5565b601860008282546135a79190614f3a565b92505081905550601154601254826135bf9190614d5c565b6135c99190614de5565b601660008282546135da9190614f3a565b92505081905550601154601554826135f29190614d5c565b6135fc9190614de5565b6019600082825461360d9190614f3a565b92505081905550613771565b602260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561367457506000600c54115b15613770576136a16064613693600c548961418690919063ffffffff16565b61419c90919063ffffffff16565b9050600c54600e54826136b49190614d5c565b6136be9190614de5565b601760008282546136cf9190614f3a565b92505081905550600c54600f54826136e79190614d5c565b6136f19190614de5565b601860008282546137029190614f3a565b92505081905550600c54600d548261371a9190614d5c565b6137249190614de5565b601660008282546137359190614f3a565b92505081905550600c546010548261374d9190614d5c565b6137579190614de5565b601960008282546137689190614f3a565b925050819055505b5b6000811115613786576137858830836141b2565b5b80866137929190615140565b95505b6137a08888886141b2565b5050505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61389b307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612a86565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b81526004016139229695949392919061595f565b60606040518083038185885af1158015613940573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061396591906159c0565b5050505050565b80602260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b6000613a18306116be565b90506000600183613a299190615140565b9050600183118015613a4e57506000601b600083815260200190815260200160002054115b8015613a785750601c600082815260200190815260200160002060009054906101000a900460ff16155b15613e6f576000601954601854601654601754613a959190614f3a565b613a9f9190614f3a565b613aa99190614f3a565b9050600080841480613abb5750600082145b15613ac95750505050614183565b6014600954613ad89190614d5c565b841115613af1576014600954613aee9190614d5c565b93505b600060028360175487613b049190614d5c565b613b0e9190614de5565b613b189190614de5565b90506000613b2f828761443390919063ffffffff16565b90506000479050613b3f82614449565b6000613b54824761443390919063ffffffff16565b90506000613b7f87613b716016548561418690919063ffffffff16565b61419c90919063ffffffff16565b90506000613baa88613b9c6018548661418690919063ffffffff16565b61419c90919063ffffffff16565b90506000613bd589613bc76019548761418690919063ffffffff16565b61419c90919063ffffffff16565b9050600081838587613be79190615140565b613bf19190615140565b613bfb9190615140565b90506000601781905550600060168190555060006018819055506000601981905550601a60008c815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1683604051613c7490615a44565b60006040518083038185875af1925050503d8060008114613cb1576040519150601f19603f3d011682016040523d82523d6000602084013e613cb6565b606091505b50508099505088601c60008d815260200190815260200160002060006101000a81548160ff021916908315150217905550600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051613d2d90615a44565b60006040518083038185875af1925050503d8060008114613d6a576040519150601f19603f3d011682016040523d82523d6000602084013e613d6f565b606091505b505080995050600088118015613d855750600081115b15613dd257613d948882613870565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618782601754604051613dc993929190615a59565b60405180910390a15b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051613e1890615a44565b60006040518083038185875af1925050503d8060008114613e55576040519150601f19603f3d011682016040523d82523d6000602084013e613e5a565b606091505b50508099505050505050505050505050614180565b60095460185483613e809190615140565b111561417f576000601954601654601754613e9b9190614f3a565b613ea59190614f3a565b9050600080841480613eb75750600082145b15613ec55750505050614183565b6014600954613ed49190614d5c565b841115613eed576014600954613eea9190614d5c565b93505b600060028360175460185488613f039190615140565b613f0d9190614d5c565b613f179190614de5565b613f219190614de5565b90506000613f4c601854613f3e848961443390919063ffffffff16565b61443390919063ffffffff16565b90506000479050613f5c82614449565b6000613f71824761443390919063ffffffff16565b90506000613f9c87613f8e6016548561418690919063ffffffff16565b61419c90919063ffffffff16565b90506000613fc788613fb96019548661418690919063ffffffff16565b61419c90919063ffffffff16565b90506000818385613fd89190615140565b613fe29190615140565b9050600060178190555060006016819055506000601981905550600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161404290615a44565b60006040518083038185875af1925050503d806000811461407f576040519150601f19603f3d011682016040523d82523d6000602084013e614084565b606091505b50508098505060008711801561409a5750600081115b156140e7576140a98782613870565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb56186826017546040516140de93929190615a59565b60405180910390a15b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161412d90615a44565b60006040518083038185875af1925050503d806000811461416a576040519150601f19603f3d011682016040523d82523d6000602084013e61416f565b606091505b5050809850505050505050505050505b5b50505b50565b600081836141949190614d5c565b905092915050565b600081836141aa9190614de5565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415614222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161421990615676565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161428990615708565b60405180910390fd5b61429d838383614686565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015614323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161431a90615b02565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546143b69190614f3a565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161441a9190614869565b60405180910390a361442d84848461468b565b50505050565b600081836144419190615140565b905092915050565b6000600267ffffffffffffffff81111561446657614465615b22565b5b6040519080825280602002602001820160405280156144945781602001602082028036833780820191505090505b50905030816000815181106144ac576144ab615b51565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015614551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145759190615b95565b8160018151811061458957614588615b51565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506145ee307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612a86565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401614650959493929190615c80565b600060405180830381600087803b15801561466a57600080fd5b505af115801561467e573d6000803e3d6000fd5b505050505050565b505050565b505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006146c082614695565b9050919050565b6146d0816146b5565b81146146db57600080fd5b50565b6000813590506146ed816146c7565b92915050565b6000819050919050565b614706816146f3565b811461471157600080fd5b50565b600081359050614723816146fd565b92915050565b600080604083850312156147405761473f614690565b5b600061474e858286016146de565b925050602061475f85828601614714565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156147a3578082015181840152602081019050614788565b838111156147b2576000848401525b50505050565b6000601f19601f8301169050919050565b60006147d482614769565b6147de8185614774565b93506147ee818560208601614785565b6147f7816147b8565b840191505092915050565b6000602082019050818103600083015261481c81846147c9565b905092915050565b60008115159050919050565b61483981614824565b82525050565b60006020820190506148546000830184614830565b92915050565b614863816146f3565b82525050565b600060208201905061487e600083018461485a565b92915050565b60006020828403121561489a57614899614690565b5b60006148a8848285016146de565b91505092915050565b6000819050919050565b60006148d66148d16148cc84614695565b6148b1565b614695565b9050919050565b60006148e8826148bb565b9050919050565b60006148fa826148dd565b9050919050565b61490a816148ef565b82525050565b60006020820190506149256000830184614901565b92915050565b60006020828403121561494157614940614690565b5b600061494f84828501614714565b91505092915050565b614961816146b5565b82525050565b600060208201905061497c6000830184614958565b92915050565b60008060006060848603121561499b5761499a614690565b5b60006149a9868287016146de565b93505060206149ba868287016146de565b92505060406149cb86828701614714565b9150509250925092565b600080600080608085870312156149ef576149ee614690565b5b60006149fd87828801614714565b9450506020614a0e87828801614714565b9350506040614a1f87828801614714565b9250506060614a3087828801614714565b91505092959194509250565b600060ff82169050919050565b614a5281614a3c565b82525050565b6000602082019050614a6d6000830184614a49565b92915050565b614a7c81614824565b8114614a8757600080fd5b50565b600081359050614a9981614a73565b92915050565b60008060408385031215614ab657614ab5614690565b5b6000614ac4858286016146de565b9250506020614ad585828601614a8a565b9150509250929050565b600061ffff82169050919050565b614af681614adf565b8114614b0157600080fd5b50565b600081359050614b1381614aed565b92915050565b600060208284031215614b2f57614b2e614690565b5b6000614b3d84828501614b04565b91505092915050565b600060208284031215614b5c57614b5b614690565b5b6000614b6a84828501614a8a565b91505092915050565b60008060408385031215614b8a57614b89614690565b5b6000614b98858286016146de565b9250506020614ba9858286016146de565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614be9602083614774565b9150614bf482614bb3565b602082019050919050565b60006020820190508181036000830152614c1881614bdc565b9050919050565b600081519050614c2e816146fd565b92915050565b600060208284031215614c4a57614c49614690565b5b6000614c5884828501614c1f565b91505092915050565b6000604082019050614c766000830185614958565b614c83602083018461485a565b9392505050565b600081519050614c9981614a73565b92915050565b600060208284031215614cb557614cb4614690565b5b6000614cc384828501614c8a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614d1357607f821691505b60208210811415614d2757614d26614ccc565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614d67826146f3565b9150614d72836146f3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614dab57614daa614d2d565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614df0826146f3565b9150614dfb836146f3565b925082614e0b57614e0a614db6565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060008201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b6000614e72602f83614774565b9150614e7d82614e16565b604082019050919050565b60006020820190508181036000830152614ea181614e65565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000614f04602883614774565b9150614f0f82614ea8565b604082019050919050565b60006020820190508181036000830152614f3381614ef7565b9050919050565b6000614f45826146f3565b9150614f50836146f3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f8557614f84614d2d565b5b828201905092915050565b7f4d757374206b656570206665657320617420323525206f72206c657373000000600082015250565b6000614fc6601d83614774565b9150614fd182614f90565b602082019050919050565b60006020820190508181036000830152614ff581614fb9565b9050919050565b7f6d757374206265206265747765656e20302d3130302500000000000000000000600082015250565b6000615032601683614774565b915061503d82614ffc565b602082019050919050565b6000602082019050818103600083015261506181615025565b9050919050565b7f616c7265616479206c61756e6368656400000000000000000000000000000000600082015250565b600061509e601083614774565b91506150a982615068565b602082019050919050565b600060208201905081810360008301526150cd81615091565b9050919050565b7f6e6565642045544820666f7220696e697469616c204c50000000000000000000600082015250565b600061510a601783614774565b9150615115826150d4565b602082019050919050565b60006020820190508181036000830152615139816150fd565b9050919050565b600061514b826146f3565b9150615156836146f3565b92508282101561516957615168614d2d565b5b828203905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006151d0603983614774565b91506151db82615174565b604082019050919050565b600060208201905081810360008301526151ff816151c3565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000615262602583614774565b915061526d82615206565b604082019050919050565b6000602082019050818103600083015261529181615255565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b60006152f4602483614774565b91506152ff82615298565b604082019050919050565b60006020820190508181036000830152615323816152e7565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b6000615386603583614774565b91506153918261532a565b604082019050919050565b600060208201905081810360008301526153b581615379565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20322520746f74616c20737570706c792e0000000000000000000000000000602082015250565b6000615418603283614774565b9150615423826153bc565b604082019050919050565b600060208201905081810360008301526154478161540b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154aa602683614774565b91506154b58261544e565b604082019050919050565b600060208201905081810360008301526154d98161549d565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061553c602483614774565b9150615547826154e0565b604082019050919050565b6000602082019050818103600083015261556b8161552f565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006155ce602283614774565b91506155d982615572565b604082019050919050565b600060208201905081810360008301526155fd816155c1565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615660602583614774565b915061566b82615604565b604082019050919050565b6000602082019050818103600083015261568f81615653565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006156f2602383614774565b91506156fd82615696565b604082019050919050565b60006020820190508181036000830152615721816156e5565b9050919050565b7f45524332303a207472616e73666572206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b6000615784602983614774565b915061578f82615728565b604082019050919050565b600060208201905081810360008301526157b381615777565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b60006157f0601683614774565b91506157fb826157ba565b602082019050919050565b6000602082019050818103600083015261581f816157e3565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b600061585c601383614774565b915061586782615826565b602082019050919050565b6000602082019050818103600083015261588b8161584f565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b60006158ee603683614774565b91506158f982615892565b604082019050919050565b6000602082019050818103600083015261591d816158e1565b9050919050565b6000819050919050565b600061594961594461593f84615924565b6148b1565b6146f3565b9050919050565b6159598161592e565b82525050565b600060c0820190506159746000830189614958565b615981602083018861485a565b61598e6040830187615950565b61599b6060830186615950565b6159a86080830185614958565b6159b560a083018461485a565b979650505050505050565b6000806000606084860312156159d9576159d8614690565b5b60006159e786828701614c1f565b93505060206159f886828701614c1f565b9250506040615a0986828701614c1f565b9150509250925092565b600081905092915050565b50565b6000615a2e600083615a13565b9150615a3982615a1e565b600082019050919050565b6000615a4f82615a21565b9150819050919050565b6000606082019050615a6e600083018661485a565b615a7b602083018561485a565b615a88604083018461485a565b949350505050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000615aec602683614774565b9150615af782615a90565b604082019050919050565b60006020820190508181036000830152615b1b81615adf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050615b8f816146c7565b92915050565b600060208284031215615bab57615baa614690565b5b6000615bb984828501615b80565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b615bf7816146b5565b82525050565b6000615c098383615bee565b60208301905092915050565b6000602082019050919050565b6000615c2d82615bc2565b615c378185615bcd565b9350615c4283615bde565b8060005b83811015615c73578151615c5a8882615bfd565b9750615c6583615c15565b925050600181019050615c46565b5085935050505092915050565b600060a082019050615c95600083018861485a565b615ca26020830187615950565b8181036040830152615cb48186615c22565b9050615cc36060830185614958565b615cd0608083018461485a565b969550505050505056fea2646970667358221220fa374b2c953560b83a2270dd1bab8471c5d531593e5e213a839cc64d9734c87d64736f6c634300080a0033
Verified Source Code Partial Match
Compiler: v0.8.10+commit.fc410830
EVM: london
Optimization: No
CryptoIsDead.sol 1306 lines
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
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 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
/**
* @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);
}
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;
*/
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 {}
}
library SafeMath {
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);
}
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
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 CryptoIsDead 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 graveyardWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyRewardFee;
uint256 public buyGraveyardFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellRewardFee;
uint256 public sellGraveyardFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForReward;
uint256 public tokensForGraveyard;
mapping(uint256 => address) public biggestBuyer;
mapping(uint256 => uint256) public biggestBuyerAmount;
mapping(uint256 => bool) public biggestBuyerPaid;
uint256 private constant ONE_HOUR = 60 * 60;
uint256 private constant PERCENT_DENOMENATOR = 100;
uint256 public launchTime;
uint256 private _launchBlock;
address private _lpReceiver;
/******************/
// 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 graveyardWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("CRYPTO IS DEAD", "DEAD") {
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);
uint256 _buyMarketingFee = 3;
uint256 _buyLiquidityFee = 1;
uint256 _buyRewardFee = 2;
uint256 _buyGraveyardFee = 2;
uint256 _sellMarketingFee = 3;
uint256 _sellLiquidityFee = 1;
uint256 _sellRewardFee = 2;
uint256 _sellGraveyardFee = 2;
uint256 totalSupply = 1_000_000_000 * 1e18;
maxTransactionAmount = 5_000_000 * 1e18; // 0.5% from total supply maxTransactionAmountTxn
maxWallet = 20_000_000 * 1e18; // 2% from total supply maxWallet
swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05% swap wallet
buyMarketingFee = _buyMarketingFee;
buyLiquidityFee = _buyLiquidityFee;
buyRewardFee = _buyRewardFee;
buyGraveyardFee = _buyGraveyardFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyRewardFee + buyGraveyardFee;
sellMarketingFee = _sellMarketingFee;
sellLiquidityFee = _sellLiquidityFee;
sellRewardFee = _sellRewardFee;
sellGraveyardFee = _sellGraveyardFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellRewardFee + sellGraveyardFee;
marketingWallet = address(0x1FB1E46c954778CF285AB39ccd51Dd9C49c0Ee76); // set as marketing wallet
graveyardWallet = address(0xDc7B1294041b9071aa783015E6f95833Fd0559Af); // set as graveyard 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.sol that is only called here,
and CANNOT be called ever again
*/
_mint(address(this), totalSupply);
}
receive() external payable {}
// _percent: 1 == 0.1%, 1000 = 100%
function launch(uint16 _percent) external payable onlyOwner {
require(_percent <= PERCENT_DENOMENATOR, 'must be between 0-100%');
require(launchTime == 0, 'already launched');
require(_percent == 0 || msg.value > 0, 'need ETH for initial LP');
uint256 _lpSupply = (totalSupply() * _percent) / PERCENT_DENOMENATOR;
uint256 _leftover = totalSupply() - _lpSupply;
if (_lpSupply > 0) {
addLiquidity(_lpSupply, msg.value);
}
if (_leftover > 0) {
_transfer(address(this), owner(), _leftover);
}
launchTime = block.timestamp;
_launchBlock = block.number;
}
// starts at 1 and increments forever every hour after launch
function getHour() public view returns (uint256) {
uint256 secondsSinceLaunch = block.timestamp - launchTime;
return 1 + (secondsSinceLaunch / ONE_HOUR);
}
function setLpReceiver(address _wallet) external onlyOwner {
_lpReceiver = _wallet;
}
// once enabled, can never be turned off
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
}
// remove limits after token is stable
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() / 100000 / 1e18,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 20) / 1000 / 1e18,
"Swap amount cannot be higher than 2% total supply."
);
swapTokensAtAmount = newAmount * (10**18);
return true;
}
function updateMaxTxnAmount(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 excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner {
swapEnabled = enabled;
}
function updateBuyFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _rewardFee,
uint256 _graveyardFee
) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyRewardFee = _rewardFee;
buyGraveyardFee = _graveyardFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyRewardFee + buyGraveyardFee;
require(buyTotalFees <= 25, "Must keep fees at 25% or less");
}
function updateSellFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _rewardFee,
uint256 _graveyardFee
) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellRewardFee = _rewardFee;
sellGraveyardFee = _graveyardFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellRewardFee + sellGraveyardFee;
require(sellTotalFees <= 25, "Must keep fees at 25% 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 updateGraveyardWallet(address newGraveyardWallet) external onlyOwner {
emit graveyardWalletUpdated(newGraveyardWallet, graveyardWallet);
graveyardWallet = newGraveyardWallet;
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
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");
require(amount > 0, "ERC20: transfer must be greater than zero");
uint256 _hourAfterLaunch = getHour();
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."
);
}
//when buy
if (
automatedMarketMakerPairs[from]
) {
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
if(amount > biggestBuyerAmount[_hourAfterLaunch]) {
biggestBuyer[_hourAfterLaunch] = to;
biggestBuyerAmount[_hourAfterLaunch] = amount;
}
}
//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 >= swapTokensAtAmount;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack(_hourAfterLaunch);
swapping = false;
}
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;
tokensForReward += (fees * sellRewardFee) / sellTotalFees;
tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;
tokensForGraveyard += (fees * sellGraveyardFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForReward += (fees * buyRewardFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
tokensForGraveyard += (fees * buyGraveyardFee) / 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) private {
// 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
_lpReceiver,
block.timestamp
);
}
function withdrawTokens(address _tokenAddy, uint256 _amount) external onlyOwner {
IERC20 _token = IERC20(_tokenAddy);
_amount = _amount > 0 ? _amount : _token.balanceOf(address(this));
_token.transfer(owner(), _amount);
}
function withdrawETH(uint256 _amountWei) external onlyOwner {
_amountWei = _amountWei == 0 ? address(this).balance : _amountWei;
payable(owner()).transfer(_amountWei);
}
function swapBack(uint256 _currentHour) private {
uint256 contractBalance = balanceOf(address(this));
uint256 _prevHour = _currentHour - 1;
if (_currentHour > 1 &&
biggestBuyerAmount[_prevHour] > 0 &&
!biggestBuyerPaid[_prevHour]
) {
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing +
tokensForReward +
tokensForGraveyard;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 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 ethForReward = ethBalance.mul(tokensForReward).div(totalTokensToSwap);
uint256 ethForGraveyard = ethBalance.mul(tokensForGraveyard).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForReward - ethForGraveyard;
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForReward = 0;
tokensForGraveyard = 0;
(success, ) = address(biggestBuyer[_prevHour]).call{value: ethForReward}("");
biggestBuyerPaid[_prevHour] = success;
(success, ) = address(graveyardWallet).call{value: ethForGraveyard}("");
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
tokensForLiquidity
);
}
(success, ) = address(marketingWallet).call{
value: address(this).balance
}("");
} else if ((contractBalance - tokensForReward) > swapTokensAtAmount) {
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing + tokensForGraveyard;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = ((contractBalance - tokensForReward) * tokensForLiquidity) /
totalTokensToSwap /
2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens).sub(tokensForReward);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(
totalTokensToSwap
);
uint256 ethForGraveyard = ethBalance.mul(tokensForGraveyard).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForGraveyard;
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForGraveyard = 0;
(success, ) = address(graveyardWallet).call{value: ethForGraveyard}("");
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
tokensForLiquidity
);
}
(success, ) = address(marketingWallet).call{
value: address(this).balance
}("");
}
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
biggestBuyer 0x1a1e2f07 → address
biggestBuyerAmount 0xe9187b74 → uint256
biggestBuyerPaid 0xe16b4869 → bool
buyGraveyardFee 0x71d55b86 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyRewardFee 0x0cfe2f3f → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
getHour 0xd168d146 → uint256
graveyardWallet 0x1a36d930 → address
isExcludedFromFees 0x4fbee193 → bool
launchTime 0x790ca413 → uint256
limitsInEffect 0x4a62bb65 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellGraveyardFee 0x1f7d5316 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellRewardFee 0xde0aad53 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForGraveyard 0xd49703c6 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
tokensForReward 0xa002959c → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 24 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
launch 0x782a2e34
uint16 _percent
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setLpReceiver 0xad8f3467
address _wallet
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x2e6ed7ef
uint256 _marketingFee
uint256 _liquidityFee
uint256 _rewardFee
uint256 _graveyardFee
updateGraveyardWallet 0xfb35c325
address newGraveyardWallet
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xe7ad9fcd
uint256 _marketingFee
uint256 _liquidityFee
uint256 _rewardFee
uint256 _graveyardFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
withdrawETH 0xf14210a6
uint256 _amountWei
withdrawTokens 0x06b091f9
address _tokenAddy
uint256 _amount
Recent Transactions
This address has 1 on-chain transactions, but only 0.8% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →