Browse Source

Test

etomic
jl777 8 years ago
parent
commit
a9838943d2
  1. 4
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_nativeDEX.c

4
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\"}"));

2
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

Loading…
Cancel
Save