From 69b0580ca6068dc53c438419120990cc9f03e4ff Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:19:03 +0200 Subject: [PATCH 1/2] Update calculateMinimumMint.ts --- app/mint-teth/utils/calculateMinimumMint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mint-teth/utils/calculateMinimumMint.ts b/app/mint-teth/utils/calculateMinimumMint.ts index 3c12f2c8..f5cddbd3 100644 --- a/app/mint-teth/utils/calculateMinimumMint.ts +++ b/app/mint-teth/utils/calculateMinimumMint.ts @@ -8,7 +8,7 @@ const WAD = { * * @param depositAmount - The amount to be deposited, represented as a bigint. * @param rate - The rate at which the deposit amount is converted, represented as a bigint. - * @param mintSlippage - The slippage percentage to account for, represented as a number. Default is 0.5%. + * @param mintSlippage - The slippage percentage to account for, is represented as a number. Default is 0.5%. * @returns The minimum mint amount after slippage, represented as a bigint. */ export function calculateMinimumMint( From 135d3ad5b44cf8e1c8bb578b6fbec1e3b7c3d1e8 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:19:30 +0200 Subject: [PATCH 2/2] Update sanitizeInput.ts --- app/mint-teth/utils/sanitizeInput.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mint-teth/utils/sanitizeInput.ts b/app/mint-teth/utils/sanitizeInput.ts index a8c4d67f..1aa51d9f 100644 --- a/app/mint-teth/utils/sanitizeInput.ts +++ b/app/mint-teth/utils/sanitizeInput.ts @@ -12,7 +12,7 @@ * * @param val - The new value entered by the user. * @param currentDepositAmount - The current deposit amount in the input field. - * @returns The sanitized value to be set in the input field. + * @returns The sanitized value is to be set in the input field. */ export const sanitizeInput = (val: string, currentDepositAmount: string): string => { // If the user presses the decimal point with an empty input, set the value to "0." @@ -20,7 +20,7 @@ export const sanitizeInput = (val: string, currentDepositAmount: string): string return "0."; } - // Replace single leading zero with the number pressed (if it's between 1-9) + // Replace the single leading zero with the number pressed (if it's between 1-9) if (currentDepositAmount === "0" && parseInt(val) > 0 && parseInt(val) <= 9) { return val.replace("0", ""); }