Skip to content

Commit 5d346b2

Browse files
authored
Merge pull request #39 from interlay/tom/usdt-transfer-fee-change
wip: change fee currency
2 parents 9a53b42 + d64aebb commit 5d346b2

2 files changed

Lines changed: 3 additions & 22 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@interlay/bridge",
3-
"version": "0.1.13",
3+
"version": "0.1.14",
44
"description": "polkawallet bridge sdk",
55
"main": "build/index.js",
66
"typings": "build/index.d.ts",

src/adapters/interlay.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const interlayRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
3232
to: "statemint",
3333
token: "USDT",
3434
xcm: {
35-
fee: { token: "DOT", amount: "1000000000" },
35+
fee: { token: "USDT", amount: "1000000" },
3636
weightLimit: DEST_WEIGHT,
3737
},
3838
},
@@ -51,7 +51,7 @@ export const kintsugiRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
5151
to: "statemine",
5252
token: "USDT",
5353
xcm: {
54-
fee: { token: "KSM", amount: "1500000000" },
54+
fee: { token: "USDT", amount: "10000" },
5555
weightLimit: DEST_WEIGHT,
5656
},
5757
},
@@ -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)