Farmersworld Tokens
ghostprize opened this issue · comments
ghostprize commented
Equipment repairs or food refills are not available for accounts with different currency positions.
ex: const current_gold = balance.balances[2].split(" ")[0];
i use for mornitor my account
I'm not good at coding Please help fix this request.
substringG = "GOLD"
substringW = "WOOD"
substringF = "FOOD"
if (token_0.includes(substringG) === true){
var token_G = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[0]).slice(0,-5))
console.log(token_G);
}
if (token_0.includes(substringW) === true){
var token_W = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[0]).slice(0,-5))
console.log(token_W);
}
if (token_0.includes(substringF) === true){
var token_F = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[0]).slice(0,-5))
console.log(token_F);
}
if (token_1.includes(substringG) === true){
var token_G = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[1]).slice(0,-5))
console.log(token_G);
}
if (token_1.includes(substringW) === true){
var token_W = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[1]).slice(0,-5))
console.log(token_W);
}
if (token_1.includes(substringF) === true){
var token_F = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[1]).slice(0,-5))
console.log(token_F);
}
if (token_2.includes(substringG) === true){
var token_G = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[2]).slice(0,-5))
console.log(token_G);
}
if (token_2.includes(substringW) === true){
var token_W = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[2]).slice(0,-5))
console.log(token_W);
}
if (token_2.includes(substringF) === true){
var token_F = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[2]).slice(0,-5))
console.log(token_F);
}
srisaard commented
Done, please confirm the latest update.
ghostprize commented