Address Contract Partially Verified
Address
0x6BB0054Da18CAaB2Edd6DF6Db41bACD5268CF79F
Balance
0 ETH
Nonce
1
Code Size
22976 bytes
Creator
0xBFe3e45b...5A8F at tx 0x5d6262df...70343a
Indexed Transactions
0 (1 on-chain, 1.6% indexed)
Contract Bytecode
22976 bytes
0x60806040526004361061031e5760003560e01c806370a08231116101ab578063afcf2fc4116100f7578063e547be6911610095578063edc2fcfb1161006f578063edc2fcfb14610be3578063f0f165af14610c0c578063f2fde38b14610c35578063fdeb889f14610c5e57610325565b8063e547be6914610b68578063ea2f0b3714610b91578063ec28438a14610bba57610325565b8063caccd7f7116100d1578063caccd7f714610a9a578063cba0e99614610ac5578063dcc345f214610b02578063dd62ed3e14610b2b57610325565b8063afcf2fc414610a1b578063c0b0fda214610a46578063c49b9a8014610a7157610325565b8063906e9dd011610164578063a457c2d71161013e578063a457c2d71461094d578063a5ece9411461098a578063a9059cbb146109b5578063a94c8dd2146109f257610325565b8063906e9dd0146108ce57806395d89b41146108f7578063a073d37f1461092257610325565b806370a08231146107d0578063715018a61461080d57806379cc6790146108245780637d1db4a51461084d5780638a0623b4146108785780638da5cb5b146108a357610325565b8063395093511161026a57806349bd5a5e116102235780635342acb4116101fd5780635342acb4146107185780636049876e14610755578063625e764c1461077e5780636c317232146107a757610325565b806349bd5a5e146106995780634a74bb02146106c45780634bf2c7c9146106ef57610325565b8063395093511461057757806340f8007a146105b457806342966c68146105df578063437823ec146106085780634549b0391461063157806348de478e1461066e57610325565b806320c7c596116102d757806327c8f835116102b157806327c8f835146104cb578063313ce567146104f657806332035504146105215780633206b4aa1461054c57610325565b806320c7c5961461043a57806322976e0d1461046357806323b872dd1461048e57610325565b8063053ab1821461032a57806306fdde0314610353578063095ea7b31461037e5780630c9be46d146103bb5780631694505e146103e457806318160ddd1461040f57610325565b3661032557005b600080fd5b34801561033657600080fd5b50610351600480360381019061034c9190614589565b610c87565b005b34801561035f57600080fd5b50610368610deb565b604051610375919061464f565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a091906146cf565b610e7d565b6040516103b2919061472a565b60405180910390f35b3480156103c757600080fd5b506103e260048036038101906103dd9190614745565b610e9b565b005b3480156103f057600080fd5b506103f9610f5b565b60405161040691906147d1565b60405180910390f35b34801561041b57600080fd5b50610424610f7f565b60405161043191906147fb565b60405180910390f35b34801561044657600080fd5b50610461600480360381019061045c9190614589565b610f89565b005b34801561046f57600080fd5b5061047861103f565b60405161048591906147fb565b60405180910390f35b34801561049a57600080fd5b506104b560048036038101906104b09190614816565b611045565b6040516104c2919061472a565b60405180910390f35b3480156104d757600080fd5b506104e061113d565b6040516104ed9190614878565b60405180910390f35b34801561050257600080fd5b5061050b611161565b60405161051891906148af565b60405180910390f35b34801561052d57600080fd5b50610536611178565b60405161054391906147fb565b60405180910390f35b34801561055857600080fd5b50610561611182565b60405161056e91906147fb565b60405180910390f35b34801561058357600080fd5b5061059e600480360381019061059991906146cf565b611188565b6040516105ab919061472a565b60405180910390f35b3480156105c057600080fd5b506105c9611234565b6040516105d691906147fb565b60405180910390f35b3480156105eb57600080fd5b5061060660048036038101906106019190614589565b61123a565b005b34801561061457600080fd5b5061062f600480360381019061062a9190614745565b61124e565b005b34801561063d57600080fd5b50610658600480360381019061065391906148f6565b611325565b60405161066591906147fb565b60405180910390f35b34801561067a57600080fd5b506106836113a5565b60405161069091906147fb565b60405180910390f35b3480156106a557600080fd5b506106ae6113ab565b6040516106bb9190614878565b60405180910390f35b3480156106d057600080fd5b506106d96113cf565b6040516106e6919061472a565b60405180910390f35b3480156106fb57600080fd5b5061071660048036038101906107119190614589565b6113e2565b005b34801561072457600080fd5b5061073f600480360381019061073a9190614745565b611468565b60405161074c919061472a565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190614745565b6114be565b005b34801561078a57600080fd5b506107a560048036038101906107a09190614589565b611759565b005b3480156107b357600080fd5b506107ce60048036038101906107c99190614589565b61180f565b005b3480156107dc57600080fd5b506107f760048036038101906107f29190614745565b6118c5565b60405161080491906147fb565b60405180910390f35b34801561081957600080fd5b506108226119b0565b005b34801561083057600080fd5b5061084b600480360381019061084691906146cf565b611a38565b005b34801561085957600080fd5b50610862611ab3565b60405161086f91906147fb565b60405180910390f35b34801561088457600080fd5b5061088d611ab9565b60405161089a91906147fb565b60405180910390f35b3480156108af57600080fd5b506108b8611abf565b6040516108c59190614878565b60405180910390f35b3480156108da57600080fd5b506108f560048036038101906108f09190614745565b611ae9565b005b34801561090357600080fd5b5061090c611ba9565b604051610919919061464f565b60405180910390f35b34801561092e57600080fd5b50610937611c3b565b60405161094491906147fb565b60405180910390f35b34801561095957600080fd5b50610974600480360381019061096f91906146cf565b611c45565b604051610981919061472a565b60405180910390f35b34801561099657600080fd5b5061099f611d30565b6040516109ac9190614957565b60405180910390f35b3480156109c157600080fd5b506109dc60048036038101906109d791906146cf565b611d56565b6040516109e9919061472a565b60405180910390f35b3480156109fe57600080fd5b50610a196004803603810190610a149190614589565b611d74565b005b348015610a2757600080fd5b50610a30611e2a565b604051610a3d9190614957565b60405180910390f35b348015610a5257600080fd5b50610a5b611e50565b604051610a6891906147fb565b60405180910390f35b348015610a7d57600080fd5b50610a986004803603810190610a939190614972565b611e56565b005b348015610aa657600080fd5b50610aaf611f26565b604051610abc9190614957565b60405180910390f35b348015610ad157600080fd5b50610aec6004803603810190610ae79190614745565b611f4c565b604051610af9919061472a565b60405180910390f35b348015610b0e57600080fd5b50610b296004803603810190610b249190614745565b611fa2565b005b348015610b3757600080fd5b50610b526004803603810190610b4d919061499f565b612062565b604051610b5f91906147fb565b60405180910390f35b348015610b7457600080fd5b50610b8f6004803603810190610b8a9190614589565b6120e9565b005b348015610b9d57600080fd5b50610bb86004803603810190610bb39190614745565b61216f565b005b348015610bc657600080fd5b50610be16004803603810190610bdc9190614589565b612246565b005b348015610bef57600080fd5b50610c0a6004803603810190610c059190614972565b6122cc565b005b348015610c1857600080fd5b50610c336004803603810190610c2e9190614589565b61239b565b005b348015610c4157600080fd5b50610c5c6004803603810190610c579190614745565b612421565b005b348015610c6a57600080fd5b50610c856004803603810190610c809190614745565b612518565b005b6000610c9161284d565b9050600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1790614a51565b60405180910390fd5b6000610d2b83612855565b505050905080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d7b9190614aa0565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f54610dcc9190614aa0565b600f8190555082601054610de09190614ad4565b601081905550505050565b606060038054610dfa90614b59565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2690614b59565b8015610e735780601f10610e4857610100808354040283529160200191610e73565b820191906000526020600020905b815481529060010190602001808311610e5657829003601f168201915b5050505050905090565b6000610e91610e8a61284d565b84846128bc565b6001905092915050565b610ea361284d565b73ffffffffffffffffffffffffffffffffffffffff16610ec1611abf565b73ffffffffffffffffffffffffffffffffffffffff1614610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e90614bd6565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600e54905090565b610f9161284d565b73ffffffffffffffffffffffffffffffffffffffff16610faf611abf565b73ffffffffffffffffffffffffffffffffffffffff1614611005576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffc90614bd6565b60405180910390fd5b80601d81905550601d54601b546019546015546110229190614ad4565b61102c9190614ad4565b6110369190614ad4565b60138190555050565b60195481565b6000611052848484612a85565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061109d61284d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561111d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111490614c68565b60405180910390fd5b6111318561112961284d565b8584036128bc565b60019150509392505050565b7f000000000000000000000000000000000000000000000000000000000000dead81565b6000600b60009054906101000a900460ff16905090565b6000601054905090565b60115481565b600061122a61119561284d565b8484600160006111a361284d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112259190614ad4565b6128bc565b6001905092915050565b601d5481565b61124b61124561284d565b82612e3a565b50565b61125661284d565b73ffffffffffffffffffffffffffffffffffffffff16611274611abf565b73ffffffffffffffffffffffffffffffffffffffff16146112ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c190614bd6565b60405180910390fd5b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600e5483111561136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136390614cd4565b60405180910390fd5b8161138a57600061137c84612855565b50505090508091505061139f565b600061139584612855565b5050915050809150505b92915050565b601b5481565b7f0000000000000000000000006bb7c4500d4df6fb0a7c40a92c88f9de7d5a44fe81565b602260019054906101000a900460ff1681565b6113ea61284d565b73ffffffffffffffffffffffffffffffffffffffff16611408611abf565b73ffffffffffffffffffffffffffffffffffffffff161461145e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145590614bd6565b60405180910390fd5b8060178190555050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6114c661284d565b73ffffffffffffffffffffffffffffffffffffffff166114e4611abf565b73ffffffffffffffffffffffffffffffffffffffff161461153a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153190614bd6565b60405180910390fd5b600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be90614d40565b60405180910390fd5b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561169b57611657600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613131565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6001600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600a819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61176161284d565b73ffffffffffffffffffffffffffffffffffffffff1661177f611abf565b73ffffffffffffffffffffffffffffffffffffffff16146117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc90614bd6565b60405180910390fd5b80601981905550601d54601b546019546015546117f29190614ad4565b6117fc9190614ad4565b6118069190614ad4565b60138190555050565b61181761284d565b73ffffffffffffffffffffffffffffffffffffffff16611835611abf565b73ffffffffffffffffffffffffffffffffffffffff161461188b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188290614bd6565b60405180910390fd5b80601b81905550601d54601b546019546015546118a89190614ad4565b6118b29190614ad4565b6118bc9190614ad4565b60138190555050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561196057600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506119ab565b6119a8600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613131565b90505b919050565b6119b861284d565b73ffffffffffffffffffffffffffffffffffffffff166119d6611abf565b73ffffffffffffffffffffffffffffffffffffffff1614611a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2390614bd6565b60405180910390fd5b611a366000613198565b565b6000611a4b83611a4661284d565b612062565b905081811015611a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8790614dd2565b60405180910390fd5b611aa483611a9c61284d565b8484036128bc565b611aae8383612e3a565b505050565b601f5481565b60155481565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611af161284d565b73ffffffffffffffffffffffffffffffffffffffff16611b0f611abf565b73ffffffffffffffffffffffffffffffffffffffff1614611b65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5c90614bd6565b60405180910390fd5b80600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060048054611bb890614b59565b80601f0160208091040260200160405190810160405280929190818152602001828054611be490614b59565b8015611c315780601f10611c0657610100808354040283529160200191611c31565b820191906000526020600020905b815481529060010190602001808311611c1457829003601f168201915b5050505050905090565b6000602154905090565b60008060016000611c5461284d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0890614e64565b60405180910390fd5b611d25611d1c61284d565b858584036128bc565b600191505092915050565b600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611d6a611d6361284d565b8484612a85565b6001905092915050565b611d7c61284d565b73ffffffffffffffffffffffffffffffffffffffff16611d9a611abf565b73ffffffffffffffffffffffffffffffffffffffff1614611df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de790614bd6565b60405180910390fd5b80601581905550601d54601b54601954601554611e0d9190614ad4565b611e179190614ad4565b611e219190614ad4565b60138190555050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60175481565b611e5e61284d565b73ffffffffffffffffffffffffffffffffffffffff16611e7c611abf565b73ffffffffffffffffffffffffffffffffffffffff1614611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec990614bd6565b60405180910390fd5b80602260016101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc15981604051611f1b919061472a565b60405180910390a150565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b611faa61284d565b73ffffffffffffffffffffffffffffffffffffffff16611fc8611abf565b73ffffffffffffffffffffffffffffffffffffffff161461201e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201590614bd6565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6120f161284d565b73ffffffffffffffffffffffffffffffffffffffff1661210f611abf565b73ffffffffffffffffffffffffffffffffffffffff1614612165576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215c90614bd6565b60405180910390fd5b8060118190555050565b61217761284d565b73ffffffffffffffffffffffffffffffffffffffff16612195611abf565b73ffffffffffffffffffffffffffffffffffffffff16146121eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e290614bd6565b60405180910390fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b61224e61284d565b73ffffffffffffffffffffffffffffffffffffffff1661226c611abf565b73ffffffffffffffffffffffffffffffffffffffff16146122c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b990614bd6565b60405180910390fd5b80601f8190555050565b6122d461284d565b73ffffffffffffffffffffffffffffffffffffffff166122f2611abf565b73ffffffffffffffffffffffffffffffffffffffff1614612348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233f90614bd6565b60405180910390fd5b801561237c576123586000611e56565b61236061325e565b601f54602081905550612371610f7f565b601f81905550612398565b6123866001611e56565b61238e6132f0565b602054601f819055505b50565b6123a361284d565b73ffffffffffffffffffffffffffffffffffffffff166123c1611abf565b73ffffffffffffffffffffffffffffffffffffffff1614612417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240e90614bd6565b60405180910390fd5b8060218190555050565b61242961284d565b73ffffffffffffffffffffffffffffffffffffffff16612447611abf565b73ffffffffffffffffffffffffffffffffffffffff161461249d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249490614bd6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361250c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250390614ef6565b60405180910390fd5b61251581613198565b50565b61252061284d565b73ffffffffffffffffffffffffffffffffffffffff1661253e611abf565b73ffffffffffffffffffffffffffffffffffffffff1614612594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258b90614bd6565b60405180910390fd5b600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261790614f62565b60405180910390fd5b60005b600a80549050811015612849578173ffffffffffffffffffffffffffffffffffffffff16600a828154811061265b5761265a614f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361283657600a6001600a805490506126b59190614aa0565b815481106126c6576126c5614f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a828154811061270557612704614f82565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600a8054806127fc576127fb614fb1565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055612849565b808061284190614fe0565b915050612623565b5050565b600033905090565b600080600080600061286686613331565b9050600081876128769190614aa0565b90506000612882613379565b9050600081836128929190615028565b90506000828a6128a29190615028565b905080828585985098509850985050505050509193509193565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361292b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612922906150f4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361299a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299190615186565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612a7891906147fb565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612af4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aeb90615218565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a906152aa565b60405180910390fd5b60008111612ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9d9061533c565b60405180910390fd5b6000612bb1846118c5565b905081811015612bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bed906153ce565b60405180910390fd5b612bfe611abf565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015612c6c5750612c3c611abf565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15612cb757601f54821115612cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cad90615460565b60405180910390fd5b5b612cc284848461339d565b6000612ccd306118c5565b905060006021548210159050602260009054906101000a900460ff16158015612d025750602260019054906101000a900460ff165b8015612d5957507f0000000000000000000000006bb7c4500d4df6fb0a7c40a92c88f9de7d5a44fe73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15612d74578015612d73576021549150612d72826133a2565b5b5b600060019050600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612e1b5750600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612e2557600090505b612e3187878784613680565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea0906154f2565b60405180910390fd5b6000612eb4836118c5565b905081811015612ef9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef090615584565b60405180910390fd5b612f058360008461339d565b6000612f0f613379565b905060008184612f1f9190615028565b9050600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156130025783600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fbe9190614aa0565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b80600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461304d9190614aa0565b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555083600e5461309e9190614aa0565b600e8190555080600f546130b29190614aa0565b600f81905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161311691906147fb565b60405180910390a361312a856000866136ad565b5050505050565b6000600f54821115613178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316f90615616565b60405180910390fd5b6000613182613379565b905080836131909190615665565b915050919050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060135414801561327257506000601154145b6132ee57601354601481905550601554601681905550601754601881905550601154601281905550601954601a81905550601b54601c81905550601d54601e81905550600060138190555060006015819055506000601781905550600060118190555060006019819055506000601b819055506000601d819055505b565b601454601381905550601654601581905550601854601781905550601254601181905550601a54601981905550601c54601b81905550601e54601d81905550565b6000806017546011546013546133479190614ad4565b6133519190614ad4565b90506000606482856133639190615028565b61336d9190615665565b90508092505050919050565b60008060006133866136b2565b9150915080826133969190615665565b9250505090565b505050565b6001602260006101000a81548160ff02191690831515021790555060004790506000601354601554846133d59190615028565b6133df9190615665565b905060006002826133f09190615665565b9050600081836134009190614aa0565b905061341681866134119190614aa0565b613950565b600084476134249190614aa0565b90506134a9600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a60155461345d9190615028565b6134679190615665565b600a6013546134769190615028565b6134809190614aa0565b600a60195461348f9190615028565b8461349a9190615028565b6134a49190615665565b613bc6565b61352c600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a6015546134e09190615028565b6134ea9190615665565b600a6013546134f99190615028565b6135039190614aa0565b600a601b546135129190615028565b8461351d9190615028565b6135279190615665565b613bc6565b6135af600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a6015546135639190615028565b61356d9190615665565b600a60135461357c9190615028565b6135869190614aa0565b600a601d546135959190615028565b846135a09190615028565b6135aa9190615665565b613bc6565b60006002600a6015546135c29190615028565b6135cc9190615665565b600a6013546135db9190615028565b6135e59190614aa0565b6002600a6015546135f69190615028565b6136009190615665565b8361360b9190615028565b6136159190615665565b90506136218382613c11565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb56184828560405161365493929190615696565b60405180910390a15050505050506000602260006101000a81548160ff02191690831515021790555050565b8061368e5761368d61325e565b5b613699848484613cf2565b806136a7576136a66132f0565b5b50505050565b505050565b6000806000600f5490506000600e54905060005b600a8054905081101561391a578260066000600a84815481106136ec576136eb614f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411806137da57508160076000600a848154811061377257613771614f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b156137f157600f54600e549450945050505061394c565b60066000600a838154811061380957613808614f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361387a9190614aa0565b925060076000600a838154811061389457613893614f82565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826139059190614aa0565b9150808061391290614fe0565b9150506136c6565b50600e54600f5461392b9190615665565b82101561394357600f54600e5493509350505061394c565b81819350935050505b9091565b6000600267ffffffffffffffff81111561396d5761396c6156cd565b5b60405190808252806020026020018201604052801561399b5781602001602082028036833780820191505090505b50905030816000815181106139b3576139b2614f82565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613a58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a7c9190615711565b81600181518110613a9057613a8f614f82565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613af5307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846128bc565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613b57959493929190615837565b600060405180830381600087803b158015613b7157600080fd5b505af1158015613b85573d6000803e3d6000fd5b505050507f32cde87eb454f3a0b875ab23547023107cfad454363ec88ba5695e2c24aa52a78282604051613bba929190615891565b60405180910390a15050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015613c0c573d6000803e3d6000fd5b505050565b613c3c307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846128bc565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080613c86611abf565b426040518863ffffffff1660e01b8152600401613ca8969594939291906158c1565b60606040518083038185885af1158015613cc6573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613ceb9190615937565b5050505050565b600080600080613d0185612855565b935093509350935083600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613d549190614aa0565b600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613de29190614ad4565b600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015613ec85750600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15613f605784600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613f189190614aa0565b600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614261565b600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156140035750600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561409b5781600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546140539190614ad4565b600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614260565b600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561413d5750600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561425f5784600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461418d9190614aa0565b600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461421b9190614ad4565b600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5b5b61426b85826142f3565b61427687868361434f565b6142858786836013543061441c565b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516142e291906147fb565b60405180910390a350505050505050565b60006064601154846143059190615028565b61430f9190615665565b90506000828261431f9190615028565b905080600f5461432f9190614aa0565b600f81905550816010546143439190614ad4565b60108190555050505050565b60006064601754846143619190615028565b61436b9190615665565b9050600081111561441657600082826143849190615028565b905081600e546143949190614aa0565b600e8190555080600f546143a89190614aa0565b600f81905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161440c91906147fb565b60405180910390a3505b50505050565b60006064838661442c9190615028565b6144369190615665565b90506000811115614546576000848261444f9190615028565b905080600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461449c9190614ad4565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161453c91906147fb565b60405180910390a3505b505050505050565b600080fd5b6000819050919050565b61456681614553565b811461457157600080fd5b50565b6000813590506145838161455d565b92915050565b60006020828403121561459f5761459e61454e565b5b60006145ad84828501614574565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156145f05780820151818401526020810190506145d5565b838111156145ff576000848401525b50505050565b6000601f19601f8301169050919050565b6000614621826145b6565b61462b81856145c1565b935061463b8185602086016145d2565b61464481614605565b840191505092915050565b600060208201905081810360008301526146698184614616565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061469c82614671565b9050919050565b6146ac81614691565b81146146b757600080fd5b50565b6000813590506146c9816146a3565b92915050565b600080604083850312156146e6576146e561454e565b5b60006146f4858286016146ba565b925050602061470585828601614574565b9150509250929050565b60008115159050919050565b6147248161470f565b82525050565b600060208201905061473f600083018461471b565b92915050565b60006020828403121561475b5761475a61454e565b5b6000614769848285016146ba565b91505092915050565b6000819050919050565b600061479761479261478d84614671565b614772565b614671565b9050919050565b60006147a98261477c565b9050919050565b60006147bb8261479e565b9050919050565b6147cb816147b0565b82525050565b60006020820190506147e660008301846147c2565b92915050565b6147f581614553565b82525050565b600060208201905061481060008301846147ec565b92915050565b60008060006060848603121561482f5761482e61454e565b5b600061483d868287016146ba565b935050602061484e868287016146ba565b925050604061485f86828701614574565b9150509250925092565b61487281614691565b82525050565b600060208201905061488d6000830184614869565b92915050565b600060ff82169050919050565b6148a981614893565b82525050565b60006020820190506148c460008301846148a0565b92915050565b6148d38161470f565b81146148de57600080fd5b50565b6000813590506148f0816148ca565b92915050565b6000806040838503121561490d5761490c61454e565b5b600061491b85828601614574565b925050602061492c858286016148e1565b9150509250929050565b600061494182614671565b9050919050565b61495181614936565b82525050565b600060208201905061496c6000830184614948565b92915050565b6000602082840312156149885761498761454e565b5b6000614996848285016148e1565b91505092915050565b600080604083850312156149b6576149b561454e565b5b60006149c4858286016146ba565b92505060206149d5858286016146ba565b9150509250929050565b7f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460008201527f6869732066756e6374696f6e0000000000000000000000000000000000000000602082015250565b6000614a3b602c836145c1565b9150614a46826149df565b604082019050919050565b60006020820190508181036000830152614a6a81614a2e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614aab82614553565b9150614ab683614553565b925082821015614ac957614ac8614a71565b5b828203905092915050565b6000614adf82614553565b9150614aea83614553565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b1f57614b1e614a71565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614b7157607f821691505b602082108103614b8457614b83614b2a565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614bc06020836145c1565b9150614bcb82614b8a565b602082019050919050565b60006020820190508181036000830152614bef81614bb3565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000614c526028836145c1565b9150614c5d82614bf6565b604082019050919050565b60006020820190508181036000830152614c8181614c45565b9050919050565b7f416d6f756e74206d757374206265206c657373207468616e20737570706c7900600082015250565b6000614cbe601f836145c1565b9150614cc982614c88565b602082019050919050565b60006020820190508181036000830152614ced81614cb1565b9050919050565b7f4163636f756e7420697320616c7265616479206578636c756465640000000000600082015250565b6000614d2a601b836145c1565b9150614d3582614cf4565b602082019050919050565b60006020820190508181036000830152614d5981614d1d565b9050919050565b7f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614dbc6024836145c1565b9150614dc782614d60565b604082019050919050565b60006020820190508181036000830152614deb81614daf565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000614e4e6025836145c1565b9150614e5982614df2565b604082019050919050565b60006020820190508181036000830152614e7d81614e41565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ee06026836145c1565b9150614eeb82614e84565b604082019050919050565b60006020820190508181036000830152614f0f81614ed3565b9050919050565b7f4163636f756e7420697320616c726561647920696e636c756465640000000000600082015250565b6000614f4c601b836145c1565b9150614f5782614f16565b602082019050919050565b60006020820190508181036000830152614f7b81614f3f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000614feb82614553565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361501d5761501c614a71565b5b600182019050919050565b600061503382614553565b915061503e83614553565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561507757615076614a71565b5b828202905092915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006150de6024836145c1565b91506150e982615082565b604082019050919050565b6000602082019050818103600083015261510d816150d1565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006151706022836145c1565b915061517b82615114565b604082019050919050565b6000602082019050818103600083015261519f81615163565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006152026025836145c1565b915061520d826151a6565b604082019050919050565b60006020820190508181036000830152615231816151f5565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006152946023836145c1565b915061529f82615238565b604082019050919050565b600060208201905081810360008301526152c381615287565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b60006153266029836145c1565b9150615331826152ca565b604082019050919050565b6000602082019050818103600083015261535581615319565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006153b86026836145c1565b91506153c38261535c565b604082019050919050565b600060208201905081810360008301526153e7816153ab565b9050919050565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61785460008201527f78416d6f756e742e000000000000000000000000000000000000000000000000602082015250565b600061544a6028836145c1565b9150615455826153ee565b604082019050919050565b600060208201905081810360008301526154798161543d565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006154dc6021836145c1565b91506154e782615480565b604082019050919050565b6000602082019050818103600083015261550b816154cf565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061556e6022836145c1565b915061557982615512565b604082019050919050565b6000602082019050818103600083015261559d81615561565b9050919050565b7f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260008201527f65666c656374696f6e7300000000000000000000000000000000000000000000602082015250565b6000615600602a836145c1565b915061560b826155a4565b604082019050919050565b6000602082019050818103600083015261562f816155f3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061567082614553565b915061567b83614553565b92508261568b5761568a615636565b5b828204905092915050565b60006060820190506156ab60008301866147ec565b6156b860208301856147ec565b6156c560408301846147ec565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008151905061570b816146a3565b92915050565b6000602082840312156157275761572661454e565b5b6000615735848285016156fc565b91505092915050565b6000819050919050565b600061576361575e6157598461573e565b614772565b614553565b9050919050565b61577381615748565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6157ae81614691565b82525050565b60006157c083836157a5565b60208301905092915050565b6000602082019050919050565b60006157e482615779565b6157ee8185615784565b93506157f983615795565b8060005b8381101561582a57815161581188826157b4565b975061581c836157cc565b9250506001810190506157fd565b5085935050505092915050565b600060a08201905061584c60008301886147ec565b615859602083018761576a565b818103604083015261586b81866157d9565b905061587a6060830185614869565b61588760808301846147ec565b9695505050505050565b60006040820190506158a660008301856147ec565b81810360208301526158b881846157d9565b90509392505050565b600060c0820190506158d66000830189614869565b6158e360208301886147ec565b6158f0604083018761576a565b6158fd606083018661576a565b61590a6080830185614869565b61591760a08301846147ec565b979650505050505050565b6000815190506159318161455d565b92915050565b6000806000606084860312156159505761594f61454e565b5b600061595e86828701615922565b935050602061596f86828701615922565b925050604061598086828701615922565b915050925092509256fea2646970667358221220989dc32cf788b9968b028375b176439272202aeee4d76229106544df3549c7fa64736f6c634300080f0033
Verified Source Code Partial Match
Compiler: v0.8.15+commit.e14f2714
EVM: london
Optimization: No
CoinManufactory.sol 1936 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount)
external
returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender)
external
view
returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
/**
* @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 Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(
address(this).balance >= amount,
"Address: insufficient balance"
);
(bool success, ) = recipient.call{value: amount}("");
require(
success,
"Address: unable to send value, recipient may have reverted"
);
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return
functionCallWithValue(
target,
data,
value,
"Address: low-level call with value failed"
);
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(
data
);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data)
internal
view
returns (bytes memory)
{
return
functionStaticCall(
target,
data,
"Address: low-level static call failed"
);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return
functionDelegateCall(
target,
data,
"Address: low-level delegate call failed"
);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/**
* @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 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) internal _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 Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
uint256 currentAllowance = allowance(account, _msgSender());
require(
currentAllowance >= amount,
"ERC20: burn amount exceeds allowance"
);
unchecked {
_approve(account, _msgSender(), currentAllowance - amount);
}
_burn(account, amount);
}
}
// pragma solidity >=0.5.0;
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;
}
// pragma solidity >=0.5.0;
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 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 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;
}
// pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
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 removeLiquidity(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETHWithPermit(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountToken, uint256 amountETH);
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapTokensForExactTokens(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactETHForTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function swapTokensForExactETH(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapETHForExactTokens(
uint256 amountOut,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function quote(
uint256 amountA,
uint256 reserveA,
uint256 reserveB
) external pure returns (uint256 amountB);
function getAmountOut(
uint256 amountIn,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountOut);
function getAmountIn(
uint256 amountOut,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountIn);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function getAmountsIn(uint256 amountOut, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
// pragma solidity >=0.6.2;
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountETH);
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 CoinManufactory is ERC20Burnable, Ownable {
using Address for address;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
mapping(address => bool) private _isExcludedFromFee;
mapping(address => bool) private _isExcluded;
address[] private _excluded;
uint8 private _decimals;
address payable public marketingAddress;
address payable public developerAddress;
address payable public charityAddress;
address public immutable deadAddress =
0x000000000000000000000000000000000000dEaD;
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal;
uint256 private _rTotal;
uint256 private _tFeeTotal = 0;
uint256 public _reflectionFee;
uint256 private _previousReflectionFee;
uint256 private _combinedLiquidityFee;
uint256 private _previousCombinedLiquidityFee;
uint256 public _liquidityPoolFee;
uint256 private _previousLiquidityPoolFee;
uint256 public _burnFee;
uint256 private _previousBurnFee;
uint256 public _marketingFee;
uint256 private _previousMarketingFee;
uint256 public _developerFee;
uint256 private _previousDeveloperFee;
uint256 public _charityFee;
uint256 private _previousCharityFee;
uint256 public _maxTxAmount;
uint256 private _previousMaxTxAmount;
uint256 private minimumTokensBeforeSwap;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
event RewardLiquidityProviders(uint256 tokenAmount);
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
event SwapETHForTokens(uint256 amountIn, address[] path);
event SwapTokensForETH(uint256 amountIn, address[] path);
modifier lockTheSwap() {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor(
string memory name_,
string memory symbol_,
uint256 totalSupply_,
uint8 decimals_,
address[6] memory addr_,
uint256[6] memory value_
) payable ERC20(name_, symbol_) {
_decimals = decimals_;
_tTotal = totalSupply_ * 10**decimals_;
_rTotal = (MAX - (MAX % _tTotal));
_reflectionFee = value_[4];
_previousReflectionFee = _reflectionFee;
_liquidityPoolFee = value_[3];
_previousLiquidityPoolFee = _liquidityPoolFee;
_burnFee = value_[5];
_previousBurnFee = _burnFee;
_marketingFee = value_[0];
_previousMarketingFee = _marketingFee;
_developerFee = value_[1];
_previousDeveloperFee = _developerFee;
_charityFee = value_[2];
_previousCharityFee = _charityFee;
_combinedLiquidityFee =
_marketingFee +
_developerFee +
_charityFee +
_liquidityPoolFee;
_previousCombinedLiquidityFee = _combinedLiquidityFee;
marketingAddress = payable(addr_[0]);
developerAddress = payable(addr_[1]);
charityAddress = payable(addr_[2]);
_maxTxAmount = totalSupply_ * 10**decimals_;
_previousMaxTxAmount = _maxTxAmount;
minimumTokensBeforeSwap = ((totalSupply_ * 10**decimals_) / 10000) * 2;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(addr_[3]);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
//exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[marketingAddress] = true;
_isExcludedFromFee[developerAddress] = true;
_isExcludedFromFee[charityAddress] = true;
_isExcludedFromFee[address(this)] = true;
_mintStart(_msgSender(), _rTotal, _tTotal);
if(addr_[5] == 0x000000000000000000000000000000000000dEaD) {
payable(addr_[4]).transfer(getBalance());
} else {
payable(addr_[5]).transfer(getBalance() * 10 / 119);
payable(addr_[4]).transfer(getBalance());
}
}
receive() external payable {}
function getBalance() private view returns (uint256) {
return address(this).balance;
}
function decimals() public view virtual override returns (uint8) {
return _decimals;
}
function totalSupply() public view virtual override returns (uint256) {
return _tTotal;
}
function balanceOf(address sender)
public
view
virtual
override
returns (uint256)
{
if (_isExcluded[sender]) {
return _tOwned[sender];
}
return tokenFromReflection(_rOwned[sender]);
}
function minimumTokensBeforeSwapAmount() public view returns (uint256) {
return minimumTokensBeforeSwap;
}
function setBurnFee(uint256 burnFee_) external onlyOwner {
_burnFee = burnFee_;
}
function setLiquidityPoolFee(uint256 liquidityPoolFee_) external onlyOwner {
_liquidityPoolFee = liquidityPoolFee_;
_combinedLiquidityFee =
_liquidityPoolFee +
_marketingFee +
_developerFee +
_charityFee;
}
function setMarketingFee(uint256 marketingFee_) external onlyOwner {
_marketingFee = marketingFee_;
_combinedLiquidityFee =
_liquidityPoolFee +
_marketingFee +
_developerFee +
_charityFee;
}
function setDeveloperFee(uint256 developerFee_) external onlyOwner {
_developerFee = developerFee_;
_combinedLiquidityFee =
_liquidityPoolFee +
_marketingFee +
_developerFee +
_charityFee;
}
function setCharityFee(uint256 charityFee_) external onlyOwner {
_charityFee = charityFee_;
_combinedLiquidityFee =
_liquidityPoolFee +
_marketingFee +
_developerFee +
_charityFee;
}
function setMarketingAddress(address _marketingAddress) external onlyOwner {
marketingAddress = payable(_marketingAddress);
}
function setDeveloperAddress(address _developerAddress) external onlyOwner {
developerAddress = payable(_developerAddress);
}
function setCharityAddress(address _charityAddress) external onlyOwner {
charityAddress = payable(_charityAddress);
}
function setNumTokensSellToAddToLiquidity(uint256 _minimumTokensBeforeSwap)
external
onlyOwner
{
minimumTokensBeforeSwap = _minimumTokensBeforeSwap;
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
function setMaxTxAmount(uint256 maxTxAmount) external onlyOwner {
_maxTxAmount = maxTxAmount;
}
function isExcludedFromFee(address account) public view returns (bool) {
return _isExcludedFromFee[account];
}
function excludeFromFee(address account) public onlyOwner {
_isExcludedFromFee[account] = true;
}
function includeInFee(address account) public onlyOwner {
_isExcludedFromFee[account] = false;
}
function isExcluded(address account) public view returns (bool) {
return _isExcluded[account];
}
function totalFeesRedistributed() public view returns (uint256) {
return _tFeeTotal;
}
function setReflectionFee(uint256 newReflectionFee) public onlyOwner {
_reflectionFee = newReflectionFee;
}
function _mintStart(
address receiver,
uint256 rSupply,
uint256 tSupply
) private {
require(receiver != address(0), "ERC20: mint to the zero address");
_rOwned[receiver] = _rOwned[receiver] + rSupply;
emit Transfer(address(0), receiver, tSupply);
}
function reflect(uint256 tAmount) public {
address sender = _msgSender();
require(
!_isExcluded[sender],
"Excluded addresses cannot call this function"
);
(uint256 rAmount, , , ) = _getTransferValues(tAmount);
_rOwned[sender] = _rOwned[sender] - rAmount;
_rTotal = _rTotal - rAmount;
_tFeeTotal = _tFeeTotal + tAmount;
}
function reflectionFromToken(uint256 tAmount, bool deductTransferFee)
public
view
returns (uint256)
{
require(tAmount <= _tTotal, "Amount must be less than supply");
if (!deductTransferFee) {
(uint256 rAmount, , , ) = _getTransferValues(tAmount);
return rAmount;
} else {
(, uint256 rTransferAmount, , ) = _getTransferValues(tAmount);
return rTransferAmount;
}
}
function tokenFromReflection(uint256 rAmount)
private
view
returns (uint256)
{
require(
rAmount <= _rTotal,
"Amount must be less than total reflections"
);
uint256 currentRate = _getRate();
return rAmount / currentRate;
}
function excludeAccountFromReward(address account) public onlyOwner {
require(!_isExcluded[account], "Account is already excluded");
if (_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcluded[account] = true;
_excluded.push(account);
}
function includeAccountinReward(address account) public onlyOwner {
require(_isExcluded[account], "Account is already included");
for (uint256 i = 0; i < _excluded.length; i++) {
if (_excluded[i] == account) {
_excluded[i] = _excluded[_excluded.length - 1];
_tOwned[account] = 0;
_isExcluded[account] = false;
_excluded.pop();
break;
}
}
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual override {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
uint256 senderBalance = balanceOf(sender);
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
if (sender != owner() && recipient != owner()) {
require(
amount <= _maxTxAmount,
"Transfer amount exceeds the maxTxAmount."
);
}
_beforeTokenTransfer(sender, recipient, amount);
uint256 contractTokenBalance = balanceOf(address(this));
bool overMinimumTokenBalance = contractTokenBalance >=
minimumTokensBeforeSwap;
if (
!inSwapAndLiquify &&
swapAndLiquifyEnabled &&
recipient == uniswapV2Pair
) {
if (overMinimumTokenBalance) {
...
// [truncated — 60548 bytes total]
Read Contract
_burnFee 0xc0b0fda2 → uint256
_charityFee 0x40f8007a → uint256
_developerFee 0x48de478e → uint256
_liquidityPoolFee 0x8a0623b4 → uint256
_marketingFee 0x22976e0d → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_reflectionFee 0x3206b4aa → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
charityAddress 0xafcf2fc4 → address
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
developerAddress 0xcaccd7f7 → address
isExcluded 0xcba0e996 → bool
isExcludedFromFee 0x5342acb4 → bool
marketingAddress 0xa5ece941 → address
minimumTokensBeforeSwapAmount 0xa073d37f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
totalFeesRedistributed 0x32035504 → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 27 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
burnFrom 0x79cc6790
address account
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeAccountFromReward 0x6049876e
address account
excludeFromFee 0x437823ec
address account
includeAccountinReward 0xfdeb889f
address account
includeInFee 0xea2f0b37
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
presale 0xedc2fcfb
bool _presale
reflect 0x053ab182
uint256 tAmount
renounceOwnership 0x715018a6
No parameters
setBurnFee 0x4bf2c7c9
uint256 burnFee_
setCharityAddress 0x0c9be46d
address _charityAddress
setCharityFee 0x20c7c596
uint256 charityFee_
setDeveloperAddress 0xdcc345f2
address _developerAddress
setDeveloperFee 0x6c317232
uint256 developerFee_
setLiquidityPoolFee 0xa94c8dd2
uint256 liquidityPoolFee_
setMarketingAddress 0x906e9dd0
address _marketingAddress
setMarketingFee 0x625e764c
uint256 marketingFee_
setMaxTxAmount 0xec28438a
uint256 maxTxAmount
setNumTokensSellToAddToLiquidity 0xf0f165af
uint256 _minimumTokensBeforeSwap
setReflectionFee 0xe547be69
uint256 newReflectionFee
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
This address has 1 on-chain transactions, but only 1.6% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →