From f5a93931be91eba7cd06cbbd163f6879019190f5 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 2 May 2026 03:08:52 +0200 Subject: [PATCH] sddsdf --- modules/fx-rates/src/Domain/FxRatesService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/fx-rates/src/Domain/FxRatesService.php b/modules/fx-rates/src/Domain/FxRatesService.php index 279cdd3..84639e1 100644 --- a/modules/fx-rates/src/Domain/FxRatesService.php +++ b/modules/fx-rates/src/Domain/FxRatesService.php @@ -634,6 +634,10 @@ final class FxRatesService $rebasedRates[$code] = (float) $rate / (float) $baseRate; } + if ($snapshotBase !== '' && $snapshotBase !== $requestedBase) { + $rebasedRates[$snapshotBase] = 1 / (float) $baseRate; + } + $filteredRates = $this->filterRates($rebasedRates, $symbols); if ($this->symbolsContain($symbols, $requestedBase)) { $filteredRates = [$requestedBase => 1.0] + $filteredRates;