From 7ca7aaf71999aa6f8e87d082bc6e8df9748b71d3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 26 Jul 2018 00:39:54 -1100 Subject: [PATCH] Test --- src/cc/CCassetsCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/CCassetsCore.cpp b/src/cc/CCassetsCore.cpp index 707faae8f..bd4d58ab9 100644 --- a/src/cc/CCassetsCore.cpp +++ b/src/cc/CCassetsCore.cpp @@ -159,8 +159,8 @@ bool ValidateAskRemainder(uint64_t remaining_nValue,uint64_t remaining_assetoshi } else { - unitprice = (orig_nValue / orig_assetoshis); - recvunitprice = (received_nValue / received_assetoshis); + unitprice = (total_nValue / orig_assetoshis); + recvunitprice = (paid_nValue / received_assetoshis); if ( remaining_nValue != 0 ) newunitprice = (remaining_nValue / remaining_assetoshis); if ( recvunitprice < unitprice )