Add MultiMesh fees adapter#6296
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughNew TypeScript adapter Changes
Sequence DiagramsequenceDiagram
participant Client
participant Adapter as MultiMesh Adapter
participant Blockchain as LI.FI Fee Collector
Client->>Adapter: fetch(options)
activate Adapter
Adapter->>Blockchain: query `FeesCollected` logs (event ABI, chain-specific address)
activate Blockchain
Blockchain-->>Adapter: return logs (onlyArgs)
deactivate Blockchain
Adapter->>Adapter: filter logs by `_integrator` (MultiMesh)
Adapter->>Adapter: aggregate per-token dailyFees (integratorFee + lifiFee)
Adapter->>Adapter: aggregate per-token dailyRevenue (integratorFee)
Adapter-->>Client: return { dailyFees, dailyRevenue }
deactivate Adapter
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 multimesh adapter exports: |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@fees/multimesh/index.ts`:
- Line 4: The hardcoded LIFI_FEE_COLLECTOR constant is causing Arbitrum swaps to
be misattributed; replace the single address constant with chain-aware logic
that selects the LI.FI fee collector per chain (use CHAIN.ARBITRUM as a
detection case and the chain-specific address defined in the lifi aggregator
helper), e.g., add a function or map (referencing LIFI_FEE_COLLECTOR usage sites
and the CHAIN enum) and use it where the constant is read so Arbitrum uses
0xB021... while other chains use their respective collector.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
|
The multimesh adapter exports: |
Name (to be shown on DefiLlama):
MultiMesh
Twitter Link:
https://x.com/MultiMesh_01
List of audit links if any:
Website Link:
https://themultimesh.com
Logo (High resolution, will be shown with rounded borders):
Current TVL:
0
Short Description (to be shown on DefiLlama):
Cross-chain swap aggregator powered by LI.FI routing. Swap any token across Ethereum, Arbitrum, Polygon, Optimism and BNB Chain in one click.
Category:
Aggregator
Github org/user:
kurzmichael02-hue
Summary by CodeRabbit