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;