Skip to content

Commit

Permalink
Make deviationThresholdCoefficient optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Oct 27, 2023
1 parent 101f4bb commit 7cec9d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,16 @@ The number of minutes used to calculate the scaling multiplier if a pending tran

The maximum scaling multiplier used when the pending transaction lag exceeds the `scalingWindow`.

#### `deviationThresholdCoefficient`
#### `deviationThresholdCoefficient` _(optional)_

The global coefficient applied to all deviation checks. Used to differentiate alternate deployments. For example:

```jsonc
"deviationThresholdCoefficient": 1,
```

Defaults to `1`.

#### `dataFeedUpdateInterval`

The interval specifying how often to run the data feed update loop. In seconds.
Expand Down
2 changes: 1 addition & 1 deletion src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const configSchema = z
sponsorWalletMnemonic: z.string().refine((mnemonic) => ethers.utils.isValidMnemonic(mnemonic), 'Invalid mnemonic'),
chains: chainsSchema,
fetchInterval: z.number().positive(), // TODO: Rename to signedDataFetchInterval
deviationThresholdCoefficient: z.number(),
deviationThresholdCoefficient: z.number().positive().optional().default(1), // Explicitly agreed to make this optional. See: https://github.com/api3dao/airseeker-v2/pull/20#issuecomment-1750856113.
})
.strict();

Expand Down

0 comments on commit 7cec9d1

Please sign in to comment.