Skip to content

Commit

Permalink
fix on useSwapNetworkfees
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinsoza committed Jun 26, 2024
1 parent 32fde6b commit b37eb82
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hooks/useSwapNetworkFees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const useSwapNetworkFees = (trade: InterfaceTrade | undefined, currencies: Curre
const sorobanContext = useSorobanReact();

const { generateRoute } = useRouterSDK();
const isAggregator = sorobanContext?.activeChain?.id == "testnet" ? true : false

const isFirstTokenXLMAndHasSecondTokenSelected = () => {
const currencyA = currencies.INPUT;
Expand Down Expand Up @@ -59,7 +58,6 @@ const useSwapNetworkFees = (trade: InterfaceTrade | undefined, currencies: Curre
quoteTokenAddress: currencyB.contract,
amount: valueOfOne,
tradeType: TradeType.EXACT_INPUT,
isAggregator,
});

if (!result) return undefined;
Expand Down

0 comments on commit b37eb82

Please sign in to comment.