Add Nicehash auto refill

Added refill if order goes below 75k sats. refills with Nicehash min order amount 0.01 BTC
This commit is contained in:
crackfoo 2015-12-17 23:57:07 -04:00 committed by Tanguy Pruvot
parent f4fcf685ae
commit 4a03b7473a

View file

@ -202,6 +202,14 @@ function BackendUpdateServices()
debuglog($res);
}
else if($order->btc_avail < 0.00075000)
{
debuglog("* refilling order $order->id");
$res = fetch_url("https://www.nicehash.com/api?method=orders.refill&id=$apiid&key=$apikey&location=0&algo=$i&order=$order->id&amount=0.01");
debuglog($res);
}
$nicehash->save();
}