Skip to content

fix(bundler): hardcode skipRevert: false on cleanup calls#520

Closed
Rubilmax wants to merge 1 commit intomainfrom
Rubilmax/fix-wrapper-skiprevert
Closed

fix(bundler): hardcode skipRevert: false on cleanup calls#520
Rubilmax wants to merge 1 commit intomainfrom
Rubilmax/fix-wrapper-skiprevert

Conversation

@Rubilmax
Copy link
Collaborator

@Rubilmax Rubilmax commented Mar 6, 2026

Summary

  • Cleanup calls (sweep-back transfers) in multi-call adapter sequences now always use skipRevert: false, preventing tokens from being stranded on permissionless adapters when skipRevert=true is set by the integrator
  • Applies to ERC20Wrapper wrap/unwrap and Paraswap buy/sell/buyDebt flows

Resolves SDK-93

Test plan

  • Build passes (pnpm build in bundler-sdk-viem)
  • Verify wrap/unwrap and paraswap bundle encoding in integration tests

🤖 Generated with Claude Code

Cleanup calls (sweep-back transfers) in multi-call adapter sequences
must never skip revert, as silent failure would strand tokens on
permissionless adapters where anyone could steal them via erc20Transfer.

Applies to erc20Wrapper wrap/unwrap and paraswap buy/sell/buyDebt flows.

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

linear bot commented Mar 6, 2026

@Rubilmax
Copy link
Collaborator Author

Rubilmax commented Mar 6, 2026

Superseeded by #518

@Rubilmax Rubilmax closed this Mar 6, 2026
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