commit added705853e4e4097d146f67881c064d24f76b6
parent 7d63c95d0f779a2ade14896af9d4b304e038f826
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 8 Feb 2024 17:00:22 +0100
fix stefan_lin type
Diffstat:
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/core/api-common.rst b/core/api-common.rst
@@ -352,6 +352,14 @@ Integers
// JavaScript numbers restricted to integers.
type Integer = number;
+Floats
+^^^^^^
+
+.. ts:def:: Float
+
+ // JavaScript numbers.
+ type Float = number;
+
Ages
^^^^
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
@@ -174,10 +174,9 @@ possibly by using HTTPS.
// Linear cost factor for the STEFAN curve used
// to (over) approximate fees payable by amount.
//
- // Note that the total to be paid is first to be
- // divided by the smallest denomination to obtain
- // the value to be multiplied with.
- stefan_lin: Amount;
+ // Note that this is a scalar, as it is multiplied
+ // with the actual amount.
+ stefan_lin: Float;
// Type of the asset. "fiat", "crypto", "regional"
// or "stock". Wallets should adjust their UI/UX