gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated (73338e3a -> f1bb7e74)


From: gnunet
Subject: [taler-docs] branch master updated (73338e3a -> f1bb7e74)
Date: Thu, 05 Oct 2023 15:55:32 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a change to branch master
in repository docs.

    from 73338e3a Conversion rates endpoint.
     new 4aac3023 New type for decimal number.
     new f1bb7e74 removing accidental Vim files

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 core/api-common.rst   | 11 +++++++++++
 core/api-corebank.rst |  8 ++++----
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/core/api-common.rst b/core/api-common.rst
index 64cc7f33..ae4abcc4 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -306,6 +306,17 @@ Large numbers
 Large numbers such as RSA blinding factors and 256 bit keys, are transmitted
 as other binary data in Crockford Base32 encoding.
 
+Decimal numbers
+^^^^^^^^^^^^^^^
+
+..
+  FIXME: explain the representation with strings.
+
+.. ts:def:: DecimalNumber
+
+   // Number with at most 8 fractional digits.
+   type DecimalNumber = string;
+
 Timestamps
 ^^^^^^^^^^
 
diff --git a/core/api-corebank.rst b/core/api-corebank.rst
index 5d8bec6f..4310e5fe 100644
--- a/core/api-corebank.rst
+++ b/core/api-corebank.rst
@@ -933,16 +933,16 @@ Conversion rates
     interface ConversionRatesResponse {
 
       // Exchange rate to buy the local currency from the external one
-      buy_at_ratio: FractionalNumber; 
+      buy_at_ratio: DecimalNumber; 
 
       // Exchange rate to sell the local currency for the external one
-      sell_at_ratio: FractionalNumber; 
+      sell_at_ratio: DecimalNumber; 
 
       // Fee to subtract after applying the buy ratio.
-      buy_in_fee: FractionalNumber;
+      buy_in_fee: DecimalNumber;
 
       // Fee to subtract after applying the sell ratio.
-      sell_out_fee: FractionalNumber;
+      sell_out_fee: DecimalNumber;
     }
 
   For example, given a local currency LC, a fiat currency FC,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]