Skip to content

Commit

Permalink
update keep old value simulate
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Feb 5, 2025
1 parent b3e5b15 commit d7cc7a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/UniversalSwap/Swap/hooks/useCalculateDataSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ const useCalculateDataSwap = ({ originalFromToken, originalToToken, fromToken, t
useIbcWasm,
protocols,
maxSplits,
dontAllowSwapAfter: useAlphaIbcWasm ? [''] : undefined,
keepPreviousData: true
dontAllowSwapAfter: useAlphaIbcWasm ? [''] : undefined
};

const { relayerFee, relayerFeeInOraiToAmount: relayerFeeToken } = useRelayerFeeToken(
Expand Down Expand Up @@ -88,7 +87,9 @@ const useCalculateDataSwap = ({ originalFromToken, originalToToken, fromToken, t
originalToToken,
routerClient,
null,
simulateOption
{
...simulateOption
}
);

const { simulateData: averageSimulateData, isPreviousSimulate: isAveragePreviousSimulate } = useSimulate(
Expand Down

0 comments on commit d7cc7a8

Please sign in to comment.