From aaaaa9a103628d7694a4fb3bac6335501187cc00 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 10 Jan 2022 09:03:57 +0100 Subject: fix amount denormalization issue --- src/exchangedb/exchange-0001.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exchangedb') diff --git a/src/exchangedb/exchange-0001.sql b/src/exchangedb/exchange-0001.sql index 33b300bc4..c1665b3ba 100644 --- a/src/exchangedb/exchange-0001.sql +++ b/src/exchangedb/exchange-0001.sql @@ -918,7 +918,7 @@ END IF; -- Check reserve balance is sufficient. IF (reserve_val > amount_val) THEN - IF (reserve_frac > amount_frac) + IF (reserve_frac >= amount_frac) THEN reserve_val=reserve_val - amount_val; reserve_frac=reserve_frac - amount_frac; -- cgit v1.2.3