From 73120ed2da297df7c178a5009d0a5258bc920f4e Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 19 Feb 2018 21:45:46 +0200 Subject: [PATCH] Activate ETH mainnet --- iguana/exchanges/LP_prices.c | 6 +++--- iguana/exchanges/etomicswap/etomiccurl.h | 2 +- iguana/exchanges/etomicswap/etomiclib.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 063942c76..a33b5c584 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -515,7 +515,7 @@ int32_t LP_mypriceset(int32_t *changedp,char *base,char *rel,double price) struct LP_priceinfo *basepp=0,*relpp=0; struct LP_pubkey_info *pubp; double minprice,maxprice; *changedp = 0; //if ( strcmp("DEX",base) == 0 || strcmp("DEX",rel) == 0 ) - printf("%s/%s setprice %.8f\n",base,rel,price); + // printf("%s/%s setprice %.8f\n",base,rel,price); if ( base != 0 && rel != 0 && (basepp= LP_priceinfofind(base)) != 0 && (relpp= LP_priceinfofind(rel)) != 0 ) { @@ -548,8 +548,8 @@ int32_t LP_mypriceset(int32_t *changedp,char *base,char *rel,double price) price = (basepp->myprices[relpp->ind] * 0.9) + (0.1 * price); }*/ basepp->myprices[relpp->ind] = price; // ask - printf("LP_mypriceset base.%s rel.%s <- price %.8f\n",base,rel,price); - //relpp->myprices[basepp->ind] = (1. / price); // bid + //printf("LP_mypriceset base.%s rel.%s <- price %.8f\n",base,rel,price); + //relpp->myprices[basepp->ind] = (1. / price); // bid, but best to do one dir at a time if ( (pubp= LP_pubkeyadd(G.LP_mypub25519)) != 0 ) { pubp->timestamp = (uint32_t)time(NULL); diff --git a/iguana/exchanges/etomicswap/etomiccurl.h b/iguana/exchanges/etomicswap/etomiccurl.h index 3a0a9be1e..b66568edf 100644 --- a/iguana/exchanges/etomicswap/etomiccurl.h +++ b/iguana/exchanges/etomicswap/etomiccurl.h @@ -4,7 +4,7 @@ extern "C"{ #endif -#define ETOMIC_TESTNET +//#define ETOMIC_TESTNET #ifdef ETOMIC_TESTNET #define ETOMIC_URL "https://ropsten.infura.io/y07GHxUyTgeN2mdfOonu" #else diff --git a/iguana/exchanges/etomicswap/etomiclib.h b/iguana/exchanges/etomicswap/etomiclib.h index fba03e4e1..ed4bfb0d3 100644 --- a/iguana/exchanges/etomicswap/etomiclib.h +++ b/iguana/exchanges/etomicswap/etomiclib.h @@ -7,7 +7,7 @@ extern "C" { #endif -#define ETOMIC_TESTNET +//#define ETOMIC_TESTNET #ifdef ETOMIC_TESTNET #define ETOMIC_ALICECONTRACT "0xe1D4236C5774D35Dc47dcc2E5E0CcFc463A3289c" #define ETOMIC_BOBCONTRACT "0x9387Fd3a016bB0205e4e131Dde886B9d2BC000A2"