diff --git a/package.json b/package.json index 8c1757e8..aa23fde9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@interlay/bridge", - "version": "0.1.13", + "version": "0.1.14", "description": "polkawallet bridge sdk", "main": "build/index.js", "typings": "build/index.d.ts", diff --git a/src/adapters/interlay.ts b/src/adapters/interlay.ts index b3ae4128..ad3dc1b3 100644 --- a/src/adapters/interlay.ts +++ b/src/adapters/interlay.ts @@ -32,7 +32,7 @@ export const interlayRoutersConfig: Omit[] = [ to: "statemint", token: "USDT", xcm: { - fee: { token: "DOT", amount: "1000000000" }, + fee: { token: "USDT", amount: "1000000" }, weightLimit: DEST_WEIGHT, }, }, @@ -51,7 +51,7 @@ export const kintsugiRoutersConfig: Omit[] = [ to: "statemine", token: "USDT", xcm: { - fee: { token: "KSM", amount: "1500000000" }, + fee: { token: "USDT", amount: "10000" }, weightLimit: DEST_WEIGHT, }, }, @@ -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(),