Skip to content

Commit

Permalink
Aug 23, 2024, 9:58 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 24, 2024
1 parent 98fa2ed commit fb07fdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adapters/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class BasePolkadotAdapter extends BaseCrossChainAdapter {

public subscribeMaxInput(
token: string,
tokenId:string,
address: string,
to: ChainId
): Observable<FN> {
Expand All @@ -164,6 +165,7 @@ class BasePolkadotAdapter extends BaseCrossChainAdapter {
amount: FN.ZERO,
to,
token,
tokenId,
address,
signer: address,
}),
Expand All @@ -172,7 +174,7 @@ class BasePolkadotAdapter extends BaseCrossChainAdapter {
.pipe(map((i) => i.available)),
}).pipe(
map(({ balance, txFee }) => {
const tokenMeta = this.balanceAdapter?.getToken(token);
const tokenMeta = this.balanceAdapter?.getToken(token, tokenId);
const feeFactor = 1.2;
const fee = FN.fromInner(txFee, tokenMeta?.decimals).mul(
new FN(feeFactor)
Expand Down

0 comments on commit fb07fdb

Please sign in to comment.