From 270a5e16c6e906f078a0249090ddb0880a22ce8e Mon Sep 17 00:00:00 2001 From: Mas7erMind Date: Mon, 24 Aug 2020 18:27:05 -0400 Subject: [PATCH] Fix lastblock_lastReward --- .../io/scalaproject/androidminer/api/providers/ScalaPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/scalaproject/androidminer/api/providers/ScalaPool.java b/app/src/main/java/io/scalaproject/androidminer/api/providers/ScalaPool.java index fa8fd5a0..0531b62e 100644 --- a/app/src/main/java/io/scalaproject/androidminer/api/providers/ScalaPool.java +++ b/app/src/main/java/io/scalaproject/androidminer/api/providers/ScalaPool.java @@ -64,7 +64,7 @@ protected void onBackgroundFetchData() { mBlockData.network.lastBlockHeight = joStatsLastBlock.optString("height"); mBlockData.network.difficulty = getReadableHashRateString(joStatsNetwork.optLong("difficulty")); mBlockData.network.lastBlockTime = pTime.format(new Date(joStatsLastBlock.optLong("timestamp") * 1000)); - mBlockData.network.lastRewardAmount = parseCurrency(joStatsPool.optString("lastblock_lastReward", "0"), mBlockData.coin.units, mBlockData.coin.denominationUnit, mBlockData.coin.symbol); + mBlockData.network.lastRewardAmount = parseCurrency(joStatsPoolStats.optString("lastblock_lastReward", "0"), mBlockData.coin.units, mBlockData.coin.denominationUnit, mBlockData.coin.symbol); } catch (JSONException e) { Log.i(LOG_TAG, "NETWORK\n" + e.toString()); e.printStackTrace();