From fab343928e32a0494f9f5142214c235f5b540d71 Mon Sep 17 00:00:00 2001 From: Costales Date: Tue, 1 Jun 2021 17:36:49 +0200 Subject: [PATCH] LBC price with 3 digits. Fixes https://github.com/lbryio/block-explorer/issues/77 --- src/Controller/MainController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index 647fd0e..1010cea 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -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));