Skip to content

Commit cdaa4b7

Browse files
committed
refactor: remove redundant conditional
1 parent 13b6b37 commit cdaa4b7

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

src/adapters/interlay.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -241,25 +241,6 @@ class BaseInterlayAdapter extends BaseCrossChainAdapter {
241241
};
242242
}
243243

244-
if (
245-
isChainEqual(toChain, "statemine") ||
246-
isChainEqual(toChain, "statemint")
247-
) {
248-
const destFee = this.getCrossChainFee(token, to);
249-
const destWeight = this.getDestWeight(token, to);
250-
251-
// do the needful, use multi currencies
252-
return this.api.tx.xTokens.transferMulticurrencies(
253-
[
254-
[tokenId, amount.toChainData()],
255-
[{ Token: destFee.token }, destFee.balance.toChainData()],
256-
],
257-
1,
258-
{ V1: dst },
259-
destWeight?.toString()
260-
);
261-
}
262-
263244
return this.api.tx.xTokens.transfer(
264245
tokenId,
265246
amount.toChainData(),

0 commit comments

Comments
 (0)