Fixed Bitfinex withdrawal

This commit is contained in:
b00lean 2014-11-19 15:05:04 +01:00
parent f12e9da530
commit 6cad61a76d
2 changed files with 9 additions and 1 deletions

View File

@ -168,7 +168,14 @@ public class BitfinexExchange implements IExchange, IRateSource {
PollingAccountService accountService = getExchange().getPollingAccountService();
try {
accountService.withdrawFunds(cryptoCurrency, amount, destinationAddress);
String result = accountService.withdrawFunds(cryptoCurrency, amount, destinationAddress);
if (result == null) {
return null;
}else if ("success".equalsIgnoreCase(result)){
return "success";
}else{
return null;
}
} catch (IOException e) {
e.printStackTrace();
log.error("Bitfinex exchange (withdrawFunds) failed with message: " + e.getMessage());
@ -241,4 +248,5 @@ public class BitfinexExchange implements IExchange, IRateSource {
}
return null;
}
}