summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-16 19:24:08 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-16 19:24:08 +0200
commitd1992e59839e49c09ff260588b99cb16ce2942d9 (patch)
treedfa94bf7368f6d135bb489c52af77724b8483ecf /src/lib/exchange_api_handle.c
parent95c71daf5ee1954342490feabb6ec6220fa3f3e8 (diff)
downloadexchange-d1992e59839e49c09ff260588b99cb16ce2942d9.tar.gz
exchange-d1992e59839e49c09ff260588b99cb16ce2942d9.tar.bz2
exchange-d1992e59839e49c09ff260588b99cb16ce2942d9.zip
new configuration option: wallet balance threshold
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 142ed18e6..5ce5285d0 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -685,8 +685,6 @@ decode_keys_json (const json_t *resp_obj,
&sig),
GNUNET_JSON_spec_fixed_auto ("eddsa_pub",
&pub),
- /* sig and pub must be first, as we skip those if
- check_sig is false! */
GNUNET_JSON_spec_fixed_auto ("master_public_key",
&key_data->master_pub),
TALER_JSON_spec_absolute_time ("list_issue_date",
@@ -695,6 +693,10 @@ decode_keys_json (const json_t *resp_obj,
&key_data->reserve_closing_delay),
GNUNET_JSON_spec_string ("currency",
&currency),
+ GNUNET_JSON_spec_mark_optional (
+ TALER_JSON_spec_amount ("wallet_balance_limit_without_kyc",
+ currency,
+ &key_data->wallet_balance_limit_without_kyc)),
GNUNET_JSON_spec_end ()
};