Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9683f77
Refactor technical fees handling in GmSwapBox components to utilize a…
midas-myth Dec 11, 2025
9e49d26
Merge branch 'release-92' of github.com:gmx-io/gmx-interface into mul…
midas-myth Dec 12, 2025
9dc994e
Refactor technical fees handling in GmSwapBox components to utilize a…
midas-myth Dec 11, 2025
c7c3472
Refactor deposit and withdrawal transaction hooks to improve error ha…
midas-myth Dec 12, 2025
d1c51e1
Refactor deposit transaction logic to remove unnecessary isGlv checks…
midas-myth Dec 12, 2025
69ab4b6
Sync translations
midas-myth Dec 12, 2025
69a0912
Sync translations
midas-myth Dec 23, 2025
cc44b24
Merge branch 'multichain-lp-gmx-acc-fix' into fedev-3074-fix-multicha…
midas-myth Dec 23, 2025
30e0223
Refactor signCreateGlvWithdrawal function to accept AbstractSigner an…
midas-myth Dec 23, 2025
53714db
Refactor technical fees handling in useGmSwapSubmitState and useWithd…
midas-myth Dec 23, 2025
935ffb1
Merge branch 'release' of github.com:gmx-io/gmx-interface into fedev-…
midas-myth Dec 24, 2025
0dfa183
Enhance technical fees handling by adding isDeposit and isGlv flags t…
midas-myth Dec 24, 2025
cf8597c
Refactor gas estimation logic in arbitraryRelayParams.ts to utilize E…
midas-myth Dec 24, 2025
7e90156
Update value calculation in estimateExpressParams to divide maxUint25…
midas-myth Dec 24, 2025
41a2538
Refactor wrapped token data retrieval in useDepositWithdrawalFees to …
midas-myth Dec 24, 2025
62821c3
Merge branch 'release' of github.com:gmx-io/gmx-interface into fedev-…
midas-myth Jan 6, 2026
42cb996
Refactor GmSwap components to centralize operation and mode types
midas-myth Jan 6, 2026
a47dc02
Refactor technical fees handling in GmSwap components
midas-myth Jan 6, 2026
65d9694
Fix estimateArbitraryGasLimit
midas-myth Jan 7, 2026
ec543df
Add useOpenInterestInTokensForBalance field and related enums to Mark…
midas-myth Jan 7, 2026
dabd109
Merge branch 'release' of github.com:gmx-io/gmx-interface into fedev-…
midas-myth Jan 7, 2026
9ebf3bf
Reorder import statements in TradeBox component for consistency
midas-myth Jan 7, 2026
64e15c9
Update WithdrawalView to prevent button state change during loading o…
midas-myth Jan 13, 2026
189478c
Refactor TransferDetailsView and WithdrawalView for token address han…
midas-myth Jan 13, 2026
a331e15
Enhance loading state handling in WithdrawalView to include additiona…
midas-myth Jan 14, 2026
1e42449
Merge branch 'release' of github.com:gmx-io/gmx-interface into fedev-…
midas-myth Jan 14, 2026
967f9c6
Add gas payment network fee display in BridgeOutModal
midas-myth Jan 14, 2026
2841f6a
Sync translations
midas-myth Jan 14, 2026
c37acac
Remove unused fromChainProvider parameter in DepositView and Withdraw…
midas-myth Jan 15, 2026
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@ import { useCallback, useState } from "react";

import { selectPoolsDetailsOperation } from "context/PoolsDetailsContext/selectors";
import { useSelector } from "context/SyntheticsStateContext/utils";
import type { ExecutionFee } from "domain/synthetics/fees";
import type { SourceChainDepositFees } from "domain/synthetics/markets/feeEstimation/estimateSourceChainDepositFees";
import type { SourceChainGlvDepositFees } from "domain/synthetics/markets/feeEstimation/estimateSourceChainGlvDepositFees";
import { SourceChainGlvWithdrawalFees } from "domain/synthetics/markets/feeEstimation/estimateSourceChainGlvWithdrawalFees";
import { SourceChainWithdrawalFees } from "domain/synthetics/markets/feeEstimation/estimateSourceChainWithdrawalFees";
import { TechnicalGmFees } from "domain/multichain/technical-fees-types";

import { useDepositTransactions } from "./useDepositTransactions";
import { useWithdrawalTransactions } from "./useWithdrawalTransactions";
import { Operation } from "../../types";

export interface UseLpTransactionProps {
shouldDisableValidation?: boolean;
technicalFees:
| ExecutionFee
| SourceChainGlvDepositFees
| SourceChainDepositFees
| SourceChainWithdrawalFees
| SourceChainGlvWithdrawalFees
| undefined;
technicalFees: TechnicalGmFees | undefined;
}

export const useLpTransactions = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { buildAndSignMultichainGlvDepositTxn } from "domain/synthetics/markets/c
import type { GmPaySource } from "domain/synthetics/markets/types";
import { useChainId } from "lib/chains";
import { AsyncResult } from "lib/useThrottledAsync";
import useWallet from "lib/wallets/useWallet";
import { DEFAULT_EXPRESS_ORDER_DEADLINE_DURATION } from "sdk/configs/express";
import { nowInSeconds } from "sdk/utils/time";

Expand All @@ -27,14 +26,8 @@ export function useMultichainDepositExpressTxnParams({
gasPaymentTokenAsCollateralAmount: bigint | undefined;
}): AsyncResult<ExpressTxnParams> {
const { chainId, srcChainId } = useChainId();
const { signer } = useWallet();

const enabled =
paySource === "gmxAccount" &&
Boolean(params) &&
isDeposit &&
transferRequests !== undefined &&
signer !== undefined;
const enabled = paySource === "gmxAccount" && Boolean(params) && isDeposit && transferRequests !== undefined;

const multichainDepositExpressTxnParams = useArbitraryRelayParamsAndPayload({
isGmxAccount: paySource === "gmxAccount",
Expand All @@ -61,7 +54,6 @@ export function useMultichainDepositExpressTxnParams({
...relayParams,
deadline: BigInt(nowInSeconds() + DEFAULT_EXPRESS_ORDER_DEADLINE_DURATION),
},
signer,
transferRequests,
});

Expand All @@ -84,7 +76,6 @@ export function useMultichainDepositExpressTxnParams({
...relayParams,
deadline: BigInt(nowInSeconds() + DEFAULT_EXPRESS_ORDER_DEADLINE_DURATION),
},
signer,
transferRequests,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { buildAndSignMultichainGlvWithdrawalTxn } from "domain/synthetics/market
import { buildAndSignMultichainWithdrawalTxn } from "domain/synthetics/markets/createMultichainWithdrawalTxn";
import type { GmPaySource } from "domain/synthetics/markets/types";
import { useChainId } from "lib/chains";
import useWallet from "lib/wallets/useWallet";
import { DEFAULT_EXPRESS_ORDER_DEADLINE_DURATION } from "sdk/configs/express";
import { nowInSeconds } from "sdk/utils/time";

Expand All @@ -23,14 +22,8 @@ export function useMultichainWithdrawalExpressTxnParams({
isWithdrawal: boolean;
}) {
const { chainId, srcChainId } = useChainId();
const { signer } = useWallet();

const enabled =
paySource === "gmxAccount" &&
isWithdrawal &&
Boolean(params) &&
transferRequests !== undefined &&
signer !== undefined;
const enabled = paySource === "gmxAccount" && isWithdrawal && Boolean(params) && transferRequests !== undefined;

const multichainWithdrawalExpressTxnParams = useArbitraryRelayParamsAndPayload({
isGmxAccount: paySource === "gmxAccount",
Expand All @@ -56,7 +49,6 @@ export function useMultichainWithdrawalExpressTxnParams({
...relayParams,
deadline: BigInt(nowInSeconds() + DEFAULT_EXPRESS_ORDER_DEADLINE_DURATION),
},
signer,
transferRequests,
});

Expand All @@ -78,7 +70,6 @@ export function useMultichainWithdrawalExpressTxnParams({
...relayParams,
deadline: BigInt(nowInSeconds() + DEFAULT_EXPRESS_ORDER_DEADLINE_DURATION),
},
signer,
transferRequests,
});

Expand Down
Loading