feat(rebalancer): add Matcha adapter for on-chain DEX swaps via 0x API#3125
feat(rebalancer): add Matcha adapter for on-chain DEX swaps via 0x API#3125nicholaspai wants to merge 7 commits intomasterfrom
Conversation
nicholaspai
left a comment
There was a problem hiding this comment.
@codex please respond to comments
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d54d723baf
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d54d723baf
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Testing
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
MatchaSwapAdapterfor on-chain DEX-aggregated USDT↔USDC swaps via the 0x Swap API, supporting Ethereum, BSC, Arbitrum, and BaseSwapAdapterBase, reducing ~400 lines of duplication across swap adaptersMatchaUtilshelper for 0x Swap API quote/swap interactions with gas cost estimationBINANCE_API_KEY, Matcha requiresZERO_X_API_KEY_estimateGasCostInSourceTokentoBaseAdapterfor on-chain gas cost estimation in stablecoin termsTest plan
ZERO_X_API_KEYsetZERO_X_API_KEYis unsetSwapAdapterBaserefactor