Skip to content

[fees] Blast Fun - read fee receipts directly from Sui - #11456

Merged
bheluga merged 8 commits into
masterfrom
blast-fun-preserve-gross-fees-20261127
Nov 29, 2026
Merged

bheluga merged 8 commits into
masterfrom
blast-fun-preserve-gross-fees-20261127

Conversation

@bheluga

@bheluga bheluga commented Nov 29, 2026

Copy link
Copy Markdown
Member

Refill Guide

Slug Metric Chains Period (UTC, inclusive) Skip Hourly Cache Dependencies
blast-fun fees all (sui) 2026-11-19 → deploy day No none

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

Summary by CodeRabbit

  • New Features
    • Fee reporting now includes launch, bonding-curve, migration, presale, and Cetus frontend fees derived from on-chain activity.
    • Cetus treasury fees from successful matching swaps are included for the selected reporting period.
    • Partner and creator supply-side revenue is reported after partner shares are accounted for.
  • Changes
    • Fee data refreshes hourly.
    • Aftermath frontend fees are no longer included.

Walkthrough

The Blast Fun adapter now derives fees from Sui events, objects, and transactions instead of the published-fee API. It adds partner and creator revenue attribution, removes Aftermath route fees, and changes to version 2 with hourly pulls starting on 2026-11-19.

Changes

Blast Fun fee accounting

Layer / File(s) Summary
On-chain fee collection and attribution
fees/blast-fun.ts
The adapter queries launch, presale, and Cetus data through Sui GraphQL. It records creation, curve, migration, presale, and Cetus fees, and allocates protocol fees to Blast and partners while recording creator fees as supply-side revenue. It updates the methodology and breakdown declarations and enables hourly pulls in version 2. Aftermath route fees are no longer processed.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Adapter as Blast Fun adapter
  participant Sui as Sui GraphQL
  participant Results as Fee breakdown
  Adapter->>Sui: Query launch events and partner objects
  Sui-->>Adapter: Return events and object data
  Adapter->>Sui: Paginate treasury transactions
  Sui-->>Adapter: Return transaction and Cetus swap data
  Adapter->>Results: Record fees and revenue shares
Loading

Possibly related PRs

Suggested labels: fees, methodology

Suggested reviewers: josemvcerqueira

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

Copy link
Copy Markdown

The blast-fun.ts adapter exports:

====== TOTAL DAILY AGGREGATED (sum of slots per chain) ======

SUI 👇
End timestamp: 1795949999 (2026-11-29T10:59:59.000Z)
Daily fees: 25.78
Daily user fees: 25.78
Daily revenue: 18.43
Daily protocol revenue: 18.43
Daily supply side revenue: 7.36




FEES BREAKDOWN 👇

label                               | Daily fees         | Daily supply side revenue | Daily revenue     
---                                 | ---                | ---                       | ---               
Cetus route frontend fees           | 11.370299999999999 |                           |                   
Bonding curve swap fees             | 14.407900000000003 |                           |                   
Bonding curve swap fees to creators |                    | 7.2079                    |                   
Launchpad fees to partners          |                    | 0.1505                    |                   
Cetus route frontend fees to Blast  |                    |                           | 11.370299999999999
Bonding curve swap fees to Blast    |                    |                           | 7.057400000000001 

@bheluga
bheluga merged commit 3f1b2b1 into master Nov 29, 2026
2 of 3 checks passed
@bheluga
bheluga deleted the blast-fun-preserve-gross-fees-20261127 branch November 29, 2026 14:04
@bheluga
bheluga restored the blast-fun-preserve-gross-fees-20261127 branch November 29, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants