coinwalk

awesome

May 5th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. function getR(min, max) {
  2. min = Math.ceil(min);
  3. max = Math.floor(max);
  4. return Math.floor(Math.random() * (max - min + 1)) + min;
  5. }
  6.  
  7. var v =getR(50000000,99999999);
  8. var z =getR(50000000,99999999);
  9. var h =getR(50000000,99999999);
  10. function go () {
  11. var x =getR(1,3);
  12. $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
  13. onBetComplete = function(e){
  14. var myseed;
  15. if (x==1) {
  16. myseed = v;
  17. }
  18. else if (x==2)
  19. {
  20. myseed = h;
  21. } else {
  22. myseed = z;
  23. }
  24. setTimeout(() => {
  25. $(".ManualSeedControls:visible input").val(myseed)}, 1);
  26. }
  27. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  28. setInterval(() => go(), 1);
  29.  
  30. var balance = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  31. var baseBet = balance/6000;
  32. var mulBet = 2;
  33. var mulPlaceBet = 499499;
  34. var betMode = 0;
  35. var newPlaceBet = balance/6000;
  36. var cntWin = 0;
  37.  
  38. function applyFormula(bet) {
  39. processBet(betMode, bet);
  40. }
  41.  
  42. pipe = {
  43. events: {
  44. connected: null,
  45. disconnected: null,
  46. startupInfoReceived: null,
  47. withdrawPending: null,
  48. withdrawInsufficientFunds: null,
  49. withdrawError: null,
  50. },
  51. betsAllowed: !0,
  52. server: {
  53. isBetOutstanding: !1,
  54. lastReceivedBetId: 0,
  55. overlappingBetCount: 0,
  56. placeBet: function(n, t, i, r, u, f) {
  57. pipe.betsAllowed && (!pipe.server.isBetOutstanding || config.prefs.overlappingBetsAllowed) && (pipe.server.overlappingBetCount > 5 || (pipe.server.isBetOutstanding = !0, ++pipe.server.overlappingBetCount, $.connection.mainHub.server.placeBet(n, t, i, r, u, f).done(function(n) {
  58. var f, e, o;
  59. pipe.server.isBetOutstanding = !1;
  60. --pipe.server.overlappingBetCount;
  61. switch (n.status) {
  62. case 0:
  63. f = new BetInfo;
  64. f.accountId = data.user.accountId;
  65. f.betCount = 1;
  66. f.betWins = n.secret >= t && n.secret <= i ? 1 : 0;
  67. f.secret = n.secret;
  68. f.clientSeed = r;
  69. f.currencyId = u;
  70. f.guessHigh = i;
  71. f.guessLow = t;
  72. f.id = n.id;
  73. f.payIn = n.payIn;
  74. f.payOut = n.payOut;
  75. f.name = data.user.friendlyName;
  76. e = data.user.currencyStats[u];
  77. o = data.site.betStats[u];
  78. data.user.serverSeedHash = n.next ? n.next : null;
  79. pipe.server.lastReceivedBetId < f.id && (pipe.server.lastReceivedBetId = f.id, e.balance = n.startingBalance + f.payIn + f.payOut);
  80. ++e.betStats.count;
  81. ++o.count;
  82. e.betStats.payIn += f.payIn;
  83. e.betStats.payOut += f.payOut;
  84. o.payIn += f.payIn;
  85. o.payOut += f.payOut;
  86. f.betWins && (++e.betStats.winCount, ++o.winCount);
  87. pipe.events.betComplete && pipe.events.betComplete(f, 10);
  88. $('.UserBalance').text((e.balance * 1e-8).toFixed(8));
  89. $('#LastBetInfoProfit').text(((n.payIn + n.payOut) / 1e8).toFixed(8));
  90. $("#LastBetInfoSecret").text(n.secret);
  91. f.betWins ? ($("#LastBetInfoContainer").removeClass("BadNumber"), $("#LastBetInfoContainer").addClass("GoodNumber")) : ($("#LastBetInfoContainer").removeClass("GoodNumber"), $("#LastBetInfoContainer").addClass("BadNumber"));
  92. if(f.betWins) {
  93. cntWin++;
  94. newPlaceBet = baseBet;
  95. } else {
  96. newPlaceBet = (newPlaceBet * mulBet).toFixed(8);
  97. }
  98. applyFormula(newPlaceBet);
  99. break;
  100. default:
  101. pipe.events.betError && pipe.events.betError(n.msg)
  102. }
  103. }).fail(function() {
  104. --pipe.server.overlappingBetCount;
  105. pipe.server.isBetOutstanding = !1
  106. })))
  107. },
  108. twoFactorAdjust: function(n, t) {
  109. // $.connection.mainHub.server.twoFactorAdjust(n, t)
  110. }
  111. },
  112. client: {
  113. infoUpdates: function(n) {
  114. var t, i;
  115. if (data.site.betStats[1].count) {
  116. if (n.bets && pipe.events.receivedSiteBets && pipe.events.receivedSiteBets(pipe.betsFromSiteBroadcastFormat(n.bets)), n.betStats) {
  117. for (t = 0; t < n.betStats.currencies.length; ++t) i = data.site.betStats[n.betStats.currencies[t]], i.count = n.betStats.counts[t], i.payIn = n.betStats.payIns[t], i.payOut = n.betStats.payOuts[t], i.winCount = n.betStats.winCounts[t];
  118. pipe.events.betStatsUpdated && pipe.events.betStatsUpdated()
  119. }
  120. n.faucet !== undefined && (data.site.faucet = n.faucet, pipe.events.faucetStatusUpdated && pipe.events.faucetStatusUpdated());
  121. n.announcedBets && pipe.events.receivedAnnouncedBets && pipe.events.receivedAnnouncedBets(n.announcedBets);
  122. n.lastRain && (data.site.lastRain = n.lastRain, pipe.events.lastRainUpdated && pipe.events.lastRainUpdated())
  123. }
  124. },
  125. disableBets: function() {
  126. pipe.betsAllowed = !1
  127. },
  128. enableBets: function() {
  129. pipe.betsAllowed = !0
  130. }
  131. }
  132. };
  133.  
  134. function processBet(mode, newBet) {
  135. var n;
  136. n = config.displayCurrencyId;
  137. view.disableBetControls(20);
  138. var t = view.parseCommaFloat(newBet) * 1e8,
  139. r = mulPlaceBet,
  140. i = view.controls.getClientSeed();
  141. if(mode == 0) {
  142. i !== -1 && view.confirmBetCurrency(n) && (config.prefs.confirmMaxBet && t &&
  143. t == data.user.currencyStats[n].balance &&
  144. !confirm(phrases.bet + " " + view.util.fixNumberString(t / 1e8) + " " + getCurrencyName(n) + "?") ||
  145. pipe.server.placeBet(t, 0, r, i, n, !0));
  146. } else {
  147. i !== -1 && view.confirmBetCurrency(n) && (config.prefs.confirmMaxBet && t &&
  148. t == data.user.currencyStats[n].balance &&
  149. !confirm(phrases.bet + " " + view.util.fixNumberString(t / 1e8) + " " + getCurrencyName(n) + "?") ||
  150. pipe.server.placeBet(t, config.betRange - r - 1, config.betRange - 1, i, n, !0));
  151. }
  152.  
  153. }
  154.  
  155. processBet(betMode, baseBet);
Add Comment
Please, Sign In to add comment