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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
apps/api/src/app/portfolio/portfolio.service.ts
|
|
@ -802,6 +802,9 @@ export class PortfolioService { |
|
|
|
|
|
|
|
const stakeRewards = getSum( |
|
|
|
activities |
|
|
|
.filter(({ SymbolProfile }) => { |
|
|
|
return symbol === SymbolProfile.symbol; |
|
|
|
}) |
|
|
|
.filter(({ type }) => { |
|
|
|
return type === 'STAKE'; |
|
|
|
}) |
|
|
|