Fix PriceFeed

This commit is contained in:
Aleksandr Kraiz
2023-03-03 22:14:01 +04:00
parent 44bbed0ca1
commit 66f068e7a0
5 changed files with 33 additions and 10 deletions

View File

@@ -308,7 +308,7 @@ export default async function swap({
options?.logger?.('Redeem tx mined.');
options?.logger?.('Atomic swap completed.');
if (options?.withdrawToWallet) {
if (options?.withdrawToWallet !== undefined && options.withdrawToWallet) {
options.logger?.('Withdrawing to wallet...');
const unsignedWithdrawTx = await targetExchangeContract.populateTransaction.withdraw(
targetChainAssetAddress,