Skip to content
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
8 changes: 1 addition & 7 deletions src/client/createSorokitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,7 @@ export function createSorokitClient(
},
estimateFee: (input) => {
logger.debug("transaction.estimateFee");
return estimateFee(
rpcUrl,
horizonUrl,
networkConfig,
input,
feeEstimateOptions,
);
return estimateFee(rpcUrl, horizonUrl, networkConfig, input, config.cache);
},
stream: (publicKey, config, signal) => {
logger.debug("transaction.stream", { publicKey });
Expand Down
3 changes: 3 additions & 0 deletions src/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ export const MIN_ACCOUNT_BALANCE_XLM = "1";

/** Number of chars shown on each side of a shortened address */
export const DEFAULT_ADDRESS_DISPLAY_CHARS = 4;

/** Default cache TTL for fee estimates in milliseconds (5 minutes) */
export const DEFAULT_FEE_CACHE_TTL_MS = 300_000;
Loading