Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1.  
  2.  
  3. var baseBet = 2 // bits, how much you want to lose each bet?
  4. var baseTarget = 1.03 // this is your base target, you might hit it.
  5. var targetIncrease = 0.9 // this amount is added to your target after each loss
  6. var maxTarget = 1000 // doubles your bet and halves the target when target gets this high.
  7. var stopBalance = 200 // If your bank roll drops to this level it’s supposed to stop the script, I dont know for sure if it does.
  8.  
  9. //----------------------------------------------------------
  10. var currentBet = baseBet
  11. var cashOut = baseTarget
  12. var startBR = balance
  13. var currentBR = balance
  14. var sessionBR = balance
  15. //----------------------------------------------------------
  16. const main = async () => {
  17. while (true){
  18. if(stopBalance>this.balance){
  19. stop();
  20. }
  21.  
  22.  
  23. //this.log(`Betting ${Math.round(currentBet)} bits @ ${cashOut}x`);
  24. let lastGame = await this.bet(Math.round(currentBet)*100, cashOut);
  25. let lastCrash = lastGame.multiplier;
  26. console.log(`${ lastGame.multiplier }`);
  27. if (lastCrash<cashOut){
  28. cashOut+=targetIncrease
  29. if(cashOut>maxTarget){
  30. currentBet*=2
  31. cashOut-=targetIncrease
  32. cashOut/=2
  33. }
  34. }else{
  35. currentBet=baseBet
  36. cashOut=baseTarget
  37. }
  38.  
  39. this.clearLog()
  40. this.log(`Betting ${Math.round(currentBet)} bits @ ${Math.round(cashOut*100)/100}x`);
  41. this.log(`Current profit/losses: ${Math.round(this.balance-startBR)/100}`)
  42. this.log(`Session profit/losses: ${Math.round(this.balance-sessionBR)/100}`)
  43. if (lastGame.balance > startBR) {startBR = lastGame.balance;}
  44. }
  45. }
  46.  
  47. while (true) {
  48. try {
  49. await main();
  50. } catch (error) {
  51. if (error.message === "connection closed") {
  52. await this.log("connection closed. restarting script");
  53. continue;
  54. } else {
  55. throw error;
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement