Skip to content

Commit

Permalink
Merge pull request #3007 from Cryptorubic/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Doctor-Cyclone authored Apr 17, 2024
2 parents 7f1e9fa + faccc23 commit 9a68b13
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,6 @@ export class SwapsControllerService {
];
}

if (fromToken.blockchain === BLOCKCHAIN_NAME.ZK_LINK) {
this.disabledTradesTypes.crossChain = [
...this.disabledTradesTypes.crossChain,
'symbiosis'
];
}

if (fromToken.blockchain === toBlockchain) {
return this.onChainService
.calculateTrades([...this.disabledTradesTypes.onChain, ...onChainBlacklistProviders])
Expand All @@ -187,12 +180,19 @@ export class SwapsControllerService {
})
);
} else {
return this.crossChainService.calculateTrades(this.disabledTradesTypes.crossChain).pipe(
catchError(err => {
console.debug(err);
return of(null);
})
);
return this.crossChainService
.calculateTrades([
...this.disabledTradesTypes.crossChain,
...(fromToken.blockchain === BLOCKCHAIN_NAME.ZK_LINK
? [CROSS_CHAIN_TRADE_TYPE.SYMBIOSIS]
: [])
])
.pipe(
catchError(err => {
console.debug(err);
return of(null);
})
);
}
}),
catchError(err => {
Expand Down

0 comments on commit 9a68b13

Please sign in to comment.