Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Increase Polkadot extrinsic fee estimate #177

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.5.0",
"version": "0.5.1",
"description": "polkawallet bridge sdk",
"main": "build/index.js",
"typings": "build/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/adapters/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down