|
@ -802,11 +802,8 @@ export class PortfolioService { |
|
|
|
|
|
|
|
|
const stakeRewards = getSum( |
|
|
const stakeRewards = getSum( |
|
|
activities |
|
|
activities |
|
|
.filter(({ SymbolProfile }) => { |
|
|
.filter(({ SymbolProfile, type }) => { |
|
|
return symbol === SymbolProfile.symbol; |
|
|
return symbol === SymbolProfile.symbol && type === 'STAKE'; |
|
|
}) |
|
|
|
|
|
.filter(({ type }) => { |
|
|
|
|
|
return type === 'STAKE'; |
|
|
|
|
|
}) |
|
|
}) |
|
|
.map(({ quantity }) => { |
|
|
.map(({ quantity }) => { |
|
|
return new Big(quantity); |
|
|
return new Big(quantity); |
|
|