Earn some bitcoing.


SUBMITTED BY: Guest

DATE: Nov. 24, 2013, 12:16 a.m.

FORMAT: Text only

SIZE: 1.8 kB

HITS: 6745

  1. So I've found the right script for FreeBitCo.in
  2. Check it bellow.
  3. var minValue = 0.00000001;
  4. var maxLoss = 0.0000001;
  5. var aimedProfit = 0.000005;
  6. var maxOps = 50;
  7. // Don't touch anything after this
  8. var endResult = 0;
  9. var ops = 0;
  10. // Bets a given amount on a given button and returns the value ot the callback
  11. var bet = function(value, button, callback) {
  12. var buttonName = button ? 'lo' : 'hi';
  13. // We use site's api
  14. $.get('?op=double_your_btc&m=' + buttonName + '&stake=' + value + '&multiplier=2&jackpot=0', function(result) {
  15. var splittedResult = result.split(':');
  16. // We update the account balance, as we have it juste there
  17. $('#balance').html(splittedResult[3]);
  18. // We finally call the callback
  19. callback(value, button, splittedResult[1] === 'w');
  20. }
  21. );
  22. };
  23. // Main Martingale's method
  24. var martingale = function(value, button, result) {
  25. // We apply Martingale algorithm
  26. if (result || (value >= maxLoss && maxLoss !== 0)) {
  27. button = !button;
  28. newValue = minValue;
  29. }
  30. else
  31. newValue = 2 * value;
  32. // We compute new final result
  33. if (result)
  34. endResult += value;
  35. else
  36. endResult -= value;
  37. // We start over (and log misc data)
  38. console.log((result ? '+' : '-') + value);
  39. ops++;
  40. if ((ops < maxOps || maxOps === 0) && (endResult < aimedProfit || aimedProfit === 0))
  41. bet(newValue, button, martingale);
  42. else {
  43. console.log('Martingale finished in ' + ops + ' operations!');
  44. console.log('Result: ' + endResult);
  45. }
  46. };
  47. // Init operation
  48. martingale(minValue, false, false);

comments powered by Disqus