From 0c7c283de0e07acac95b82d7bce98763d250f2c9 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Tue, 13 Mar 2018 16:48:18 +0700 Subject: [PATCH] Fix Alice ETH payment reclaim. --- iguana/exchanges/LP_etomic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_etomic.c b/iguana/exchanges/LP_etomic.c index 597fe45da..d5539f6c5 100644 --- a/iguana/exchanges/LP_etomic.c +++ b/iguana/exchanges/LP_etomic.c @@ -201,14 +201,14 @@ char *LP_etomicalice_reclaims_payment(struct LP_swap_remember *swap) privkey = LP_privkey(ecoin->symbol, ecoin->smartaddr, ecoin->taddr); uint8arrayToHex(input.dealId, swap->txids[BASILISK_ALICEPAYMENT].bytes, 32); - satoshisToWei(input.amount, swap->values[BASILISK_ALICEPAYMENT]); + satoshisToWei(input.amount, swap->destamount); if (swap->alicetomic[0] != 0) { strcpy(input.tokenAddress, swap->alicetomic); } else { strcpy(input.tokenAddress, "0x0000000000000000000000000000000000000000"); } - strcpy(input.bobAddress, swap->etomicdest); + strcpy(input.bobAddress, swap->etomicsrc); uint8arrayToHex(input.aliceHash, swap->secretAm, 20); bits256 invertedSecret; int32_t i; @@ -217,7 +217,7 @@ char *LP_etomicalice_reclaims_payment(struct LP_swap_remember *swap) } uint8arrayToHex(input.bobSecret, invertedSecret.bytes, 32); - strcpy(txData.from, swap->etomicsrc); + strcpy(txData.from, swap->etomicdest); strcpy(txData.to, ETOMIC_ALICECONTRACT); strcpy(txData.amount, "0"); uint8arrayToHex(txData.secretKey, privkey.bytes, 32);