Browse Source

#66 hardcode 1 ETOMIC for all ETOMIC trades on order to test.

pass-iguana-arg
Artem Pikulin 7 years ago
parent
commit
9d35f61c0d
  1. 8
      iguana/exchanges/LP_swap.c

8
iguana/exchanges/LP_swap.c

@ -1197,6 +1197,14 @@ struct basilisk_swap *bitcoin_swapinit(bits256 privkey,uint8_t *pubkey33,bits256
free(swap);
return(0);
}
#ifndef NOTETOMIC
if (strcmp(alicestr, "ETOMIC") == 0) {
swap->I.alicesatoshis = 100000000;
}
if (strcmp(bobstr, "ETOMIC") == 0) {
swap->I.bobsatoshis = 100000000;
}
#endif
if ( (swap->I.bobinsurance= (swap->I.bobsatoshis / INSTANTDEX_INSURANCEDIV)) < LP_MIN_TXFEE )
swap->I.bobinsurance = LP_MIN_TXFEE;
if ( (swap->I.aliceinsurance= (swap->I.alicesatoshis / INSTANTDEX_INSURANCEDIV)) < LP_MIN_TXFEE )

Loading…
Cancel
Save