From f87a7942b14ba8596578158bf9026abbba48e4f3 Mon Sep 17 00:00:00 2001 From: vponline Date: Wed, 4 Oct 2023 15:45:48 +0300 Subject: [PATCH] Add deviationThresholdCoefficient config field --- README.md | 8 ++++++++ config/airseeker.example.json | 3 ++- src/config/schema.ts | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1b4d2b4..a3bc9e2b 100644 --- a/README.md +++ b/README.md @@ -97,3 +97,11 @@ The Airnode address of the beacon. `templateId` The template ID of the beacon. + +### `deviationThresholdCoefficient` + +The global coefficient applied to all deviation checks. Used to differentiate alternate deployments. For example: + +```jsonc +"deviationThresholdCoefficient": 1, +``` diff --git a/config/airseeker.example.json b/config/airseeker.example.json index e8f817a2..61e8dc38 100644 --- a/config/airseeker.example.json +++ b/config/airseeker.example.json @@ -25,5 +25,6 @@ } } } - } + }, + "deviationThresholdCoefficient": 1 } diff --git a/src/config/schema.ts b/src/config/schema.ts index cf9eab69..fc84afc1 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -98,6 +98,7 @@ export const configSchema = z .object({ sponsorWalletMnemonic: z.string().refine((mnemonic) => ethers.utils.isValidMnemonic(mnemonic), 'Invalid mnemonic'), chains: chainsSchema, + deviationThresholdCoefficient: z.number(), }) .strict();