mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-24 12:20:32 +00:00
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:
parent
f4fcf685ae
commit
4a03b7473a
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue