Skip to content

Commit bf9223d

Browse files
committed
revert: remove feemarket gasAdjustment from swap page
The "feemarket" feature string has no matching chains in config.ts or chain-registry. Only "evm-feemarket" exists (Mantra), which is incompatible. The gasAdjustment override was dead code.
1 parent 7dd3dd5 commit bf9223d

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

apps/extension/src/pages/ibc-swap/index.tsx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -353,34 +353,6 @@ export const IBCSwapPage: FunctionComponent = observer(() => {
353353
}
354354
);
355355

356-
const currentFeeCurrencyCoinMinimalDenom =
357-
swapConfigs.feeConfig.fees[0]?.currency.coinMinimalDenom;
358-
359-
// feemarket 체인은 simulate 결과가 실제보다 낮게 나오므로 gasAdjustment를 높여서 보정.
360-
// 비네이티브 fee currency일 때 2.0인 이유는 fee denom 변환 과정에서 추가 gas 필요.
361-
// (send 페이지와 동일 로직)
362-
useEffect(() => {
363-
const u2 = chainStore.getModularChain(inChainId).unwrapped;
364-
const hasFeemarketFeature =
365-
(u2.type === "cosmos" || u2.type === "ethermint") &&
366-
u2.cosmos.features?.includes("feemarket");
367-
if (hasFeemarketFeature) {
368-
if (
369-
currentFeeCurrencyCoinMinimalDenom !==
370-
(u2.type === "cosmos" || u2.type === "ethermint"
371-
? u2.cosmos.currencies[0].coinMinimalDenom
372-
: "")
373-
) {
374-
gasSimulator.setGasAdjustmentValue("2");
375-
} else {
376-
gasSimulator.setGasAdjustmentValue("1.6");
377-
}
378-
} else {
379-
// 소스 체인이 변경될 수 있으므로 feemarket이 아닌 체인으로 전환 시 기본값 복원
380-
gasSimulator.setGasAdjustmentValue("1.3");
381-
}
382-
}, [inChainId, chainStore, gasSimulator, currentFeeCurrencyCoinMinimalDenom]);
383-
384356
const txConfigsValidate = useTxConfigsValidate({
385357
...swapConfigs,
386358
gasSimulator,

0 commit comments

Comments
 (0)