We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae345f8 commit 64f350eCopy full SHA for 64f350e
src/components/transactions/Switch/SwitchActions.tsx
@@ -1087,7 +1087,11 @@ export const SwitchActions = ({
1087
1088
// For flashloan collateral swaps with ParaSwap, use the SwapActions component
1089
// which has the correct approval logic via useParaSwapTransactionHandler
1090
- if (!loading && useFlashloan && modalType === ModalType.CollateralSwap) {
+ if (
1091
+ !loading &&
1092
+ (useFlashloan || switchRates?.provider === 'paraswap') &&
1093
+ modalType === ModalType.CollateralSwap
1094
+ ) {
1095
if (!switchRates || !poolReserve || !targetReserve || !isParaswapRates(switchRates))
1096
return null;
1097
0 commit comments