Skip to content

fix(cdp): exact Permit2 allowance and no swap-submit retry - #1409

Open
SashaMIT wants to merge 1 commit into
coinbase:mainfrom
SashaMIT:fix/cdp-exact-permit2-allowance-no-swap-retry
Open

fix(cdp): exact Permit2 allowance and no swap-submit retry#1409
SashaMIT wants to merge 1 commit into
coinbase:mainfrom
SashaMIT:fix/cdp-exact-permit2-allowance-no-swap-retry

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Test plan

  • pnpm exec jest --testPathPattern='cdp/(cdpEvmWallet|cdpSmartWallet)ActionProvider' --coverage=false (49/49)
  • Approval test asserts decoded approve amount equals fromAmount atomic units and is not maxUint256

Related: #1394 (zeroX Permit2), #1401 (sushi false-failure retry). Distinct providers / roots.

Made with Cursor

Approve only the swap fromAmount to Permit2 (TS+Python, EVM+smart)
instead of maxUint256, and submit swap once so a post-broadcast throw
cannot double-execute.

Co-authored-by: Cursor <cursoragent@cursor.com>
@SashaMIT
SashaMIT requested a review from murrlincoln as a code owner August 8, 2026 02:32
@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants