We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2ad2dd commit f4a70adCopy full SHA for f4a70ad
1 file changed
src/components/transactions/Swap/hooks/useSwapOrderAmounts.ts
@@ -91,7 +91,7 @@ export const useSwapOrderAmounts = ({
91
? getFlashLoanFeeBps(state.provider)
92
: 0;
93
const flashLoanFeeAmount =
94
- state.processedSide == 'sell'
+ state.side == 'sell'
95
? valueToBigNumber(state.outputAmount).multipliedBy(flashLoanFeeBps).dividedBy(10000)
96
: valueToBigNumber(state.inputAmount).multipliedBy(flashLoanFeeBps).dividedBy(10000);
97
@@ -357,5 +357,6 @@ export const useSwapOrderAmounts = ({
357
state.side,
358
state.swapType,
359
state.orderType,
360
+ state.useFlashloan
361
]);
362
};
0 commit comments