diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 8b0201795..bf0591e44 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -21,9 +21,10 @@ // stats // auto-utxo creation // null plocktime, robustify remember +// verify BTC trading: 0 txfee on remember trades. even with invalid tx, thinks swap is completed RETSTR.({"result":null,"error":{"code":-26,"message":"66: insufficient priority"},"id":"jl777"} +//) BTC.0000000000000000000000000000000000000000000000000000000000000000 // multiple smartaddresses? enable/disable causes? 250 KMD bounty // verify bid volumes -// verify BTC trading #include #include "LP_include.h" diff --git a/iguana/exchanges/LP_swap.c b/iguana/exchanges/LP_swap.c index e282d8cc0..7e7726c1c 100644 --- a/iguana/exchanges/LP_swap.c +++ b/iguana/exchanges/LP_swap.c @@ -801,7 +801,11 @@ void LP_aliceloop(void *_swap) free(swap); } free(data); - nn_close(swap->N.pair); + if ( swap->N.pair >= 0 ) + { + nn_close(swap->N.pair); + swap->N.pair = -1; + } } bits256 instantdex_derivekeypair(void *ctx,bits256 *newprivp,uint8_t pubkey[33],bits256 privkey,bits256 orderhash)