You are on page 1of 2

var baseBet = parseFloat(0.

0000001);
var maxWin = 10;
var chanceValue = 50;
var betMode = 0;
var mulBet = 2;
var minValue = (chanceValue * 1000);
var maxValue = ((100 - chanceValue) * 1000);
var previousBalance = $('#money').text();
var cntLose = 0;
var cntWin = 0;
var newBet = baseBet;
var arrPrevious = [];

function applyFormula(bet) {
let currentBalance = $('#money').text();
if(bet > currentBalance) {
console.log("Bạn không còn đủ tiền để cược thêm");
} else {
let new_mode = betMode;
if(arrPrevious[4] <= minValue) {
new_mode = 1;
} else {
if(arrPrevious[4] >= maxValue) {
new_mode = 0;
}
}
if(cntWin == maxWin) {
console.log("Đã thắng đủ " + maxWin + " lần");
} else {
processBet(new_mode, bet);
}
}
}

function processBet(sudalicha, bet) {


let balance = parseFloat($('#money').text()).toFixed(8);
$.post( "https://www.free-litecoin.com/php/betnow.php", { money: bet,
winchance: chanceValue, sudalicha: sudalicha })
.done(function( data ) {
newBet = bet;
if(data.winlost) {
cntWin ++;
newBet = parseFloat(baseBet).toFixed(8);
cntLose = 0;
} else {
let len = arrPrevious.length;
if(len === 5) {
arrPrevious.splice(0, 1);
}
arrPrevious.push(data.number);
cntLose++;
if(cntLose >= 1) {
newBet = parseFloat(bet * mulBet).toFixed(8);
} else {
newBet = parseFloat(baseBet).toFixed(8);
}
}
$('#money').text(parseFloat(data.cryptovalue).toFixed(8));
applyFormula(newBet);
})
.fail(function(jqXHR, textStatus){
if(textStatus === 'timeout')
{
console.log("timeout");
} else {
if(textStatus === 'error')
{
processBet(betMode, newBet);
} else {
console.log(textStatus);
}
}
});
}

var interval_obj = setInterval(function(){


let currentBalance = $('#money').text();
if(previousBalance != currentBalance) {
previousBalance = currentBalance;
} else {
if(currentBalance > newBet) {
processBet(betMode, newBet);
} else {
clearInterval(interval_obj);
}
}
}, 180000);

processBet(betMode, baseBet);

Blockchain Unconfirmed Tx Hack 2020.txt

You might also like