var minValue = 10E-8,
maxLoss = 10E-7,
aimedProfit = 10,
maxOps = 100,
endResult = 0,
ops = 0,
tryJackpot = 0,
bet = function (a, b, c) {
var seed = window.document.getElementById('next_client_seed').value;
$.get("?op=double_your_btc&m=" + (b ? "lo" : "hi") + "&stake=" + a + "&multiplier=2&jackpot=" + tryJackpot +"&client_seed=" + seed, function (d) {
d = d.split(":");
$("#balance").html(d[3]);
c(a, b, "w" === d[1])
})
},
botStart = function (a, b, c) {
c || a >= maxLoss && 0 !== maxLoss ? (b = !b, newValue = minValue) : newValue = 2 * a;
endResult = c ? endResult + a : endResult - a;
tmp_a = parseFloat(a).toFixed(8);
console.log((c ? "+" : "-") + tmp_a);
ops++;
(ops < maxOps || 0 === maxOps) && (endResult < aimedProfit || 0 === aimedProfit) ? bet(newValue, b, botStart) :
(console.log("FreeBitco.in BOT v1.0 finished in " + ops + " operations!"))
};
botStart(minValue, !1, !1);