mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-31 17:21:26 +00:00
trading: wrong balance fields for Cryptopia (#323)
Fixing a typo in balance update: $market->balance was updated by $balance->HeldForTrades but should be $balance-.Available This caused properly updated balance in previous loop to be overwritten by wrong value.
This commit is contained in:
parent
ca3da8aa41
commit
46d40cd75c
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ function doCryptopiaTrading($quick=false)
|
||||||
|
|
||||||
$market = getdbosql('db_markets', "coinid=:coinid AND name='cryptopia'", array(':coinid'=>$coin->id));
|
$market = getdbosql('db_markets', "coinid=:coinid AND name='cryptopia'", array(':coinid'=>$coin->id));
|
||||||
if(!$market) continue;
|
if(!$market) continue;
|
||||||
$market->balance = $balance->HeldForTrades;
|
$market->balance = $balance->Available;
|
||||||
|
$market->ontrade = $balance->HeldForTrades;
|
||||||
$market->message = $balance->StatusMessage;
|
$market->message = $balance->StatusMessage;
|
||||||
|
|
||||||
$orders = NULL;
|
$orders = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue