From b81842c8aed196f23a9cbcb42d637299f1e7708e Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Mon, 23 Dec 2024 16:53:45 +0500 Subject: [PATCH 1/2] fix: fix order filled condition for permit check (#5253) --- .../src/modules/ordersTable/utils/getOrderParams.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cowswap-frontend/src/modules/ordersTable/utils/getOrderParams.ts b/apps/cowswap-frontend/src/modules/ordersTable/utils/getOrderParams.ts index a384d35583..904eedd122 100644 --- a/apps/cowswap-frontend/src/modules/ordersTable/utils/getOrderParams.ts +++ b/apps/cowswap-frontend/src/modules/ordersTable/utils/getOrderParams.ts @@ -47,7 +47,7 @@ export function getOrderParams( sellAmount, balance, // If the order has been filled at least once, we should not consider the permit amount - allowance: isOrderAtLeastOnceFilled ? getBiggerAmount(allowance, permitAmount) : allowance, + allowance: !isOrderAtLeastOnceFilled ? getBiggerAmount(allowance, permitAmount) : allowance, }) return { From 935aedafe71135e97db8956e1b7bca0ba4ddc67a Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Mon, 23 Dec 2024 16:57:34 +0500 Subject: [PATCH 2/2] chore: release main (#5254) --- .release-please-manifest.json | 2 +- apps/cowswap-frontend/CHANGELOG.md | 7 +++++++ apps/cowswap-frontend/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6944878ab8..6dc01a9681 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { - "apps/cowswap-frontend": "1.95.2", + "apps/cowswap-frontend": "1.95.3", "apps/explorer": "2.41.0", "libs/permit-utils": "0.5.0", "libs/widget-lib": "0.18.0", diff --git a/apps/cowswap-frontend/CHANGELOG.md b/apps/cowswap-frontend/CHANGELOG.md index fba8b16dd1..dc8eeed467 100644 --- a/apps/cowswap-frontend/CHANGELOG.md +++ b/apps/cowswap-frontend/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.95.3](https://github.com/cowprotocol/cowswap/compare/cowswap-v1.95.2...cowswap-v1.95.3) (2024-12-23) + + +### Bug Fixes + +* fix order filled condition for permit check ([#5253](https://github.com/cowprotocol/cowswap/issues/5253)) ([b81842c](https://github.com/cowprotocol/cowswap/commit/b81842c8aed196f23a9cbcb42d637299f1e7708e)) + ## [1.95.2](https://github.com/cowprotocol/cowswap/compare/cowswap-v1.95.1...cowswap-v1.95.2) (2024-12-23) diff --git a/apps/cowswap-frontend/package.json b/apps/cowswap-frontend/package.json index 4815468b06..5be507511d 100644 --- a/apps/cowswap-frontend/package.json +++ b/apps/cowswap-frontend/package.json @@ -1,6 +1,6 @@ { "name": "@cowprotocol/cowswap", - "version": "1.95.2", + "version": "1.95.3", "description": "CoW Swap", "main": "index.js", "author": "",