Browse Source

resolve comments

pull/6171/head
KenTandrian 5 days ago
parent
commit
7c3b3b454a
  1. 8
      apps/api/src/app/portfolio/calculator/roai/portfolio-calculator.ts

8
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator.ts

@ -34,9 +34,11 @@ export class RoaiPortfolioCalculator extends PortfolioCalculator {
let totalTimeWeightedInvestment = new Big(0); let totalTimeWeightedInvestment = new Big(0);
let totalTimeWeightedInvestmentWithCurrencyEffect = new Big(0); let totalTimeWeightedInvestmentWithCurrencyEffect = new Big(0);
for (const currentPosition of positions.filter((position) => { for (const currentPosition of positions.filter(
return position.includeInTotalAssetValue; ({ includeInTotalAssetValue }) => {
})) { return includeInTotalAssetValue;
}
)) {
if (currentPosition.feeInBaseCurrency) { if (currentPosition.feeInBaseCurrency) {
totalFeesWithCurrencyEffect = totalFeesWithCurrencyEffect.plus( totalFeesWithCurrencyEffect = totalFeesWithCurrencyEffect.plus(
currentPosition.feeInBaseCurrency currentPosition.feeInBaseCurrency

Loading…
Cancel
Save