From 087cf0475a4f2b54a758617af120929bcff4ea48 Mon Sep 17 00:00:00 2001 From: Isaac Onyemaechi Date: Fri, 16 Jan 2026 11:59:39 +0100 Subject: [PATCH 1/4] fix: set minimum amount for Ethereum network to $50 USD in TransactionForm --- app/pages/TransactionForm.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/pages/TransactionForm.tsx b/app/pages/TransactionForm.tsx index 2f7117a0..b7af94c9 100644 --- a/app/pages/TransactionForm.tsx +++ b/app/pages/TransactionForm.tsx @@ -350,6 +350,9 @@ export const TransactionForm = ({ const errorMessage = cngnRateError || "No available quote"; setRateError(errorMessage); } + } else if (selectedNetwork?.chain?.name === "Ethereum") { + // For Ethereum network, apply $50 USD minimum + minAmountSentValue = 50; } formMethods.register("amountSent", { From 26ac6b38021c2a17c2b86540bde84b78e0f0c211 Mon Sep 17 00:00:00 2001 From: Isaac Onyemaechi Date: Fri, 16 Jan 2026 12:29:09 +0100 Subject: [PATCH 2/4] fix: update minimum amount logic for Ethereum network based on cNGN rate --- app/pages/TransactionForm.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/pages/TransactionForm.tsx b/app/pages/TransactionForm.tsx index b7af94c9..bdeff99a 100644 --- a/app/pages/TransactionForm.tsx +++ b/app/pages/TransactionForm.tsx @@ -351,8 +351,15 @@ export const TransactionForm = ({ setRateError(errorMessage); } } else if (selectedNetwork?.chain?.name === "Ethereum") { - // For Ethereum network, apply $50 USD minimum - minAmountSentValue = 50; + if (cngnRate && cngnRate > 0) { + // Valid rate available - calculate limits and clear errors + maxAmountSentValue = 50000000; + minAmountSentValue = 50 * cngnRate; + setRateError(null); + } else { + // For Ethereum network, apply $50 USD minimum + minAmountSentValue = 50; + } } formMethods.register("amountSent", { From ab2437504ed314e83cc4136acdde6004a7364986 Mon Sep 17 00:00:00 2001 From: Isaac Onyemaechi Date: Fri, 16 Jan 2026 12:39:03 +0100 Subject: [PATCH 3/4] fix: update CODEOWNERS to include @OnahProsper as a default reviewer --- .github/CODEOWNERS | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 748c1c91..9c90c12a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,9 @@ # These owners will be the default owners for everything in + # the repo. Unless a later match takes precedence, + # @chibie @jeremy0x be requested for + # review when someone opens a pull request. -* @chibie @jeremy0x + +- @chibie @OnahProsper From 7f305ec360588d9548b5316a99464dc8af133996 Mon Sep 17 00:00:00 2001 From: Isaac Onyemaechi Date: Fri, 16 Jan 2026 13:25:51 +0100 Subject: [PATCH 4/4] fix: adjust minimum amount logic for Ethereum network based on cNGN rate --- app/pages/TransactionForm.tsx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/app/pages/TransactionForm.tsx b/app/pages/TransactionForm.tsx index bdeff99a..e9ed0e3a 100644 --- a/app/pages/TransactionForm.tsx +++ b/app/pages/TransactionForm.tsx @@ -38,6 +38,7 @@ import { useNetwork, useTokens, } from "../context"; +import { min } from "date-fns"; /** * TransactionForm component renders a form for submitting a transaction. @@ -338,28 +339,24 @@ export const TransactionForm = ({ let minAmountSentValue = 0.5; const normalizedToken = token?.toUpperCase(); + const isEthereum = selectedNetwork?.chain?.name === "Ethereum"; if (normalizedToken === "CNGN") { if (cngnRate && cngnRate > 0) { // Valid rate available - calculate limits and clear errors maxAmountSentValue = 50000000; - minAmountSentValue = 0.5 * cngnRate; + // For Ethereum, require 1M worth of cNGN. For other networks, require 0.5 worth + minAmountSentValue = isEthereum ? 716 * cngnRate : 0.5 * cngnRate; setRateError(null); } else { // cNGN selected but no valid rate - set error const errorMessage = cngnRateError || "No available quote"; + minAmountSentValue = isEthereum ? 716 : 0.5; setRateError(errorMessage); } - } else if (selectedNetwork?.chain?.name === "Ethereum") { - if (cngnRate && cngnRate > 0) { - // Valid rate available - calculate limits and clear errors - maxAmountSentValue = 50000000; - minAmountSentValue = 50 * cngnRate; - setRateError(null); - } else { - // For Ethereum network, apply $50 USD minimum - minAmountSentValue = 50; - } + } else if (isEthereum) { + // For non-cNGN tokens on Ethereum, require $50 minimum + minAmountSentValue = 50; } formMethods.register("amountSent", {