Skip to content

Conversation

@zajck
Copy link
Member

@zajck zajck commented Nov 13, 2025

Daily volume contribution:

  • everything deposited during the day
  • newly created offers

@zajck zajck self-assigned this Nov 13, 2025
@zajck zajck requested a review from levalleux-ludo November 13, 2025 08:44
@levalleux-ludo
Copy link
Member

@copilot review this PR, generating a full description of the created functions

Copy link

Copilot AI commented Nov 13, 2025

@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.

Copy link

Copilot AI left a 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.

zajck and others added 2 commits November 13, 2025 15:19
Co-authored-by: Ludovic Levalleux <levalleux_ludo@hotmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zajck zajck changed the title Boson fees volume Boson protocol volume Nov 21, 2025
@zajck
Copy link
Member Author

zajck commented Dec 9, 2025

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.

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