Skip to content

Commit 69dc888

Browse files
authored
fix: update block expiration buffers for short term orders (#444)
Due to recent block time decreases, the default 3 block expiration for short term orders is not enough. This PR bumps the SHORT_BLOCK_FORWARD to 20 blocks and the SHORT_BLOCK_WINDOW(allowed upper bound of good till block delta) to 40
1 parent 1eec0d9 commit 69dc888

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

v4-client-js/src/clients/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export const MAX_MEMO_CHARACTERS: number = 256;
230230

231231
export const SHORT_BLOCK_WINDOW: number = 20;
232232

233-
export const SHORT_BLOCK_FORWARD: number = 3;
233+
export const SHORT_BLOCK_FORWARD: number = 15;
234234

235235
// Querying
236236
export const PAGE_REQUEST: PageRequest = {

v4-client-py-v2/dydx_v4_client/indexer/rest/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ class TradingRewardAggregationPeriod:
7070
DEFAULT_API_TIMEOUT = 3_000
7171
MAX_MEMO_CHARACTERS = 256
7272
SHORT_BLOCK_WINDOW = 20
73-
SHORT_BLOCK_FORWARD = 3
73+
SHORT_BLOCK_FORWARD = 15

0 commit comments

Comments
 (0)