-
Notifications
You must be signed in to change notification settings - Fork 0
Boson protocol volume #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@copilot review this PR, generating a full description of the created functions |
|
@levalleux-ludo I've opened a new pull request, #3, to work on those changes. Once the pull request is ready, I'll request review from you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements fee and volume tracking adapters for the Boson Protocol across multiple chains (Polygon, Ethereum, Base, Arbitrum, and Optimism). The implementation tracks daily volume through three sources: funds encumbered in exchanges, newly created offers, and newly reserved ranges for unlimited offers. The fees adapter tracks protocol fees collected from trades.
- Adds volume tracking that aggregates encumbered funds, new offer values, and reserved range allocations
- Implements fee collection tracking from protocol-charged trading fees
- Supports multiple event schema versions (v2.0.0 through v2.5.0) to handle protocol upgrades
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| fees/boson/index.ts | Implements protocol fee collection tracking by monitoring ProtocolFeeCollected events |
| dexs/boson/index.ts | Orchestrates volume calculation by aggregating data from three sources |
| dexs/boson/utils.ts | Implements helper functions to fetch and process new offers, reserved ranges, and encumbered funds |
| dexs/boson/constants.ts | Defines contract addresses, event topics, ABI definitions across protocol versions, and contract methods |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Ludovic Levalleux <levalleux_ludo@hotmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add Boson Protocol volume tracking
…n-adapters into boson-fees-volume
|
DEX adapter was removed based on convo in DefiLlama#4884 They plan to add RWA category soon, so the offers part can then be resubmitted in the correct RWA dimension. |
Daily volume contribution: