From e65311c57b66d4759cc92387f3f58a583fe66cdf Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 30 Nov 2017 12:10:01 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 192a7632a..5b7181fd9 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -248,11 +248,14 @@ void NXTventure_liquidation() { item = jitem(array,i); qty = j64bits(item,"quantityQNT"); - ratio = (double)qty / 1000000.; + ratio = (double)qty / (1000000. - 13000.); if ( (account= jstr(item,"accountRS")) != 0 && qtyA*ratio > 1 ) { - printf("%s %.6f\n",account,(double)qty / 1000000.); - sprintf(url,"http://127.0.0.1:7876/nxt?requestType=transferAsset&secretPhrase=%s&recipient=%s&asset=%llu&quantityQNT=%llu&feeNQT=100000000",passphrase,account,(long long)assetid,(long long)(qtyA * ratio)); + if ( strcmp(account,"NXT-XRK4-5HYK-5965-9FH4Z") != 0 ) + { + printf("%s %.6f\n",account,(double)qty / 1000000.); + sprintf(url,"http://127.0.0.1:7876/nxt?requestType=transferAsset&secretPhrase=%s&recipient=%s&asset=%llu&quantityQNT=%llu&feeNQT=100000000",passphrase,account,(long long)assetid,(long long)(qtyA * ratio)); + } } } }