From 8a1f8f5020d6aa5f1b5887d8b3dbaeca7f12a84d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 27 Feb 2024 09:03:47 -0300 Subject: added rounding mode --- .../demobank-ui/src/pages/ConversionConfig.tsx | 497 ++++++++++++--------- 1 file changed, 280 insertions(+), 217 deletions(-) (limited to 'packages/demobank-ui/src/pages') diff --git a/packages/demobank-ui/src/pages/ConversionConfig.tsx b/packages/demobank-ui/src/pages/ConversionConfig.tsx index efe2d1756..980faa4b0 100644 --- a/packages/demobank-ui/src/pages/ConversionConfig.tsx +++ b/packages/demobank-ui/src/pages/ConversionConfig.tsx @@ -262,6 +262,7 @@ function useComponentState({ const both_high = in_ratio > 1 && out_ratio > 1; const both_low = in_ratio < 1 && out_ratio < 1; + return (
+
+
+
+ + + +

+ Only cashout operation above this threshold will be allowed +

+
+
+
+ +
+ +
+ { + ratio?.onUpdate(e.currentTarget.value); + }} + autocomplete="off" + /> + +
+

+ + Conversion ratio between currencies + +

+
+ +
+
+
+ + + +

+ Smallest difference between two amounts, values in between will be rounded. +

+
+
+
+ + +
+
+
+ +
+
+ + + + +
+
+
+
+
+ +
+
+
+ + + +

+ Operation fee +

+
+
+
+ + +} -- cgit v1.2.3