Skip to content

Commit

Permalink
Merge pull request #162 from bvotteler/fix-hydradx-xcm-weight-unlimited
Browse files Browse the repository at this point in the history
Fix: Destination weights and fee estimates
  • Loading branch information
bvotteler authored Feb 5, 2024
2 parents 8ee30ab + d5c3a81 commit ced85ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interlay/bridge",
"version": "0.4.3",
"version": "0.4.4",
"description": "polkawallet bridge sdk",
"main": "build/index.js",
"typings": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/hydradx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
} from "../types";
import { xTokensHelper } from "../utils/xtokens-helper";

const DEST_WEIGHT = "5000000000";
const DEST_WEIGHT = "Unlimited";

export const hydraRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
{
Expand Down
3 changes: 2 additions & 1 deletion src/adapters/interlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export const kintsugiRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
to: "statemine",
token: "USDT",
xcm: {
fee: { token: "USDT", amount: "10000" },
// fees in tests: 7_186, need a minimum of 2x as safe buffer
fee: { token: "USDT", amount: "20000" },
weightLimit: DEST_WEIGHT,
},
},
Expand Down

0 comments on commit ced85ce

Please sign in to comment.