Browse Source

Merge pull request #126 from dandevaud/feature/MR-Upstream-2024-10-02

Fix stake rewards calculation on detail page
pull/5027/head
dandevaud 9 months ago
committed by GitHub
parent
commit
f724acbcc2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      apps/api/src/app/portfolio/portfolio.service.ts

3
apps/api/src/app/portfolio/portfolio.service.ts

@ -802,6 +802,9 @@ export class PortfolioService {
const stakeRewards = getSum( const stakeRewards = getSum(
activities activities
.filter(({ SymbolProfile }) => {
return symbol === SymbolProfile.symbol;
})
.filter(({ type }) => { .filter(({ type }) => {
return type === 'STAKE'; return type === 'STAKE';
}) })

Loading…
Cancel
Save