fix amount denormalization issue

This commit is contained in:
Christian Grothoff 2022-01-10 09:03:57 +01:00
parent 14efa23a2b
commit aaaaa9a103
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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;