aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/exchange-0001-part.sql
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-02 21:55:21 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-02 21:55:21 +0200
commit04c32eafb9194727876469c92b7cbedc008c51ec (patch)
treeae879e12757e0939c3bed52fad2c9b1ac33e769f /src/exchangedb/exchange-0001-part.sql
parent5dd03fe359f541f7e1e4849ed4bd38259200f4df (diff)
-work on P2P payment details
Diffstat (limited to 'src/exchangedb/exchange-0001-part.sql')
-rw-r--r--src/exchangedb/exchange-0001-part.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/exchange-0001-part.sql b/src/exchangedb/exchange-0001-part.sql
index 9b9828fe9..52a16cd9a 100644
--- a/src/exchangedb/exchange-0001-part.sql
+++ b/src/exchangedb/exchange-0001-part.sql
@@ -3464,7 +3464,7 @@ BEGIN
SET
current_balance_frac=current_balance_frac-in_history_fee_frac
+ CASE
- WHEN reserve_frac < in_history_fee_frac
+ WHEN current_balance_frac < in_history_fee_frac
THEN 100000000
ELSE 0
END,