LBC price with 3 digits. Fixes https://github.com/lbryio/block-explorer/issues/77
This commit is contained in:
parent
0c84ba3fae
commit
fab343928e
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class MainController extends AppController {
|
|||
if (isset($blckjson->USD)) {
|
||||
$lbcPrice = $onelbc * $blckjson->USD->buy;
|
||||
if ($lbcPrice > 0) {
|
||||
$priceInfo->price = number_format($lbcPrice, 2, '.', '');
|
||||
$priceInfo->price = number_format($lbcPrice, 3, '.', '');
|
||||
$priceInfo->time = $now->format('c');
|
||||
if ($this->redis) {
|
||||
$this->redis->set(self::lbcPriceKey, json_encode($priceInfo));
|
||||
|
|
Loading…
Reference in a new issue