Skip to content

Commit 240ada4

Browse files
committed
feat(ymax-planner): use 0.015 BLD as fee for sendBridgeAction
1 parent 64cee5a commit 240ada4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

services/ymax-planner/src/main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as ws from 'ws';
99

1010
import { Fail, q } from '@endo/errors';
1111
import { isPrimitive } from '@endo/pass-style';
12+
import type { StdFee } from '@cosmjs/stargate';
1213

1314
import {
1415
fetchEnvNetworkConfig,
@@ -53,6 +54,11 @@ const assertChainId = async (
5354
Fail`Expected chain ID ${q(actualChainId)} to be ${q(chainId)}`;
5455
};
5556

57+
const plannerFee: StdFee = {
58+
amount: [{ denom: 'ubld', amount: '15000' }], // 0.015 BLD
59+
gas: '19700000',
60+
};
61+
5662
/**
5763
* Mock the abort reason of `AbortSignal.timeout(ms)`.
5864
* https://dom.spec.whatwg.org/#dom-abortsignal-timeout
@@ -207,7 +213,7 @@ export const main = async (
207213
sendBridgeAction,
208214
executeOffer: async offer => {
209215
const offerP = pollOffer(address, offer.id);
210-
await sendBridgeAction({ method: 'executeOffer', offer });
216+
await sendBridgeAction({ method: 'executeOffer', offer }, plannerFee);
211217
return offerP;
212218
},
213219
};

0 commit comments

Comments
 (0)