Browse Source
Feature/refactor regional market cluster risk rule for North America (#4276)
* Refactoring
pull/4277/head
Thomas Kaul
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
apps/api/src/models/rules/regional-market-cluster-risk/north-america.ts
|
|
@ -10,7 +10,7 @@ export class RegionalMarketClusterRiskNorthAmerica extends Rule<Settings> { |
|
|
|
public constructor( |
|
|
|
protected exchangeRateDataService: ExchangeRateDataService, |
|
|
|
currentValueInBaseCurrency: number, |
|
|
|
valueInBaseCurrency |
|
|
|
northAmericaValueInBaseCurrency: number |
|
|
|
) { |
|
|
|
super(exchangeRateDataService, { |
|
|
|
key: RegionalMarketClusterRiskNorthAmerica.name, |
|
|
@ -18,7 +18,7 @@ export class RegionalMarketClusterRiskNorthAmerica extends Rule<Settings> { |
|
|
|
}); |
|
|
|
|
|
|
|
this.currentValueInBaseCurrency = currentValueInBaseCurrency; |
|
|
|
this.northAmericaValueInBaseCurrency = valueInBaseCurrency; |
|
|
|
this.northAmericaValueInBaseCurrency = northAmericaValueInBaseCurrency; |
|
|
|
} |
|
|
|
|
|
|
|
public evaluate(ruleSettings: Settings) { |
|
|
|