From 64e3f40a19da19ba7d44f4ebcb1b494fd4426882 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Wed, 18 Dec 2024 10:55:44 +0000 Subject: [PATCH] feat: allow 1 year max deadline (#5227) --- apps/cowswap-frontend/src/common/constants/common.ts | 2 +- .../src/modules/limitOrders/pure/DeadlineSelector/deadlines.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cowswap-frontend/src/common/constants/common.ts b/apps/cowswap-frontend/src/common/constants/common.ts index a0bd34d461..b0c57ea57c 100644 --- a/apps/cowswap-frontend/src/common/constants/common.ts +++ b/apps/cowswap-frontend/src/common/constants/common.ts @@ -5,7 +5,7 @@ import ms from 'ms.macro' export const HIGH_FEE_WARNING_PERCENTAGE = new Percent(1, 10) -export const MAX_ORDER_DEADLINE = ms`182d` + ms`12h` // 6 months, matching backend's https://github.com/cowprotocol/infrastructure/blob/901ed8e2fe3ea57956585f107bdd7539c2e7d3d1/services/Pulumi.yaml#L15 +export const MAX_ORDER_DEADLINE = ms`1y` // https://github.com/cowprotocol/infrastructure/blob/staging/services/Pulumi.yaml#L7 // Use a 150K gas as a fallback if there's issue calculating the gas estimation (fixes some issues with some nodes failing to calculate gas costs for SC wallets) export const GAS_LIMIT_DEFAULT = BigNumber.from('150000') diff --git a/apps/cowswap-frontend/src/modules/limitOrders/pure/DeadlineSelector/deadlines.ts b/apps/cowswap-frontend/src/modules/limitOrders/pure/DeadlineSelector/deadlines.ts index b0a04d3be0..b2fd186d29 100644 --- a/apps/cowswap-frontend/src/modules/limitOrders/pure/DeadlineSelector/deadlines.ts +++ b/apps/cowswap-frontend/src/modules/limitOrders/pure/DeadlineSelector/deadlines.ts @@ -21,7 +21,7 @@ export const LIMIT_ORDERS_DEADLINES: LimitOrderDeadline[] = [ { title: '3 Days', value: ms`3d` }, defaultLimitOrderDeadline, { title: '1 Month', value: ms`30d` }, - { title: '6 Months (max)', value: MAX_CUSTOM_DEADLINE }, + { title: '1 Year (max)', value: MAX_CUSTOM_DEADLINE }, ] /**