Skip to content

Commit e54275b

Browse files
committed
fix(ymax-planner): specify 0.015 BLD as smart wallet fee in resolver
1 parent bcb6a42 commit e54275b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

services/ymax-planner/src/resolver.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { type SigningSmartWalletKit } from '@agoric/client-utils';
22
import type { OfferSpec } from '@agoric/smart-wallet/src/offers';
33
import type { TxStatus } from '@aglocal/portfolio-contract/src/resolver/constants.js';
44
import type { TxId } from '@aglocal/portfolio-contract/src/resolver/types';
5+
import type { StdFee } from '@cosmjs/stargate';
56

67
type ResolveTxParams = {
78
signingSmartWalletKit: SigningSmartWalletKit;
@@ -10,6 +11,11 @@ type ResolveTxParams = {
1011
proposal?: object;
1112
};
1213

14+
const smartWalletFee: StdFee = {
15+
amount: [{ denom: 'ubld', amount: '15000' }], // 0.015 BLD
16+
gas: '19700000',
17+
};
18+
1319
const getInvitationMakers = async (wallet: SigningSmartWalletKit) => {
1420
const getCurrentWalletRecord = await wallet.query.getCurrentWalletRecord();
1521
const invitation = getCurrentWalletRecord.offerToUsedInvitation
@@ -49,6 +55,6 @@ export const resolvePendingTx = async ({
4955
proposal,
5056
});
5157

52-
const result = await signingSmartWalletKit.executeOffer(action);
58+
const result = await signingSmartWalletKit.executeOffer(action, smartWalletFee);
5359
return result;
5460
};

0 commit comments

Comments
 (0)