From f050cf2263d90f96093beb8bfffe41fb38b6fabb Mon Sep 17 00:00:00 2001 From: Brendon Votteler Date: Wed, 28 Feb 2024 20:19:55 +1100 Subject: [PATCH 1/2] fix: bump hard-coded polkadot extrinisic submit fee estimate --- src/adapters/polkadot.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/adapters/polkadot.ts b/src/adapters/polkadot.ts index 7e23fd0..1e7bb37 100644 --- a/src/adapters/polkadot.ts +++ b/src/adapters/polkadot.ts @@ -155,10 +155,11 @@ class BasePolkadotAdapter extends BaseCrossChainAdapter { }).pipe( map(({ balance }) => { const tokenMeta = this.balanceAdapter?.getToken(token); - // fixed fee of 0.05 ksm or DOT until we get paymentinfo to work again + // fixed fee of 0.1 of KSM or DOT until we get paymentinfo to work again + // 0.06 was observed needed for DOT (tested in chopsticks), KSM needs less than that const fee = FN.fromInner( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - 0.05 * Math.pow(10, tokenMeta!.decimals), + 0.1 * Math.pow(10, tokenMeta!.decimals), tokenMeta?.decimals ); From a45b2b1f5f824319482e603c7fb728be14c242ac Mon Sep 17 00:00:00 2001 From: Brendon Votteler Date: Wed, 28 Feb 2024 20:21:28 +1100 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ce23abd..cc594e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@interlay/bridge", - "version": "0.5.0", + "version": "0.5.1", "description": "polkawallet bridge sdk", "main": "build/index.js", "typings": "build/index.d.ts",