Skip to content

Commit

Permalink
refactor: remove redundant conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt committed Jan 20, 2023
1 parent 13b6b37 commit cdaa4b7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/adapters/interlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,25 +241,6 @@ class BaseInterlayAdapter extends BaseCrossChainAdapter {
};
}

if (
isChainEqual(toChain, "statemine") ||
isChainEqual(toChain, "statemint")
) {
const destFee = this.getCrossChainFee(token, to);
const destWeight = this.getDestWeight(token, to);

// do the needful, use multi currencies
return this.api.tx.xTokens.transferMulticurrencies(
[
[tokenId, amount.toChainData()],
[{ Token: destFee.token }, destFee.balance.toChainData()],
],
1,
{ V1: dst },
destWeight?.toString()
);
}

return this.api.tx.xTokens.transfer(
tokenId,
amount.toChainData(),
Expand Down

0 comments on commit cdaa4b7

Please sign in to comment.