From 5a0b92db5b21bf3975baed64b85f72cde3d46d1a Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:04:18 +0000 Subject: [PATCH 1/5] chore: Temporarily disable relayer exclusivity Many relayers are down due to the pending SpokePool upgrade. Disable for ~12 hours and then resume automatically. This is a bodge. --- api/suggested-fees.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/suggested-fees.ts b/api/suggested-fees.ts index 35a9ebdf4..fdc3929ef 100644 --- a/api/suggested-fees.ts +++ b/api/suggested-fees.ts @@ -258,7 +258,8 @@ const handler = async ( let exclusiveRelayer = sdk.constants.ZERO_ADDRESS; let exclusivityDeadline = 0; - if (depositMethod === "depositExclusive") { + // Temporarily disable exclusivity, to be resumed based on timestamp. + if (depositMethod === "depositExclusive" && getCurrentTime() < 1738965797) { ({ exclusiveRelayer, exclusivityPeriod: exclusivityDeadline } = await selectExclusiveRelayer( computedOriginChainId, From c15d79ed33b6652500ff87fa55021d23767c7b13 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:11:49 +0000 Subject: [PATCH 2/5] fix --- api/suggested-fees.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/suggested-fees.ts b/api/suggested-fees.ts index fdc3929ef..4a12c276e 100644 --- a/api/suggested-fees.ts +++ b/api/suggested-fees.ts @@ -26,6 +26,7 @@ import { validateChainAndTokenParams, getCachedLimits, getCachedLatestBlock, + getCurrentTime, } from "./_utils"; import { selectExclusiveRelayer } from "./_exclusivity"; import { From c9d3013815cd1cecc7b67876b7da431a2c859ef2 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:14:25 +0000 Subject: [PATCH 3/5] aah --- api/suggested-fees.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/suggested-fees.ts b/api/suggested-fees.ts index 4a12c276e..4a7340933 100644 --- a/api/suggested-fees.ts +++ b/api/suggested-fees.ts @@ -26,7 +26,6 @@ import { validateChainAndTokenParams, getCachedLimits, getCachedLatestBlock, - getCurrentTime, } from "./_utils"; import { selectExclusiveRelayer } from "./_exclusivity"; import { @@ -260,7 +259,10 @@ const handler = async ( let exclusiveRelayer = sdk.constants.ZERO_ADDRESS; let exclusivityDeadline = 0; // Temporarily disable exclusivity, to be resumed based on timestamp. - if (depositMethod === "depositExclusive" && getCurrentTime() < 1738965797) { + if ( + depositMethod === "depositExclusive" && + sdk.utils.getCurrentTime() < 1738965797 + ) { ({ exclusiveRelayer, exclusivityPeriod: exclusivityDeadline } = await selectExclusiveRelayer( computedOriginChainId, From ae350a1dbafad1b108e98b3674ff9ee0e35f99b0 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 7 Feb 2025 12:58:04 +0100 Subject: [PATCH 4/5] Update api/suggested-fees.ts --- api/suggested-fees.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/suggested-fees.ts b/api/suggested-fees.ts index 4a7340933..e14c10f03 100644 --- a/api/suggested-fees.ts +++ b/api/suggested-fees.ts @@ -261,7 +261,7 @@ const handler = async ( // Temporarily disable exclusivity, to be resumed based on timestamp. if ( depositMethod === "depositExclusive" && - sdk.utils.getCurrentTime() < 1738965797 + sdk.utils.getCurrentTime() >1738965797 ) { ({ exclusiveRelayer, exclusivityPeriod: exclusivityDeadline } = await selectExclusiveRelayer( From 103f623774889ff3b109b58f98731657001ec3be Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 7 Feb 2025 12:58:19 +0100 Subject: [PATCH 5/5] Update api/suggested-fees.ts --- api/suggested-fees.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/suggested-fees.ts b/api/suggested-fees.ts index e14c10f03..646ae3c5e 100644 --- a/api/suggested-fees.ts +++ b/api/suggested-fees.ts @@ -261,7 +261,7 @@ const handler = async ( // Temporarily disable exclusivity, to be resumed based on timestamp. if ( depositMethod === "depositExclusive" && - sdk.utils.getCurrentTime() >1738965797 + sdk.utils.getCurrentTime() > 1738965797 ) { ({ exclusiveRelayer, exclusivityPeriod: exclusivityDeadline } = await selectExclusiveRelayer(