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 30a2571 commit c1c62a3Copy full SHA for c1c62a3
1 file changed
apps/cowswap-frontend/src/modules/tradeFlow/hooks/useTradeFlowType.ts
@@ -31,6 +31,10 @@ function getFlowType(
31
isSafeEthFlow: boolean,
32
isPermitRequired: boolean,
33
): FlowType {
34
+ if (isEoaEthFlow) {
35
+ // Takes precedence when EIP-7702 also supports bundling
36
+ return FlowType.EOA_ETH_FLOW
37
+ }
38
if (isSafeEthFlow) {
39
// Takes precedence over bundle approval
40
return FlowType.SAFE_BUNDLE_ETH
@@ -39,9 +43,5 @@ function getFlowType(
43
// Takes precedence over eth flow
44
return FlowType.SAFE_BUNDLE_APPROVAL
41
45
}
42
- if (isEoaEthFlow) {
- // Takes precedence over regular flow
- return FlowType.EOA_ETH_FLOW
- }
46
return FlowType.REGULAR
47
0 commit comments