Skip to content

Commit c1c62a3

Browse files
fix: route smart accounts through EthFlow
1 parent 30a2571 commit c1c62a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/cowswap-frontend/src/modules/tradeFlow/hooks/useTradeFlowType.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ function getFlowType(
3131
isSafeEthFlow: boolean,
3232
isPermitRequired: boolean,
3333
): FlowType {
34+
if (isEoaEthFlow) {
35+
// Takes precedence when EIP-7702 also supports bundling
36+
return FlowType.EOA_ETH_FLOW
37+
}
3438
if (isSafeEthFlow) {
3539
// Takes precedence over bundle approval
3640
return FlowType.SAFE_BUNDLE_ETH
@@ -39,9 +43,5 @@ function getFlowType(
3943
// Takes precedence over eth flow
4044
return FlowType.SAFE_BUNDLE_APPROVAL
4145
}
42-
if (isEoaEthFlow) {
43-
// Takes precedence over regular flow
44-
return FlowType.EOA_ETH_FLOW
45-
}
4646
return FlowType.REGULAR
4747
}

0 commit comments

Comments
 (0)