From 91e5208e264dd111ff2a6759ab11189dbf9e3aa3 Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 23 Oct 2024 14:38:37 +0300 Subject: [PATCH 1/3] Add max value for balance calc --- packages/playground/src/calculator/pricing_calculator.vue | 1 + packages/playground/src/utils/pricing_calculator.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/playground/src/calculator/pricing_calculator.vue b/packages/playground/src/calculator/pricing_calculator.vue index e14052dd7f..56c59997f6 100644 --- a/packages/playground/src/calculator/pricing_calculator.vue +++ b/packages/playground/src/calculator/pricing_calculator.vue @@ -95,6 +95,7 @@ Date: Wed, 23 Oct 2024 15:46:27 +0300 Subject: [PATCH 2/3] Update pricing_calculator.ts --- packages/playground/src/utils/pricing_calculator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playground/src/utils/pricing_calculator.ts b/packages/playground/src/utils/pricing_calculator.ts index e4bca7f2ed..a1deed7b5f 100644 --- a/packages/playground/src/utils/pricing_calculator.ts +++ b/packages/playground/src/utils/pricing_calculator.ts @@ -50,7 +50,7 @@ export const hruRules = _applyRules([ export const balanceRules = _applyRules([ isNumeric("Balance must be a valid number."), min("Minimum allowed balance is 0.", 0), - max("Maximum allowed balance is 1000000000000000 TFT.", 10 ** 15), + max("Maximum allowed balance is 10e15 TFT.", 10 ** 15), ]); export function normalizePrice(price: number) { From 6e3a41dc67fa5777cc680a16ce567d9ae1c21191 Mon Sep 17 00:00:00 2001 From: Samar Adel Date: Wed, 23 Oct 2024 15:53:32 +0300 Subject: [PATCH 3/3] Update pricing_calculator.ts --- packages/playground/src/utils/pricing_calculator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playground/src/utils/pricing_calculator.ts b/packages/playground/src/utils/pricing_calculator.ts index a1deed7b5f..14d0b73838 100644 --- a/packages/playground/src/utils/pricing_calculator.ts +++ b/packages/playground/src/utils/pricing_calculator.ts @@ -50,7 +50,7 @@ export const hruRules = _applyRules([ export const balanceRules = _applyRules([ isNumeric("Balance must be a valid number."), min("Minimum allowed balance is 0.", 0), - max("Maximum allowed balance is 10e15 TFT.", 10 ** 15), + max("Maximum allowed balance is 1e15 TFT.", 10 ** 15), ]); export function normalizePrice(price: number) {