|
|
@ -165,11 +165,9 @@ trust(pubkey, trust)\n\ |
|
|
|
{ |
|
|
|
if ( price > SMALLVAL ) |
|
|
|
{ |
|
|
|
printf("setprice %.8f\n",price); |
|
|
|
if ( LP_mypriceset(&changed,base,rel,price) < 0 ) |
|
|
|
return(clonestr("{\"error\":\"couldnt set price\"}")); |
|
|
|
else if ( changed != 0 ) |
|
|
|
return(LP_pricepings(ctx,myipaddr,LP_mypubsock,base,rel,price * LP_profitratio)); |
|
|
|
else return(LP_pricepings(ctx,myipaddr,LP_mypubsock,base,rel,price * LP_profitratio)); |
|
|
|
} else return(clonestr("{\"error\":\"no price\"}")); |
|
|
|
} |
|
|
|
else if ( strcmp(method,"autoprice") == 0 ) |
|
|
|