Skip to content

[sdk,simplex]: Delegate EOA to SolverAccount using UserOp#778

Merged
Wizdave97 merged 6 commits into
mainfrom
roy/delegate-userop
Apr 17, 2026
Merged

[sdk,simplex]: Delegate EOA to SolverAccount using UserOp#778
Wizdave97 merged 6 commits into
mainfrom
roy/delegate-userop

Conversation

@royvardhan

Copy link
Copy Markdown
Collaborator

Ref: #768 (comment)

DelegationService now delegates via bundler UserOp with paymaster paying gas — solver needs zero native tokens. Supports Pimlico, Alchemy, and generic bundler gas pricing. Falls back to direct tx. ContractInteractionService approval scoped to exact required amount instead of maxUint256

@royvardhan royvardhan marked this pull request as draft April 17, 2026 06:54
@royvardhan royvardhan changed the title [sdk,simplex]: Delegate Solver via No-op UserOp [sdk,simplex]: Delegate EOA to SolverAccount using UserOp Apr 17, 2026
- Delegate the filler EOA to the SolverAccount contract via EIP-7702
  and submit a no-op UserOp through the bundler to activate delegation
- Use Circle Paymaster (USDC permit, EIP-2612) to pay gas in USDC on
  supported chains; fall back to EntryPoint native-token deposit where
  Circle is not deployed (e.g. BSC)
- remove aerodrome support
- clamp filler output for safety: cap computed output at user-requested
  × (1 + maxOverfillBps), reject fx orders where output USD ≥ input USD,
  and halt after N consecutive clamp activations; defaults 100 bps / 3
  via [simplex.overfillProtection] in filler config
@royvardhan royvardhan force-pushed the roy/delegate-userop branch from ec2254b to 2dd09c5 Compare April 17, 2026 08:00
@royvardhan royvardhan marked this pull request as ready for review April 17, 2026 08:04

@Wizdave97 Wizdave97 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update the simplex docs

Comment thread sdk/packages/simplex/src/services/paymaster/provider/circle.ts
Comment thread sdk/packages/simplex/src/services/paymaster/types.ts
Comment thread sdk/packages/simplex/src/services/DelegationService.ts
@royvardhan

Copy link
Copy Markdown
Collaborator Author

Let's update the simplex docs

Yes

@Wizdave97 Wizdave97 merged commit 8510626 into main Apr 17, 2026
1 check failed
@Wizdave97 Wizdave97 deleted the roy/delegate-userop branch April 17, 2026 15:31
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.

3 participants