Skip to content

fix(bundler): never skip recovery transfers in Paraswap/ERC20Wrapper ops#518

Open
Rubilmax wants to merge 1 commit intomainfrom
Rubilmax/fix-paraswap-skiprevert
Open

fix(bundler): never skip recovery transfers in Paraswap/ERC20Wrapper ops#518
Rubilmax wants to merge 1 commit intomainfrom
Rubilmax/fix-paraswap-skiprevert

Conversation

@Rubilmax
Copy link
Collaborator

@Rubilmax Rubilmax commented Mar 6, 2026

Summary

  • Recovery erc20Transfer calls that sweep leftover tokens from paraswapAdapter and erc20WrapperAdapter back to generalAdapter1 now always have skipRevert: false
  • Prevents tokens from being stranded on adapters when an integrator enables skipRevert=true for best-effort swaps
  • Funding and swap sub-actions retain operation.skipRevert to preserve best-effort semantics

Test plan

  • Verify existing Paraswap tests pass (leverage, close position, deleverage)
  • Verify ERC20Wrapper tests pass
  • Confirm no type errors in modified source files

Resolves SDK-94, SDK-93

🤖 Generated with Claude Code

…per ops

Recovery erc20Transfer calls that sweep leftover tokens from paraswapAdapter
and erc20WrapperAdapter back to generalAdapter1 now always have skipRevert=false,
preventing tokens from being stranded on adapters when an integrator enables
skipRevert=true for best-effort swaps.

Resolves SDK-94

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear
Copy link

linear bot commented Mar 6, 2026

@Rubilmax Rubilmax self-assigned this Mar 6, 2026
@Rubilmax Rubilmax marked this pull request as ready for review March 6, 2026 16:32
@Rubilmax
Copy link
Collaborator Author

Rubilmax commented Mar 6, 2026

@CoeX

@Rubilmax
Copy link
Collaborator Author

Rubilmax commented Mar 6, 2026

@codex

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant