coinwalk

snowybot compounding

May 17th, 2023
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. var basebet = ((((((document.getElementById('pct_balance').value)*10000000).toPrecision(1))/(((document.getElementById('pct_balance').value)*10000000).toPrecision(1))+(((document.getElementById('pct_balance').value)*10000000).toPrecision(1))-(((document.getElementById('pct_balance').value)*10000000).toPrecision(1)))/100000000)/100000).toString();
  2. var james = basebet;
  3. var oldDigit = 0;
  4. var ten = (basebet*10);
  5. var oldBal = parseFloat(document.getElementById('pct_balance').value);
  6. var mad = basebet.length-2;
  7.  
  8. function findDigitInBalance(){
  9. var balanceStr = document.getElementById('pct_balance').value;
  10. var balanceDecimalIndex = balanceStr.indexOf(".");
  11. if (((balanceStr.charAt(balanceDecimalIndex + mad)) == 7) && (balanceStr != oldDigit)) {
  12. james = james*2;
  13. oldDigit = parseFloat(balanceStr);
  14. } else if (((balanceStr.charAt(balanceDecimalIndex + mad)) == 7) && (balanceStr>(oldBal+(ten*2)))) {
  15. basebet = ((((((document.getElementById('pct_balance').value)*10000000).toPrecision(1))/(((document.getElementById('pct_balance').value)*10000000).toPrecision(1))+(((document.getElementById('pct_balance').value)*10000000).toPrecision(1))-(((document.getElementById('pct_balance').value)*10000000).toPrecision(1)))/100000000)/100000).toString();
  16. mad = basebet.length-2;
  17. james = basebet*2;
  18. oldBal = ((Math.floor(balanceStr/ten))*ten);
  19. oldDigit = parseFloat(balanceStr);
  20. } else if (((balanceStr.charAt(balanceDecimalIndex + mad)) != 7) && (balanceStr>(oldBal+(ten*2)))) {
  21. basebet = ((((((document.getElementById('pct_balance').value)*10000000).toPrecision(1))/(((document.getElementById('pct_balance').value)*10000000).toPrecision(1))+(((document.getElementById('pct_balance').value)*10000000).toPrecision(1))-(((document.getElementById('pct_balance').value)*10000000).toPrecision(1)))/100000000)/100000).toString();
  22. mad = basebet.length-2;
  23. james = basebet;
  24. oldBal = ((Math.floor(balanceStr/ten))*ten);
  25. oldDigit = 0;
  26. }
  27. return parseFloat(james);
  28. }
  29.  
  30. function xig() {
  31. document.getElementById('pct_chance').value = 49.5;
  32. document.getElementById('pct_payout').value = 2;
  33. document.getElementById('pct_bet').value = (((findDigitInBalance())*1).toFixed(basebet.length-2));
  34. document.getElementById('pct_profit').value = (((findDigitInBalance())*1).toFixed(basebet.length-2));
  35. document.getElementById('a_hi').click();
  36. setTimeout(() => xig(), 7);
  37. }
  38.  
  39. xig();
Add Comment
Please, Sign In to add comment