Skip to content

Commit

Permalink
fix totalstake fiatvalue only returning euro (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitcoinera authored Mar 12, 2020
1 parent 8af69f2 commit 81f8df2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/reducers/cosmosV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ async function overviewReducer(
rewards,
stakingDenom,
fiatValueAPI,
fiatCurrency,
reducers
) {
stakingDenom = denomLookup(stakingDenom)
Expand Down Expand Up @@ -427,6 +428,7 @@ async function overviewReducer(
totalStakeFiatValue: fiatValueAPI
? totalStakeFiatValueReducer(
fiatValueAPI,
fiatCurrency,
totalStake,
stakingDenom,
reducers
Expand All @@ -437,6 +439,7 @@ async function overviewReducer(

async function totalStakeFiatValueReducer(
fiatValueAPI,
fiatCurrency,
totalStake,
stakingDenom
) {
Expand All @@ -445,7 +448,8 @@ async function totalStakeFiatValueReducer(
toMicroUnitBalance({
amount: totalStake,
denom: stakingDenom
})
}),
fiatCurrency
)
}

Expand Down
1 change: 1 addition & 0 deletions lib/source/cosmosV0-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ class CosmosV0API extends RESTDataSource {
rewards,
stakingDenom,
fiatValueAPI,
fiatCurrency,
this.reducers
)
}
Expand Down

0 comments on commit 81f8df2

Please sign in to comment.