[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: use currency from config in free
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: use currency from config in freeze helper |
Date: |
Fri, 13 Dec 2024 13:21:56 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new d290d308d use currency from config in freeze helper
d290d308d is described below
commit d290d308d752159e48fe62873d3b1d5dd82f851c
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Dec 13 13:21:38 2024 +0100
use currency from config in freeze helper
---
src/kyclogic/taler-exchange-helper-measure-freeze | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/kyclogic/taler-exchange-helper-measure-freeze
b/src/kyclogic/taler-exchange-helper-measure-freeze
index 4fe4c6571..4e0c09b90 100755
--- a/src/kyclogic/taler-exchange-helper-measure-freeze
+++ b/src/kyclogic/taler-exchange-helper-measure-freeze
@@ -87,12 +87,16 @@ fi
# New rules apply for 30 days.
EXPIRATION=$((3600 * 30 + $(date +%s)))
+# Read currency from the config
+CURRENCY=$(taler-exchange-config -c "$CONF" -s exchange -o currency)
+
# Finally, output the new rules.
# See https://docs.taler.net/taler-kyc-manual.html#tsref-type-AmlOutcome
# for the required output format.
jq -n \
--argjson expiration "$EXPIRATION" \
+ --arg currency "$CURRENCY" \
'{ "to_investigate": true,
"new_rules" : {
"new_measures" : "info-frozen",
@@ -101,7 +105,7 @@ jq -n \
"rules" : [
{
"operation_type": "WITHDRAW",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
@@ -110,7 +114,7 @@ jq -n \
},
{
"operation_type": "DEPOSIT",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
@@ -119,7 +123,7 @@ jq -n \
},
{
"operation_type": "AGGREGATE",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
@@ -128,7 +132,7 @@ jq -n \
},
{
"operation_type": "MERGE",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
@@ -137,7 +141,7 @@ jq -n \
},
{
"operation_type": "BALANCE",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
@@ -146,7 +150,7 @@ jq -n \
},
{
"operation_type": "CLOSE",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
@@ -155,7 +159,7 @@ jq -n \
},
{
"operation_type": "TRANSACTION",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
@@ -164,7 +168,7 @@ jq -n \
},
{
"operation_type": "REFUND",
- "threshold" : "EUR:0",
+ "threshold" : "\($currency):0",
"timeframe" : { "d_us" : 3600000000 },
"measures" : [ "verboten" ],
"display_priority" : 1,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: use currency from config in freeze helper,
gnunet <=