From a9838943d22a43bd4059bf89cb9502b8c035d566 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 20 Jul 2017 22:36:56 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 +++- iguana/exchanges/LP_nativeDEX.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 4d1488fff..6b6e97c2e 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -171,7 +171,9 @@ trust(pubkey, trust)\n\ { if ( price > SMALLVAL ) { - if ( LP_mypriceset(&changed,base,rel,price) < 0 ) + //if ( LP_mypriceset(&changed,base,rel,price) < 0 ) + // return(clonestr("{\"error\":\"couldnt set price\"}")); + if ( LP_mypriceset(&changed,rel,base,1./price) < 0 ) return(clonestr("{\"error\":\"couldnt set price\"}")); else return(LP_pricepings(ctx,myipaddr,LP_mypubsock,base,rel,price * LP_profitratio)); } else return(clonestr("{\"error\":\"no price\"}")); diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 9dc9fd350..ddfe87719 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -19,10 +19,12 @@ // // new features: // stats +// multidimensional portfolio // autoutxo // bugs: // false detection of bobreclaim +// relax ordermatch constraints? // unduplicated bugs: // swap cancel should cleanly cancel