Skip to content

Commit 64f350e

Browse files
committed
allow paraswap flow with permit for coll swap
1 parent ae345f8 commit 64f350e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/transactions/Switch/SwitchActions.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,11 @@ export const SwitchActions = ({
10871087

10881088
// For flashloan collateral swaps with ParaSwap, use the SwapActions component
10891089
// which has the correct approval logic via useParaSwapTransactionHandler
1090-
if (!loading && useFlashloan && modalType === ModalType.CollateralSwap) {
1090+
if (
1091+
!loading &&
1092+
(useFlashloan || switchRates?.provider === 'paraswap') &&
1093+
modalType === ModalType.CollateralSwap
1094+
) {
10911095
if (!switchRates || !poolReserve || !targetReserve || !isParaswapRates(switchRates))
10921096
return null;
10931097

0 commit comments

Comments
 (0)