Address Contract Partially Verified
Address
0x6560BA625e9eCeF5328FbD626963aeaA5Ce7482D
Balance
0 ETH
Nonce
1
Code Size
23817 bytes
Creator
0xac6e37f9...CA35 at tx 0xed59c154...1dd44a
Indexed Transactions
0
Contract Bytecode
23817 bytes
0x6080604052600436106103395760003560e01c806370a08231116101ab578063afcf2fc4116100f7578063e547be6911610095578063edc2fcfb1161006f578063edc2fcfb14610c27578063f0f165af14610c50578063f2fde38b14610c79578063fdeb889f14610ca257610340565b8063e547be6914610bac578063ea2f0b3714610bd5578063ec28438a14610bfe57610340565b8063caccd7f7116100d1578063caccd7f714610ade578063cba0e99614610b09578063dcc345f214610b46578063dd62ed3e14610b6f57610340565b8063afcf2fc414610a5f578063c0b0fda214610a8a578063c49b9a8014610ab557610340565b8063906e9dd011610164578063a457c2d71161013e578063a457c2d714610991578063a5ece941146109ce578063a9059cbb146109f9578063a94c8dd214610a3657610340565b8063906e9dd01461091257806395d89b411461093b578063a073d37f1461096657610340565b806370a0823114610814578063715018a61461085157806379cc6790146108685780637d1db4a5146108915780638a0623b4146108bc5780638da5cb5b146108e757610340565b8063395093511161028557806349bd5a5e116102235780635342acb4116101fd5780635342acb41461075c5780636049876e14610799578063625e764c146107c25780636c317232146107eb57610340565b806349bd5a5e146106dd5780634a74bb02146107085780634bf2c7c91461073357610340565b806342966c681161025f57806342966c6814610623578063437823ec1461064c5780634549b0391461067557806348de478e146106b257610340565b8063395093511461059257806340c10f19146105cf57806340f8007a146105f857610340565b806320c7c596116102f257806327c8f835116102cc57806327c8f835146104e6578063313ce56714610511578063320355041461053c5780633206b4aa1461056757610340565b806320c7c5961461045557806322976e0d1461047e57806323b872dd146104a957610340565b8063053ab1821461034557806306fdde031461036e578063095ea7b3146103995780630c9be46d146103d65780631694505e146103ff57806318160ddd1461042a57610340565b3661034057005b600080fd5b34801561035157600080fd5b5061036c600480360381019061036791906148f1565b610ccb565b005b34801561037a57600080fd5b50610383610e2f565b60405161039091906149ae565b60405180910390f35b3480156103a557600080fd5b506103c060048036038101906103bb9190614a2e565b610ec1565b6040516103cd9190614a89565b60405180910390f35b3480156103e257600080fd5b506103fd60048036038101906103f89190614aa4565b610edf565b005b34801561040b57600080fd5b50610414610f9f565b6040516104219190614b30565b60405180910390f35b34801561043657600080fd5b5061043f610fc3565b60405161044c9190614b5a565b60405180910390f35b34801561046157600080fd5b5061047c600480360381019061047791906148f1565b610fcd565b005b34801561048a57600080fd5b50610493611083565b6040516104a09190614b5a565b60405180910390f35b3480156104b557600080fd5b506104d060048036038101906104cb9190614b75565b611089565b6040516104dd9190614a89565b60405180910390f35b3480156104f257600080fd5b506104fb611181565b6040516105089190614bd7565b60405180910390f35b34801561051d57600080fd5b506105266111a5565b6040516105339190614c0e565b60405180910390f35b34801561054857600080fd5b506105516111bc565b60405161055e9190614b5a565b60405180910390f35b34801561057357600080fd5b5061057c6111c6565b6040516105899190614b5a565b60405180910390f35b34801561059e57600080fd5b506105b960048036038101906105b49190614a2e565b6111cc565b6040516105c69190614a89565b60405180910390f35b3480156105db57600080fd5b506105f660048036038101906105f19190614a2e565b611278565b005b34801561060457600080fd5b5061060d611302565b60405161061a9190614b5a565b60405180910390f35b34801561062f57600080fd5b5061064a600480360381019061064591906148f1565b611308565b005b34801561065857600080fd5b50610673600480360381019061066e9190614aa4565b61131c565b005b34801561068157600080fd5b5061069c60048036038101906106979190614c55565b6113f3565b6040516106a99190614b5a565b60405180910390f35b3480156106be57600080fd5b506106c7611473565b6040516106d49190614b5a565b60405180910390f35b3480156106e957600080fd5b506106f2611479565b6040516106ff9190614bd7565b60405180910390f35b34801561071457600080fd5b5061071d61149d565b60405161072a9190614a89565b60405180910390f35b34801561073f57600080fd5b5061075a600480360381019061075591906148f1565b6114b0565b005b34801561076857600080fd5b50610783600480360381019061077e9190614aa4565b611536565b6040516107909190614a89565b60405180910390f35b3480156107a557600080fd5b506107c060048036038101906107bb9190614aa4565b61158c565b005b3480156107ce57600080fd5b506107e960048036038101906107e491906148f1565b611827565b005b3480156107f757600080fd5b50610812600480360381019061080d91906148f1565b6118dd565b005b34801561082057600080fd5b5061083b60048036038101906108369190614aa4565b611993565b6040516108489190614b5a565b60405180910390f35b34801561085d57600080fd5b50610866611a7e565b005b34801561087457600080fd5b5061088f600480360381019061088a9190614a2e565b611b06565b005b34801561089d57600080fd5b506108a6611b81565b6040516108b39190614b5a565b60405180910390f35b3480156108c857600080fd5b506108d1611b87565b6040516108de9190614b5a565b60405180910390f35b3480156108f357600080fd5b506108fc611b8d565b6040516109099190614bd7565b60405180910390f35b34801561091e57600080fd5b5061093960048036038101906109349190614aa4565b611bb7565b005b34801561094757600080fd5b50610950611c77565b60405161095d91906149ae565b60405180910390f35b34801561097257600080fd5b5061097b611d09565b6040516109889190614b5a565b60405180910390f35b34801561099d57600080fd5b506109b860048036038101906109b39190614a2e565b611d13565b6040516109c59190614a89565b60405180910390f35b3480156109da57600080fd5b506109e3611dfe565b6040516109f09190614cb6565b60405180910390f35b348015610a0557600080fd5b50610a206004803603810190610a1b9190614a2e565b611e24565b604051610a2d9190614a89565b60405180910390f35b348015610a4257600080fd5b50610a5d6004803603810190610a5891906148f1565b611e42565b005b348015610a6b57600080fd5b50610a74611ef8565b604051610a819190614cb6565b60405180910390f35b348015610a9657600080fd5b50610a9f611f1e565b604051610aac9190614b5a565b60405180910390f35b348015610ac157600080fd5b50610adc6004803603810190610ad79190614cd1565b611f24565b005b348015610aea57600080fd5b50610af3611ff4565b604051610b009190614cb6565b60405180910390f35b348015610b1557600080fd5b50610b306004803603810190610b2b9190614aa4565b61201a565b604051610b3d9190614a89565b60405180910390f35b348015610b5257600080fd5b50610b6d6004803603810190610b689190614aa4565b612070565b005b348015610b7b57600080fd5b50610b966004803603810190610b919190614cfe565b612130565b604051610ba39190614b5a565b60405180910390f35b348015610bb857600080fd5b50610bd36004803603810190610bce91906148f1565b6121b7565b005b348015610be157600080fd5b50610bfc6004803603810190610bf79190614aa4565b61223d565b005b348015610c0a57600080fd5b50610c256004803603810190610c2091906148f1565b612314565b005b348015610c3357600080fd5b50610c4e6004803603810190610c499190614cd1565b61239a565b005b348015610c5c57600080fd5b50610c776004803603810190610c7291906148f1565b612469565b005b348015610c8557600080fd5b50610ca06004803603810190610c9b9190614aa4565b6124ef565b005b348015610cae57600080fd5b50610cc96004803603810190610cc49190614aa4565b6125e6565b005b6000610cd5612915565b9050600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5b90614db0565b60405180910390fd5b6000610d6f8361291d565b505050905080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610dbf9190614dff565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f54610e109190614dff565b600f8190555082601054610e249190614e33565b601081905550505050565b606060038054610e3e90614e96565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6a90614e96565b8015610eb75780601f10610e8c57610100808354040283529160200191610eb7565b820191906000526020600020905b815481529060010190602001808311610e9a57829003601f168201915b5050505050905090565b6000610ed5610ece612915565b8484612984565b6001905092915050565b610ee7612915565b73ffffffffffffffffffffffffffffffffffffffff16610f05611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614610f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5290614f13565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600e54905090565b610fd5612915565b73ffffffffffffffffffffffffffffffffffffffff16610ff3611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611049576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104090614f13565b60405180910390fd5b80601d81905550601d54601b546019546015546110669190614e33565b6110709190614e33565b61107a9190614e33565b60138190555050565b60195481565b6000611096848484612b4d565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006110e1612915565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115890614fa5565b60405180910390fd5b6111758561116d612915565b858403612984565b60019150509392505050565b7f000000000000000000000000000000000000000000000000000000000000dead81565b6000600b60009054906101000a900460ff16905090565b6000601054905090565b60115481565b600061126e6111d9612915565b8484600160006111e7612915565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112699190614e33565b612984565b6001905092915050565b611280612915565b73ffffffffffffffffffffffffffffffffffffffff1661129e611b8d565b73ffffffffffffffffffffffffffffffffffffffff16146112f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112eb90614f13565b60405180910390fd5b6112fe8282612f02565b5050565b601d5481565b611319611313612915565b826131a8565b50565b611324612915565b73ffffffffffffffffffffffffffffffffffffffff16611342611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138f90614f13565b60405180910390fd5b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600e5483111561143a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143190615011565b60405180910390fd5b8161145857600061144a8461291d565b50505090508091505061146d565b60006114638461291d565b5050915050809150505b92915050565b601b5481565b7f0000000000000000000000008169fa0231fe64955d7dfbdc158322e2c538604181565b602260019054906101000a900460ff1681565b6114b8612915565b73ffffffffffffffffffffffffffffffffffffffff166114d6611b8d565b73ffffffffffffffffffffffffffffffffffffffff161461152c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152390614f13565b60405180910390fd5b8060178190555050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b611594612915565b73ffffffffffffffffffffffffffffffffffffffff166115b2611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611608576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ff90614f13565b60405180910390fd5b600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168c9061507d565b60405180910390fd5b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561176957611725600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461349f565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6001600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600a819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61182f612915565b73ffffffffffffffffffffffffffffffffffffffff1661184d611b8d565b73ffffffffffffffffffffffffffffffffffffffff16146118a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189a90614f13565b60405180910390fd5b80601981905550601d54601b546019546015546118c09190614e33565b6118ca9190614e33565b6118d49190614e33565b60138190555050565b6118e5612915565b73ffffffffffffffffffffffffffffffffffffffff16611903611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195090614f13565b60405180910390fd5b80601b81905550601d54601b546019546015546119769190614e33565b6119809190614e33565b61198a9190614e33565b60138190555050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611a2e57600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050611a79565b611a76600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461349f565b90505b919050565b611a86612915565b73ffffffffffffffffffffffffffffffffffffffff16611aa4611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af190614f13565b60405180910390fd5b611b046000613506565b565b6000611b1983611b14612915565b612130565b905081811015611b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b559061510f565b60405180910390fd5b611b7283611b6a612915565b848403612984565b611b7c83836131a8565b505050565b601f5481565b60155481565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611bbf612915565b73ffffffffffffffffffffffffffffffffffffffff16611bdd611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2a90614f13565b60405180910390fd5b80600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060048054611c8690614e96565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb290614e96565b8015611cff5780601f10611cd457610100808354040283529160200191611cff565b820191906000526020600020905b815481529060010190602001808311611ce257829003601f168201915b5050505050905090565b6000602154905090565b60008060016000611d22612915565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611ddf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd6906151a1565b60405180910390fd5b611df3611dea612915565b85858403612984565b600191505092915050565b600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611e38611e31612915565b8484612b4d565b6001905092915050565b611e4a612915565b73ffffffffffffffffffffffffffffffffffffffff16611e68611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb590614f13565b60405180910390fd5b80601581905550601d54601b54601954601554611edb9190614e33565b611ee59190614e33565b611eef9190614e33565b60138190555050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60175481565b611f2c612915565b73ffffffffffffffffffffffffffffffffffffffff16611f4a611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614611fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9790614f13565b60405180910390fd5b80602260016101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc15981604051611fe99190614a89565b60405180910390a150565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b612078612915565b73ffffffffffffffffffffffffffffffffffffffff16612096611b8d565b73ffffffffffffffffffffffffffffffffffffffff16146120ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e390614f13565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6121bf612915565b73ffffffffffffffffffffffffffffffffffffffff166121dd611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614612233576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222a90614f13565b60405180910390fd5b8060118190555050565b612245612915565b73ffffffffffffffffffffffffffffffffffffffff16612263611b8d565b73ffffffffffffffffffffffffffffffffffffffff16146122b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b090614f13565b60405180910390fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b61231c612915565b73ffffffffffffffffffffffffffffffffffffffff1661233a611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614612390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238790614f13565b60405180910390fd5b80601f8190555050565b6123a2612915565b73ffffffffffffffffffffffffffffffffffffffff166123c0611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614612416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240d90614f13565b60405180910390fd5b801561244a576124266000611f24565b61242e6135cc565b601f5460208190555061243f610fc3565b601f81905550612466565b6124546001611f24565b61245c61365e565b602054601f819055505b50565b612471612915565b73ffffffffffffffffffffffffffffffffffffffff1661248f611b8d565b73ffffffffffffffffffffffffffffffffffffffff16146124e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124dc90614f13565b60405180910390fd5b8060218190555050565b6124f7612915565b73ffffffffffffffffffffffffffffffffffffffff16612515611b8d565b73ffffffffffffffffffffffffffffffffffffffff161461256b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256290614f13565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036125da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d190615233565b60405180910390fd5b6125e381613506565b50565b6125ee612915565b73ffffffffffffffffffffffffffffffffffffffff1661260c611b8d565b73ffffffffffffffffffffffffffffffffffffffff1614612662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265990614f13565b60405180910390fd5b600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166126ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e59061529f565b60405180910390fd5b60005b600a80549050811015612911578173ffffffffffffffffffffffffffffffffffffffff16600a8281548110612729576127286152bf565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361290457600a6001600a805490506127839190614dff565b81548110612794576127936152bf565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a82815481106127d3576127d26152bf565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600a8054806128ca576128c96152ee565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055612911565b80806001019150506126f1565b5050565b600033905090565b600080600080600061292e8661369f565b90506000818761293e9190614dff565b9050600061294a6136e7565b90506000818361295a919061531d565b90506000828a61296a919061531d565b905080828585985098509850985050505050509193509193565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ea906153d1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5990615463565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612b409190614b5a565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb3906154f5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2290615587565b60405180910390fd5b60008111612c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6590615619565b60405180910390fd5b6000612c7984611993565b905081811015612cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb5906156ab565b60405180910390fd5b612cc6611b8d565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015612d345750612d04611b8d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15612d7f57601f54821115612d7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d759061573d565b60405180910390fd5b5b612d8a84848461370b565b6000612d9530611993565b905060006021548210159050602260009054906101000a900460ff16158015612dca5750602260019054906101000a900460ff165b8015612e2157507f0000000000000000000000008169fa0231fe64955d7dfbdc158322e2c538604173ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15612e3c578015612e3b576021549150612e3a82613710565b5b5b600060019050600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612ee35750600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612eed57600090505b612ef9878787846139ee565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f68906157a9565b60405180910390fd5b612f7d6000838361370b565b6000612f876136e7565b905060008183612f97919061531d565b9050600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561307a5782600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130369190614e33565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b80600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130c59190614e33565b600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082600e546131169190614e33565b600e8190555080600f5461312a9190614e33565b600f819055508373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161318e9190614b5a565b60405180910390a36131a260008585613a1b565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320e9061583b565b60405180910390fd5b600061322283611993565b905081811015613267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325e906158cd565b60405180910390fd5b6132738360008461370b565b600061327d6136e7565b90506000818461328d919061531d565b9050600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156133705783600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461332c9190614dff565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b80600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546133bb9190614dff565b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555083600e5461340c9190614dff565b600e8190555080600f546134209190614dff565b600f81905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040516134849190614b5a565b60405180910390a361349885600086613a1b565b5050505050565b6000600f548211156134e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134dd9061595f565b60405180910390fd5b60006134f06136e7565b905080836134fe91906159ae565b915050919050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006013541480156135e057506000601154145b61365c57601354601481905550601554601681905550601754601881905550601154601281905550601954601a81905550601b54601c81905550601d54601e81905550600060138190555060006015819055506000601781905550600060118190555060006019819055506000601b819055506000601d819055505b565b601454601381905550601654601581905550601854601781905550601254601181905550601a54601981905550601c54601b81905550601e54601d81905550565b6000806017546011546013546136b59190614e33565b6136bf9190614e33565b90506000606482856136d1919061531d565b6136db91906159ae565b90508092505050919050565b60008060006136f4613a20565b91509150808261370491906159ae565b9250505090565b505050565b6001602260006101000a81548160ff0219169083151502179055506000479050600060135460155484613743919061531d565b61374d91906159ae565b9050600060028261375e91906159ae565b90506000818361376e9190614dff565b9050613784818661377f9190614dff565b613cb8565b600084476137929190614dff565b9050613817600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a6015546137cb919061531d565b6137d591906159ae565b600a6013546137e4919061531d565b6137ee9190614dff565b600a6019546137fd919061531d565b84613808919061531d565b61381291906159ae565b613f2e565b61389a600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a60155461384e919061531d565b61385891906159ae565b600a601354613867919061531d565b6138719190614dff565b600a601b54613880919061531d565b8461388b919061531d565b61389591906159ae565b613f2e565b61391d600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a6015546138d1919061531d565b6138db91906159ae565b600a6013546138ea919061531d565b6138f49190614dff565b600a601d54613903919061531d565b8461390e919061531d565b61391891906159ae565b613f2e565b60006002600a601554613930919061531d565b61393a91906159ae565b600a601354613949919061531d565b6139539190614dff565b6002600a601554613964919061531d565b61396e91906159ae565b83613979919061531d565b61398391906159ae565b905061398f8382613f79565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618482856040516139c2939291906159df565b60405180910390a15050505050506000602260006101000a81548160ff02191690831515021790555050565b806139fc576139fb6135cc565b5b613a0784848461405a565b80613a1557613a1461365e565b5b50505050565b505050565b6000806000600f5490506000600e54905060005b600a80549050811015613c82578260066000600a8481548110613a5a57613a596152bf565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541180613b4857508160076000600a8481548110613ae057613adf6152bf565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15613b5f57600f54600e5494509450505050613cb4565b60066000600a8381548110613b7757613b766152bf565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483613be89190614dff565b925060076000600a8381548110613c0257613c016152bf565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482613c739190614dff565b91508080600101915050613a34565b50600e54600f54613c9391906159ae565b821015613cab57600f54600e54935093505050613cb4565b81819350935050505b9091565b6000600267ffffffffffffffff811115613cd557613cd4615a16565b5b604051908082528060200260200182016040528015613d035781602001602082028036833780820191505090505b5090503081600081518110613d1b57613d1a6152bf565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613de49190615a5a565b81600181518110613df857613df76152bf565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613e5d307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612984565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613ebf959493929190615b80565b600060405180830381600087803b158015613ed957600080fd5b505af1158015613eed573d6000803e3d6000fd5b505050507f32cde87eb454f3a0b875ab23547023107cfad454363ec88ba5695e2c24aa52a78282604051613f22929190615bda565b60405180910390a15050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015613f74573d6000803e3d6000fd5b505050565b613fa4307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612984565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080613fee611b8d565b426040518863ffffffff1660e01b815260040161401096959493929190615c0a565b60606040518083038185885af115801561402e573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906140539190615c80565b5050505050565b6000806000806140698561291d565b935093509350935083600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546140bc9190614dff565b600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461414a9190614e33565b600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156142305750600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156142c85784600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546142809190614dff565b600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506145c9565b600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615801561436b5750600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156144035781600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546143bb9190614e33565b600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506145c8565b600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156144a55750600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156145c75784600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546144f59190614dff565b600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546145839190614e33565b600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5b5b6145d3858261465b565b6145de8786836146b7565b6145ed87868360135430614784565b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161464a9190614b5a565b60405180910390a350505050505050565b600060646011548461466d919061531d565b61467791906159ae565b905060008282614687919061531d565b905080600f546146979190614dff565b600f81905550816010546146ab9190614e33565b60108190555050505050565b60006064601754846146c9919061531d565b6146d391906159ae565b9050600081111561477e57600082826146ec919061531d565b905081600e546146fc9190614dff565b600e8190555080600f546147109190614dff565b600f81905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516147749190614b5a565b60405180910390a3505b50505050565b600060648386614794919061531d565b61479e91906159ae565b905060008111156148ae57600084826147b7919061531d565b905080600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546148049190614e33565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516148a49190614b5a565b60405180910390a3505b505050505050565b600080fd5b6000819050919050565b6148ce816148bb565b81146148d957600080fd5b50565b6000813590506148eb816148c5565b92915050565b600060208284031215614907576149066148b6565b5b6000614915848285016148dc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561495857808201518184015260208101905061493d565b60008484015250505050565b6000601f19601f8301169050919050565b60006149808261491e565b61498a8185614929565b935061499a81856020860161493a565b6149a381614964565b840191505092915050565b600060208201905081810360008301526149c88184614975565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006149fb826149d0565b9050919050565b614a0b816149f0565b8114614a1657600080fd5b50565b600081359050614a2881614a02565b92915050565b60008060408385031215614a4557614a446148b6565b5b6000614a5385828601614a19565b9250506020614a64858286016148dc565b9150509250929050565b60008115159050919050565b614a8381614a6e565b82525050565b6000602082019050614a9e6000830184614a7a565b92915050565b600060208284031215614aba57614ab96148b6565b5b6000614ac884828501614a19565b91505092915050565b6000819050919050565b6000614af6614af1614aec846149d0565b614ad1565b6149d0565b9050919050565b6000614b0882614adb565b9050919050565b6000614b1a82614afd565b9050919050565b614b2a81614b0f565b82525050565b6000602082019050614b456000830184614b21565b92915050565b614b54816148bb565b82525050565b6000602082019050614b6f6000830184614b4b565b92915050565b600080600060608486031215614b8e57614b8d6148b6565b5b6000614b9c86828701614a19565b9350506020614bad86828701614a19565b9250506040614bbe868287016148dc565b9150509250925092565b614bd1816149f0565b82525050565b6000602082019050614bec6000830184614bc8565b92915050565b600060ff82169050919050565b614c0881614bf2565b82525050565b6000602082019050614c236000830184614bff565b92915050565b614c3281614a6e565b8114614c3d57600080fd5b50565b600081359050614c4f81614c29565b92915050565b60008060408385031215614c6c57614c6b6148b6565b5b6000614c7a858286016148dc565b9250506020614c8b85828601614c40565b9150509250929050565b6000614ca0826149d0565b9050919050565b614cb081614c95565b82525050565b6000602082019050614ccb6000830184614ca7565b92915050565b600060208284031215614ce757614ce66148b6565b5b6000614cf584828501614c40565b91505092915050565b60008060408385031215614d1557614d146148b6565b5b6000614d2385828601614a19565b9250506020614d3485828601614a19565b9150509250929050565b7f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460008201527f6869732066756e6374696f6e0000000000000000000000000000000000000000602082015250565b6000614d9a602c83614929565b9150614da582614d3e565b604082019050919050565b60006020820190508181036000830152614dc981614d8d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614e0a826148bb565b9150614e15836148bb565b9250828203905081811115614e2d57614e2c614dd0565b5b92915050565b6000614e3e826148bb565b9150614e49836148bb565b9250828201905080821115614e6157614e60614dd0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614eae57607f821691505b602082108103614ec157614ec0614e67565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614efd602083614929565b9150614f0882614ec7565b602082019050919050565b60006020820190508181036000830152614f2c81614ef0565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000614f8f602883614929565b9150614f9a82614f33565b604082019050919050565b60006020820190508181036000830152614fbe81614f82565b9050919050565b7f416d6f756e74206d757374206265206c657373207468616e20737570706c7900600082015250565b6000614ffb601f83614929565b915061500682614fc5565b602082019050919050565b6000602082019050818103600083015261502a81614fee565b9050919050565b7f4163636f756e7420697320616c7265616479206578636c756465640000000000600082015250565b6000615067601b83614929565b915061507282615031565b602082019050919050565b600060208201905081810360008301526150968161505a565b9050919050565b7f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006150f9602483614929565b91506151048261509d565b604082019050919050565b60006020820190508181036000830152615128816150ec565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b600061518b602583614929565b91506151968261512f565b604082019050919050565b600060208201905081810360008301526151ba8161517e565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061521d602683614929565b9150615228826151c1565b604082019050919050565b6000602082019050818103600083015261524c81615210565b9050919050565b7f4163636f756e7420697320616c726561647920696e636c756465640000000000600082015250565b6000615289601b83614929565b915061529482615253565b602082019050919050565b600060208201905081810360008301526152b88161527c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000615328826148bb565b9150615333836148bb565b9250828202615341816148bb565b9150828204841483151761535857615357614dd0565b5b5092915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006153bb602483614929565b91506153c68261535f565b604082019050919050565b600060208201905081810360008301526153ea816153ae565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061544d602283614929565b9150615458826153f1565b604082019050919050565b6000602082019050818103600083015261547c81615440565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006154df602583614929565b91506154ea82615483565b604082019050919050565b6000602082019050818103600083015261550e816154d2565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615571602383614929565b915061557c82615515565b604082019050919050565b600060208201905081810360008301526155a081615564565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b6000615603602983614929565b915061560e826155a7565b604082019050919050565b60006020820190508181036000830152615632816155f6565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000615695602683614929565b91506156a082615639565b604082019050919050565b600060208201905081810360008301526156c481615688565b9050919050565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61785460008201527f78416d6f756e742e000000000000000000000000000000000000000000000000602082015250565b6000615727602883614929565b9150615732826156cb565b604082019050919050565b600060208201905081810360008301526157568161571a565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000615793601f83614929565b915061579e8261575d565b602082019050919050565b600060208201905081810360008301526157c281615786565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615825602183614929565b9150615830826157c9565b604082019050919050565b6000602082019050818103600083015261585481615818565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006158b7602283614929565b91506158c28261585b565b604082019050919050565b600060208201905081810360008301526158e6816158aa565b9050919050565b7f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260008201527f65666c656374696f6e7300000000000000000000000000000000000000000000602082015250565b6000615949602a83614929565b9150615954826158ed565b604082019050919050565b600060208201905081810360008301526159788161593c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006159b9826148bb565b91506159c4836148bb565b9250826159d4576159d361597f565b5b828204905092915050565b60006060820190506159f46000830186614b4b565b615a016020830185614b4b565b615a0e6040830184614b4b565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081519050615a5481614a02565b92915050565b600060208284031215615a7057615a6f6148b6565b5b6000615a7e84828501615a45565b91505092915050565b6000819050919050565b6000615aac615aa7615aa284615a87565b614ad1565b6148bb565b9050919050565b615abc81615a91565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b615af7816149f0565b82525050565b6000615b098383615aee565b60208301905092915050565b6000602082019050919050565b6000615b2d82615ac2565b615b378185615acd565b9350615b4283615ade565b8060005b83811015615b73578151615b5a8882615afd565b9750615b6583615b15565b925050600181019050615b46565b5085935050505092915050565b600060a082019050615b956000830188614b4b565b615ba26020830187615ab3565b8181036040830152615bb48186615b22565b9050615bc36060830185614bc8565b615bd06080830184614b4b565b9695505050505050565b6000604082019050615bef6000830185614b4b565b8181036020830152615c018184615b22565b90509392505050565b600060c082019050615c1f6000830189614bc8565b615c2c6020830188614b4b565b615c396040830187615ab3565b615c466060830186615ab3565b615c536080830185614bc8565b615c6060a0830184614b4b565b979650505050505050565b600081519050615c7a816148c5565b92915050565b600080600060608486031215615c9957615c986148b6565b5b6000615ca786828701615c6b565b9350506020615cb886828701615c6b565b9250506040615cc986828701615c6b565b915050925092509256fea2646970667358221220fd227e3c50fcea5efb41b10b4e5fbd5465c08b269a0c21458bda70eb2849a21a64736f6c63430008190033
Verified Source Code Partial Match
Compiler: v0.8.25+commit.b61c2a91
EVM: paris
Optimization: No
AIAutomation.sol 1922 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 AIAutomation 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) / 2;
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] == 0x0000000000000000000000000000000000000000) {
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) {
contractTokenBalance = minimumTokensBeforeSwap;
swapTokens(contractTokenBalance);
}
}
bool takeFee = true;
if (_isExcludedFromFee[sender] || _isExcludedFromFee[recipient]) {
takeFee = false;
}
_tokenTransfer(sender, recipient, amount, takeFee);
}
function _tokenTransfer(
address from,
address to,
uint256 value,
bool takeFee
) private {
if (!takeFee) {
removeAllFee();
}
_transferStandard(from, to, value);
if (!takeFee) {
restoreAllFee();
}
}
function _transferStandard(
address sender,
address recipient,
uint256 tAmount
) private {
(
uint256 rAmount,
uint256 rTransferAmount,
uint256 tTransferAmount,
uint256 currentRate
) = _getTransferValues(tAmount);
_rOwned[sender] = _rOwned[sender] - rAmount;
_rOwned[recipient] = _rOwned[recipient] + rTransferAmount;
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_tOwned[sender] = _tOwned[sender] - tAmount;
} else if (!_isExcluded[sender] && _isExcluded[recipient]) {
_tOwned[recipient] = _tOwned[recipient] + tTransferAmount;
} else if (_isExcluded[sender] && _isExcluded[recipient]) {
_tOwned[sender] = _tOwned[sender] - tAmount;
_tOwned[recipient] = _tOwned[recipient] + tTransferAmount;
}
_reflectFee(tAmount, currentRate);
burnFeeTransfer(sender, tAmount, currentRate);
feeTransfer(
sender,
tAmount,
currentRate,
_combinedLiquidityFee,
address(this)
);
emit Transfer(sender, recipient, tTransferAmount);
}
func...
// [truncated — 59030 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 28 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
mint 0x40c10f19
address receiver
uint256 amount
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
No transactions found for this address