diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index d06d6714a..0f23cb622 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -95,11 +95,10 @@ void LP_instantdex_filescreate() } } - void LP_instantdex_depositadd(bits256 txid) { static FILE *depositsfp; - char fname[512],coinaddr[64]; cJSON *array,*txobj; int32_t i,n,iter; + char fname[512],coinaddr[64]; bits256 prevtxid; cJSON *array,*txobj; int32_t i,n,iter; if ( depositsfp == 0 ) { sprintf(fname,"%s/deposits",GLOBAL_DBDIR), OS_compatible_path(fname); @@ -115,11 +114,11 @@ void LP_instantdex_depositadd(bits256 txid) { for (i=0; isymbol,"KMD") == 0 ) { LP_importaddress("KMD",BOTS_BONDADDRESS); - LP_instantdex_filescreate(); + memset(zero.bytes,0,sizeof(zero)); + LP_instantdex_depositadd(zero); } } if ( coin->txfee == 0 && strcmp(coin->symbol,"BTC") != 0 )