Skip to content

Commit f4a70ad

Browse files
authored
hotfix: FL fee side (#2829)
1 parent e2ad2dd commit f4a70ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/transactions/Swap/hooks/useSwapOrderAmounts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const useSwapOrderAmounts = ({
9191
? getFlashLoanFeeBps(state.provider)
9292
: 0;
9393
const flashLoanFeeAmount =
94-
state.processedSide == 'sell'
94+
state.side == 'sell'
9595
? valueToBigNumber(state.outputAmount).multipliedBy(flashLoanFeeBps).dividedBy(10000)
9696
: valueToBigNumber(state.inputAmount).multipliedBy(flashLoanFeeBps).dividedBy(10000);
9797

@@ -357,5 +357,6 @@ export const useSwapOrderAmounts = ({
357357
state.side,
358358
state.swapType,
359359
state.orderType,
360+
state.useFlashloan
360361
]);
361362
};

0 commit comments

Comments
 (0)