From 5c009b73c7a053aee25711888253122e84010f64 Mon Sep 17 00:00:00 2001 From: Martin Grabina Date: Mon, 5 Jan 2026 13:53:09 -0300 Subject: [PATCH] fix: FL fee side --- src/components/transactions/Swap/hooks/useSwapOrderAmounts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/transactions/Swap/hooks/useSwapOrderAmounts.ts b/src/components/transactions/Swap/hooks/useSwapOrderAmounts.ts index 46d6e2bacd..e35f0777b2 100644 --- a/src/components/transactions/Swap/hooks/useSwapOrderAmounts.ts +++ b/src/components/transactions/Swap/hooks/useSwapOrderAmounts.ts @@ -91,7 +91,7 @@ export const useSwapOrderAmounts = ({ ? getFlashLoanFeeBps(state.provider) : 0; const flashLoanFeeAmount = - state.processedSide == 'sell' + state.side == 'sell' ? valueToBigNumber(state.outputAmount).multipliedBy(flashLoanFeeBps).dividedBy(10000) : valueToBigNumber(state.inputAmount).multipliedBy(flashLoanFeeBps).dividedBy(10000); @@ -357,5 +357,6 @@ export const useSwapOrderAmounts = ({ state.side, state.swapType, state.orderType, + state.useFlashloan ]); };