Bläddra i källkod

stellar fees ajouté

Mushu 6 år sedan
förälder
incheckning
5d895abe7c
1 ändrade filer med 10 tillägg och 1 borttagningar
  1. 10 1
      MagnaSim.py

+ 10 - 1
MagnaSim.py Visa fil

@@ -111,5 +111,14 @@ def fees_eth(nbr_transaction_eth):
111 111
     return fees_eth
112 112
 
113 113
 def fees_mgn(nbr_transaction_mgn):
114
-    return
114
+    """
115
+    Cette fonction calcule le cout de transfère des tokens magna 
116
+    basés sur Stellar.
117
+    There are two special values used to calculate fees:
118
+        The base fee (currently 100 stroops) is used in transaction fees.
119
+        The base reserve (currently 0.5 XLM) is used in minimum account balances.
120
+    100 stroops (0.00001 XLM)
121
+    """
122
+    fees_mgn = nbr_transaction_mgn*100
123
+    return fees_mgn
115 124