Skip to content

Commit ba7561b

Browse files
committed
chore: consts for default fees
1 parent b6f59b4 commit ba7561b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/react-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@agoric/react-components",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/agoric/ui-kit"

packages/web-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Webcomponents for Agoric dapps",
44
"license": "Apache-2.0",
55
"author": "Agoric",
6-
"version": "0.17.1",
6+
"version": "0.17.2",
77
"main": "dist/index.js",
88
"scripts": {
99
"prepack": "tsc --build tsconfig.build.json",

packages/web-components/src/wallet-connection/makeAgoricSigner.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ const PowerFlags = {
1818
SMART_WALLET: 'SMART_WALLET',
1919
};
2020

21+
// Empirically Keplr seems to use 15000 ubld and 300000 gas for medium fee preset.
22+
const defaultFeeAmount = '15000';
23+
const defaultFeeGas = '300000';
24+
2125
const defaultFee = (): StdFee => {
2226
const { coinMinimalDenom: denom } = stakeCurrency;
2327
const fee = {
24-
amount: [{ amount: '15000', denom }],
25-
gas: '300000', // TODO: estimate gas?
28+
amount: [{ amount: defaultFeeAmount, denom }],
29+
gas: defaultFeeGas, // TODO: estimate gas?
2630
};
2731
return fee;
2832
};

0 commit comments

Comments
 (0)