From bf6ec55274cedd83b341c6c31ef54e4ad4ba91c5 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:17:59 +0200 Subject: [PATCH] Improve test --- ...folio-calculator-btcusd-buy-and-sell-partially.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator-btcusd-buy-and-sell-partially.spec.ts b/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator-btcusd-buy-and-sell-partially.spec.ts index e53f83082..cc64a540b 100644 --- a/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator-btcusd-buy-and-sell-partially.spec.ts +++ b/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator-btcusd-buy-and-sell-partially.spec.ts @@ -149,9 +149,9 @@ describe('PortfolioCalculator', () => { feeInBaseCurrency: new Big('0'), firstBuyDate: '2015-01-01', grossPerformance: new Big('27172.74').mul(0.97373), - grossPerformancePercentage: new Big('42.41983590271396609433'), + grossPerformancePercentage: new Big('0.4241983590271396608571'), grossPerformancePercentageWithCurrencyEffect: new Big( - '41.64017412624815597854' + '0.4164017412624815597008' ), grossPerformanceWithCurrencyEffect: new Big( '26516.208701400000064086' @@ -161,9 +161,9 @@ describe('PortfolioCalculator', () => { marketPrice: 13657.2, marketPriceInBaseCurrency: 13298.425356, netPerformance: new Big('27172.74').mul(0.97373), - netPerformancePercentage: new Big('42.41983590271396609433'), + netPerformancePercentage: new Big('0.4241983590271396608571'), netPerformancePercentageWithCurrencyEffectMap: { - max: new Big('41.73453461766058626637') + max: new Big('0.417188277288666871633') }, netPerformanceWithCurrencyEffectMap: { max: new Big('26516.208701400000064086')