track matcha-xyz auto mode frontend fees and new allium helper to track the native and erc20 token transfers#6213
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughA new fee adapter for Matcha XYZ is introduced alongside refactored helper utilities. The adapter retrieves EVM token transfers across multiple chains with customizable filtering, leveraging a newly extracted chain-mapping utility from the Allium helper module. Changes
Sequence DiagramsequenceDiagram
participant Adapter as Matcha Adapter
participant Transfer as getEVMTokenTransfers
participant Allium as Allium Helper
participant Query as Allium Query Engine
Adapter->>Transfer: fetch(options)
Transfer->>Allium: getAlliumChain(chain)
Allium-->>Transfer: mapped chain name
Transfer->>Query: queryAllium(complex filter query)
Query-->>Transfer: token transfer events
Transfer->>Transfer: createBalances() aggregate
Transfer-->>Adapter: { dailyFees, dailyRevenue, dailyProtocolRevenue }
Adapter-->>Adapter: return composite object
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The matcha-xyz.ts adapter exports: |
|
https://matcha.xyz/matcha-auto
Summary by CodeRabbit