Browse Source

Fix null refuse

jl777
jl777 7 years ago
parent
commit
5e9f90a847
  1. 2
      iguana/exchanges/LP_portfolio.c

2
iguana/exchanges/LP_portfolio.c

@ -677,7 +677,7 @@ int32_t LP_autoprice(void *ctx,char *base,char *rel,cJSON *argjson)
refrel = jstr(argjson,"refrel"); refrel = jstr(argjson,"refrel");
fundvalue_bid = jstr(argjson,"fundvalue_bid"); fundvalue_bid = jstr(argjson,"fundvalue_bid");
fundvalue_ask = jstr(argjson,"fundvalue_ask"); fundvalue_ask = jstr(argjson,"fundvalue_ask");
if ( fundvalue_bid != 0 || fundvalue_ask != 0 || fixedprice > SMALLVAL || (refbase != 0 && refrel != 0) ) if ( fundvalue_bid != 0 || fundvalue_ask != 0 || fixedprice > SMALLVAL || (refbase != 0 && refrel != 0 && strlen(refbase) > 0 && strlen(refrel) > 0) )
{ {
if ( fixedprice > SMALLVAL ) if ( fixedprice > SMALLVAL )
{ {

Loading…
Cancel
Save