Skip to content

Commit

Permalink
Fix subaccount subscribe.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Feb 6, 2025
1 parent c1ccf1f commit 3b9100c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/services/socks/src/lib/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export class Subscriptions {
}),
axiosRequest({
method: RequestMethod.GET,
url: `${COMLINK_URL}/v4/orders?address=${address}&subaccountNumber=${subaccountNumber}&status=BEST_EFFORT_CANCELED&goodTilBlockAfter=${numBlockHeight - 20}`,
url: `${COMLINK_URL}/v4/orders?address=${address}&subaccountNumber=${subaccountNumber}&status=BEST_EFFORT_CANCELED&goodTilBlockAfter=$${Math.max(numBlockHeight - 20, 1)}`,
timeout: config.INITIAL_GET_TIMEOUT_MS,
headers: {
'cf-ipcountry': country,
Expand Down

0 comments on commit 3b9100c

Please sign in to comment.