Skip to content

fix(kasu): correct fees magnitude, multi-deployment per chain, add XDC USDC pool#6399

Merged
bheluga merged 14 commits intoDefiLlama:masterfrom
Kasu-Finance:feat/kasu-fees-adapter
Apr 16, 2026
Merged

fix(kasu): correct fees magnitude, multi-deployment per chain, add XDC USDC pool#6399
bheluga merged 14 commits intoDefiLlama:masterfrom
Kasu-Finance:feat/kasu-fees-adapter

Conversation

@kivanov82
Copy link
Copy Markdown
Contributor

Summary

  • Fix Base fees magnitude (~10x overstated): dailyFees now reports the actual performance fee captured on-chain (ecosystemFee + protocolFee) rather than the back-calculated gross interest. Previously Base was reporting ~$42k/day vs the real ~$4k.
  • Support multiple deployments per chain: refactored per-chain config to Record<chain, Deployment[]> ({feeManager, systemVariables, paymentToken}).
  • Add XDC USDC deployment alongside the existing AUDD one.
  • Fix XDC AUDD token: was incorrectly set to USDC.e; now uses the real AUDD address (0x9fe4e632...). AUDD is the Australian dollar stablecoin (~$0.66), so the prior config was mispricing XDC fee values.
  • Adds dailySupplySideRevenue (lender share of gross interest, back-calculated from on-chain performanceFee).
  • Adds breakdownMethodology.

Test plan

  • npx tsx adapters-tools/cli/runAdapter.ts fees/kasu.ts runs cleanly across Base / Plume / XDC
  • Base dailyFees aligns with dailyRevenue (Kasu remits 100% of performance fees to protocol+ecosystem)
  • XDC: both AUDD and USDC pools surface in fee output

kivanov82 and others added 8 commits February 12, 2026 12:00
Track performance fees from Kasu lending pools via FeeManager
FeesEmitted events. Reports daily fees, protocol revenue, and
holder revenue (ecosystem fees to KSU lockers).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…mVariables on-chain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- dailyFees now reports the actual performance fee collected (totalFee),
  not the back-calculated gross interest. Previous calc inflated Base
  fees ~10x (e.g. $42k/day vs the real ~$4k).
- Refactor per-chain config to an array of {feeManager, systemVariables,
  paymentToken} so a single chain can host multiple deployments.
- Add second XDC deployment (USDC pool) alongside the AUDD one.
- Fix XDC AUDD pool token: was incorrectly USDC.e, now real AUDD address.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 14, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Replaced per-chain single fee/source configuration with per-chain DEPLOYMENTS[]. fetch now iterates deployments, discovers pools from each factory's PoolCreated logs, loads per-epoch system variables, reads pools' FeesOwedIncreased logs over a lookback, prorates epoch fees by time overlap, and attributes revenue into new split buckets.

Changes

Cohort / File(s) Summary
Multi-deployment fee logic
fees/kasu.ts
Replaced FEE_MANAGER/SYSTEM_VARIABLES/PAYMENT_TOKEN single-config with DEPLOYMENTS: Record<chain, Deployment[]>. fetch iterates deployments, finds pools via PoolCreated logs from each lendingPoolFactory, reads FeesOwedIncreased logs per pool, resolves historical PerformanceFeeUpdated/FeeRatesUpdated to compute performanceFee and feeRates at log blocks, prorates epoch fees by overlap, computes splits (PROTOCOL_SPLIT, HOLDERS_SPLIT, TOKEN_LOCKER_DISTRIBUTIONS, SUPPLY_SIDE_SPLIT) using feeRates() outputs and back-calculated supplySide, and attributes amounts to each deployment's paymentToken balances. Methodology/breakdown keys updated accordingly.

Sequence Diagram(s)

sequenceDiagram
  participant Adapter as Adapter
  participant RPC as Blockchain RPC
  participant Factory as LendingPoolFactory
  participant Pool as LendingPool
  participant SysVars as SystemVariables
  participant Token as PaymentToken

  Adapter->>RPC: load DEPLOYMENTS for chain
  loop per deployment
    Adapter->>Factory: query past `PoolCreated` logs (from factoryStartBlock)
    Factory-->>Adapter: list of Pool addresses
    loop per pool
      Adapter->>Pool: query `FeesOwedIncreased` logs (lookback window)
      Pool-->>Adapter: FeesOwedIncreased events
      Adapter->>SysVars: resolve `PerformanceFeeUpdated` / `FeeRatesUpdated` at event blocks
      SysVars-->>Adapter: per-epoch fee params
      Adapter->>Adapter: prorate fees by time overlap, compute splits (protocol/holders/token-locker/supply-side)
      Adapter->>Token: attribute token balances per split
    end
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Suggested labels

fees, methodology, bug-fix

🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Income Statement Compliance ⚠️ Warning PR objectives contain contradictory statements: initial claim states dailyFees reports only protocol-captured fees (ecosystemFee + protocolFee), while post-review update claims it was changed to report gross borrower interest. Implementation description also indicates dailyRevenue includes both protocol and rKSU-holder shares, contradicting the requirement that it represent only protocol's portion. Verify actual implementation in fees/kasu.ts confirms dailyFees equals total borrower interest, dailyRevenue represents protocol-only portion, and dailySupplySideRevenue represents lender share, with the mathematical relationship dailyFees = dailyRevenue + dailySupplySideRevenue holding as an invariant.
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title follows the required format [type] protocol-name - description, providing a clear and specific summary of the main changes: fixing fee magnitude, supporting multiple deployments, and adding a new pool.
Description check ✅ Passed The pull request description is comprehensive and well-structured, clearly explaining the problem being fixed, the refactoring approach, specific improvements, and providing a concrete test plan with measurable outcomes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Breakdown Methodology Check ✅ Passed All five breakdown labels used in .add() calls have corresponding entries in the breakdownMethodology object.
Version 2 Required ✅ Passed The fees/kasu.ts adapter correctly exports version: 2 in its SimpleAdapter configuration, satisfying version requirements.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
fees/kasu.ts (1)

94-99: ⚠️ Potential issue | 🔴 Critical

Return the dedicated dailyProtocolRevenue accumulator.

Line 88 correctly records only protocolFee into dailyProtocolRevenue, but the return object aliases dailyRevenue instead. That overstates protocol revenue by the rKSU-holder distribution.

One-line fix
-    dailyProtocolRevenue: dailyRevenue,
+    dailyProtocolRevenue,
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@fees/kasu.ts` around lines 94 - 99, The return object in the function (in
fees/kasu.ts) incorrectly aliases dailyProtocolRevenue to dailyRevenue; update
the returned object so the dailyProtocolRevenue property returns the accumulator
variable dailyProtocolRevenue (not dailyRevenue), leaving dailyFees,
dailyUserFees, dailyRevenue and dailyHoldersRevenue unchanged so the
protocol-only fee is reported correctly.
🤖 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/kasu.ts`:
- Around line 86-90: The revenue split labels are too generic—update all
invocations of dailyRevenue.add, dailyProtocolRevenue.add,
dailyHoldersRevenue.add and dailySupplySideRevenue.add to use explicit
source→destination labels (e.g. "Performance Fees To Protocol", "Performance
Fees To rKSU Holders"), use distribution-type labels for holder buckets (e.g.
"Token Locker Distributions"), and source→destination for supply-side (e.g.
"Borrow Interest To Lenders"); then update the corresponding entries in
breakdownMethodology so the exact same labels are used for each bucket (ensure
the protocol-only accumulator still returns the dedicated protocol label).
Ensure every occurrence mentioned in the diff blocks (the revenue,
protocolRevenue, holdersRevenue and supplySideRevenue adds and their matching
breakdownMethodology entries) is renamed accordingly and no generic labels like
"Ecosystem fees" or "Fees" remain.
- Around line 81-90: The code currently records only the captured performance
fee into dailyFees (and dailyUserFees), omitting the lender share (supplySide)
so gross protocol revenue is understated; update the calls that add to dailyFees
and dailyUserFees to use the gross borrower-interest amount (totalFee +
supplySide) instead of totalFee alone, keeping dailySupplySideRevenue as
supplySide and leaving dailyRevenue calculations unchanged so the invariant
dailyRevenue = dailyFees - dailySupplySideRevenue holds; apply the same change
to the similar block around the dailyFees/dailyUserFees updates referenced in
lines 96-106.

---

Outside diff comments:
In `@fees/kasu.ts`:
- Around line 94-99: The return object in the function (in fees/kasu.ts)
incorrectly aliases dailyProtocolRevenue to dailyRevenue; update the returned
object so the dailyProtocolRevenue property returns the accumulator variable
dailyProtocolRevenue (not dailyRevenue), leaving dailyFees, dailyUserFees,
dailyRevenue and dailyHoldersRevenue unchanged so the protocol-only fee is
reported correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 86b4530a-c315-4d5a-be05-16a916685adc

📥 Commits

Reviewing files that changed from the base of the PR and between ddf3c22 and d550518.

📒 Files selected for processing (1)
  • fees/kasu.ts

Comment thread fees/kasu.ts
Comment thread fees/kasu.ts
Comment on lines +86 to +90
dailyRevenue.add(paymentToken, protocolFee, METRIC.PERFORMANCE_FEES);
dailyRevenue.add(paymentToken, ecosystemFee, "Ecosystem fees");
dailyProtocolRevenue.add(paymentToken, protocolFee, METRIC.PERFORMANCE_FEES);
dailyHoldersRevenue.add(paymentToken, ecosystemFee, "Ecosystem fees");
dailySupplySideRevenue.add(paymentToken, supplySide, METRIC.BORROW_INTEREST);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

Make the split labels and methodology destination-specific.

dailyRevenue includes both the protocol-receiver leg and the rKSU-holder leg, but methodology.Revenue still describes protocol-only revenue and "Ecosystem fees" is too generic. Once Line 98 returns the dedicated protocol accumulator, ProtocolRevenue: Same as Revenue will also stop being true. Please rename the split buckets explicitly—e.g. Performance Fees To Protocol / Performance Fees To rKSU Holders for revenue, Borrow Interest To Lenders for supply side, and Token Locker Distributions for holders—and mirror those exact labels in breakdownMethodology.

As per coding guidelines, use source and destination labels for dailyRevenue/dailySupplySideRevenue, use distribution type labels for dailyHoldersRevenue, and avoid generic labels like Fees or Other.

Also applies to: 107-110, 131-147

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@fees/kasu.ts` around lines 86 - 90, The revenue split labels are too
generic—update all invocations of dailyRevenue.add, dailyProtocolRevenue.add,
dailyHoldersRevenue.add and dailySupplySideRevenue.add to use explicit
source→destination labels (e.g. "Performance Fees To Protocol", "Performance
Fees To rKSU Holders"), use distribution-type labels for holder buckets (e.g.
"Token Locker Distributions"), and source→destination for supply-side (e.g.
"Borrow Interest To Lenders"); then update the corresponding entries in
breakdownMethodology so the exact same labels are used for each bucket (ensure
the protocol-only accumulator still returns the dedicated protocol label).
Ensure every occurrence mentioned in the diff blocks (the revenue,
protocolRevenue, holdersRevenue and supplySideRevenue adds and their matching
breakdownMethodology entries) is renamed accordingly and no generic labels like
"Ecosystem fees" or "Fees" remain.

@github-actions
Copy link
Copy Markdown

The kasu.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees kasu.ts

🦙 Running KASU.TS adapter 🦙
---------------------------------------------------
Start Date:	Mon, 13 Apr 2026 17:00:00 GMT
End Date:	Tue, 14 Apr 2026 17:00:00 GMT
---------------------------------------------------

Slice 0:
Start Date:	Mon, 13 Apr 2026 17:00:00 GMT
End Date:	Mon, 13 Apr 2026 18:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 1:
Start Date:	Mon, 13 Apr 2026 18:00:00 GMT
End Date:	Mon, 13 Apr 2026 19:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 2:
Start Date:	Mon, 13 Apr 2026 19:00:00 GMT
End Date:	Mon, 13 Apr 2026 20:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 3:
Start Date:	Mon, 13 Apr 2026 20:00:00 GMT
End Date:	Mon, 13 Apr 2026 21:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 4:
Start Date:	Mon, 13 Apr 2026 21:00:00 GMT
End Date:	Mon, 13 Apr 2026 22:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 5:
Start Date:	Mon, 13 Apr 2026 22:00:00 GMT
End Date:	Mon, 13 Apr 2026 23:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 6:
Start Date:	Mon, 13 Apr 2026 23:00:00 GMT
End Date:	Tue, 14 Apr 2026 00:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 7:
Start Date:	Tue, 14 Apr 2026 00:00:00 GMT
End Date:	Tue, 14 Apr 2026 01:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 8:
Start Date:	Tue, 14 Apr 2026 01:00:00 GMT
End Date:	Tue, 14 Apr 2026 02:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 9:
Start Date:	Tue, 14 Apr 2026 02:00:00 GMT
End Date:	Tue, 14 Apr 2026 03:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 10:
Start Date:	Tue, 14 Apr 2026 03:00:00 GMT
End Date:	Tue, 14 Apr 2026 04:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 11:
Start Date:	Tue, 14 Apr 2026 04:00:00 GMT
End Date:	Tue, 14 Apr 2026 05:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 12:
Start Date:	Tue, 14 Apr 2026 05:00:00 GMT
End Date:	Tue, 14 Apr 2026 06:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 13:
Start Date:	Tue, 14 Apr 2026 06:00:00 GMT
End Date:	Tue, 14 Apr 2026 07:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 14:
Start Date:	Tue, 14 Apr 2026 07:00:00 GMT
End Date:	Tue, 14 Apr 2026 08:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 15:
Start Date:	Tue, 14 Apr 2026 08:00:00 GMT
End Date:	Tue, 14 Apr 2026 09:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 16:
Start Date:	Tue, 14 Apr 2026 09:00:00 GMT
End Date:	Tue, 14 Apr 2026 10:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 17:
Start Date:	Tue, 14 Apr 2026 10:00:00 GMT
End Date:	Tue, 14 Apr 2026 11:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 18:
Start Date:	Tue, 14 Apr 2026 11:00:00 GMT
End Date:	Tue, 14 Apr 2026 12:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 19:
Start Date:	Tue, 14 Apr 2026 12:00:00 GMT
End Date:	Tue, 14 Apr 2026 13:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 20:
Start Date:	Tue, 14 Apr 2026 13:00:00 GMT
End Date:	Tue, 14 Apr 2026 14:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 21:
Start Date:	Tue, 14 Apr 2026 14:00:00 GMT
End Date:	Tue, 14 Apr 2026 15:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 22:
Start Date:	Tue, 14 Apr 2026 15:00:00 GMT
End Date:	Tue, 14 Apr 2026 16:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 23:
Start Date:	Tue, 14 Apr 2026 16:00:00 GMT
End Date:	Tue, 14 Apr 2026 17:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           


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

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue
---           | ---        | ---             | ---           | ---                    | ---                   | ---                      
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     

…plit labels

- dailyFees = gross borrower interest (totalFee + supplySide) per DefiLlama
  convention, so dailyRevenue = dailyFees - dailySupplySideRevenue.
- Return dedicated dailyProtocolRevenue accumulator instead of aliasing to
  dailyRevenue; methodology entries now truly distinct.
- Rename generic bucket labels to explicit source→destination labels:
  "Performance Fees To Protocol", "Performance Fees To rKSU Holders",
  "Borrow Interest To Lenders", "Token Locker Distributions".
- Mirror the new labels in breakdownMethodology and methodology docstrings.
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
fees/kasu.ts (1)

86-95: ⚠️ Potential issue | 🟠 Major

Record gross borrower interest in dailyFees/dailyUserFees.

Line 90 only books the captured performance fee, while Lines 91-95 also book the lender leg separately. That leaves dailyFees/dailyUserFees smaller than dailyRevenue + dailySupplySideRevenue, so this adapter no longer follows the repo’s required income-statement mapping. Use grossInterest = totalFee + supplySide for the fee buckets, and update the Fees methodology/breakdown to a borrow-interest label.

Suggested fix
-      dailyFees.add(paymentToken, totalFee, METRIC.PERFORMANCE_FEES);
+      const grossInterest = totalFee + supplySide;
+      dailyFees.add(paymentToken, grossInterest, METRIC.BORROW_INTEREST);
-  Fees: "Performance fees collected by the protocol from lending pool interest accruals (a percentage of gross borrower interest).",
+  Fees: "Gross borrower interest accrued by the lending pools before the lender/protocol split.",
   UserFees: "Same as Fees.",
     Fees: {
-      [METRIC.PERFORMANCE_FEES]: "Performance fees collected by the protocol from borrower interest",
+      [METRIC.BORROW_INTEREST]: "Gross borrower interest accrued before the lender/protocol split",
     },

As per coding guidelines, "dailyFees dimension in fees adapters - maps to Gross Protocol Revenue and should include all fees from all sources" and "dailyRevenue dimension in fees adapters - maps to Gross Profit and should equal dailyFees - dailySupplySideRevenue (what protocol keeps)".

Also applies to: 99-102, 109-115, 136-139

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@fees/kasu.ts` around lines 86 - 95, The fee recording currently adds only the
captured performance fee to dailyFees/dailyUserFees, causing dailyFees to be
smaller than dailyRevenue + dailySupplySideRevenue; compute grossInterest =
totalFee + supplySide (where supplySide is computed from performanceFee,
totalFee) and use grossInterest when calling dailyFees.add (and
dailyUserFees.add if present) so that dailyFees maps to Gross Protocol Revenue,
while keeping dailyRevenue.add(paymentToken, protocolFee, ...) and
dailySupplySideRevenue.add(paymentToken, supplySide, ...) unchanged; also update
the Fees methodology/breakdown label to "borrow-interest" to reflect the gross
borrower interest mapping.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@fees/kasu.ts`:
- Around line 86-95: The fee recording currently adds only the captured
performance fee to dailyFees/dailyUserFees, causing dailyFees to be smaller than
dailyRevenue + dailySupplySideRevenue; compute grossInterest = totalFee +
supplySide (where supplySide is computed from performanceFee, totalFee) and use
grossInterest when calling dailyFees.add (and dailyUserFees.add if present) so
that dailyFees maps to Gross Protocol Revenue, while keeping
dailyRevenue.add(paymentToken, protocolFee, ...) and
dailySupplySideRevenue.add(paymentToken, supplySide, ...) unchanged; also update
the Fees methodology/breakdown label to "borrow-interest" to reflect the gross
borrower interest mapping.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7ccb9bef-25dd-48c0-9d22-0f54c32f0709

📥 Commits

Reviewing files that changed from the base of the PR and between d550518 and 6334981.

📒 Files selected for processing (1)
  • fees/kasu.ts

@github-actions
Copy link
Copy Markdown

The kasu.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees kasu.ts

🦙 Running KASU.TS adapter 🦙
---------------------------------------------------
Start Date:	Tue, 14 Apr 2026 04:00:00 GMT
End Date:	Wed, 15 Apr 2026 04:00:00 GMT
---------------------------------------------------

Slice 0:
Start Date:	Tue, 14 Apr 2026 04:00:00 GMT
End Date:	Tue, 14 Apr 2026 05:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 1:
Start Date:	Tue, 14 Apr 2026 05:00:00 GMT
End Date:	Tue, 14 Apr 2026 06:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 2:
Start Date:	Tue, 14 Apr 2026 06:00:00 GMT
End Date:	Tue, 14 Apr 2026 07:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 3:
Start Date:	Tue, 14 Apr 2026 07:00:00 GMT
End Date:	Tue, 14 Apr 2026 08:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 4:
Start Date:	Tue, 14 Apr 2026 08:00:00 GMT
End Date:	Tue, 14 Apr 2026 09:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 5:
Start Date:	Tue, 14 Apr 2026 09:00:00 GMT
End Date:	Tue, 14 Apr 2026 10:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 6:
Start Date:	Tue, 14 Apr 2026 10:00:00 GMT
End Date:	Tue, 14 Apr 2026 11:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 7:
Start Date:	Tue, 14 Apr 2026 11:00:00 GMT
End Date:	Tue, 14 Apr 2026 12:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 8:
Start Date:	Tue, 14 Apr 2026 12:00:00 GMT
End Date:	Tue, 14 Apr 2026 13:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 9:
Start Date:	Tue, 14 Apr 2026 13:00:00 GMT
End Date:	Tue, 14 Apr 2026 14:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 10:
Start Date:	Tue, 14 Apr 2026 14:00:00 GMT
End Date:	Tue, 14 Apr 2026 15:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 11:
Start Date:	Tue, 14 Apr 2026 15:00:00 GMT
End Date:	Tue, 14 Apr 2026 16:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 12:
Start Date:	Tue, 14 Apr 2026 16:00:00 GMT
End Date:	Tue, 14 Apr 2026 17:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 13:
Start Date:	Tue, 14 Apr 2026 17:00:00 GMT
End Date:	Tue, 14 Apr 2026 18:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 14:
Start Date:	Tue, 14 Apr 2026 18:00:00 GMT
End Date:	Tue, 14 Apr 2026 19:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 15:
Start Date:	Tue, 14 Apr 2026 19:00:00 GMT
End Date:	Tue, 14 Apr 2026 20:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 16:
Start Date:	Tue, 14 Apr 2026 20:00:00 GMT
End Date:	Tue, 14 Apr 2026 21:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 17:
Start Date:	Tue, 14 Apr 2026 21:00:00 GMT
End Date:	Tue, 14 Apr 2026 22:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 18:
Start Date:	Tue, 14 Apr 2026 22:00:00 GMT
End Date:	Tue, 14 Apr 2026 23:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 19:
Start Date:	Tue, 14 Apr 2026 23:00:00 GMT
End Date:	Wed, 15 Apr 2026 00:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 20:
Start Date:	Wed, 15 Apr 2026 00:00:00 GMT
End Date:	Wed, 15 Apr 2026 01:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 21:
Start Date:	Wed, 15 Apr 2026 01:00:00 GMT
End Date:	Wed, 15 Apr 2026 02:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 22:
Start Date:	Wed, 15 Apr 2026 02:00:00 GMT
End Date:	Wed, 15 Apr 2026 03:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 23:
Start Date:	Wed, 15 Apr 2026 03:00:00 GMT
End Date:	Wed, 15 Apr 2026 04:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           


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

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue
---           | ---        | ---             | ---           | ---                    | ---                   | ---                      
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     

1 similar comment
@github-actions
Copy link
Copy Markdown

The kasu.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees kasu.ts

🦙 Running KASU.TS adapter 🦙
---------------------------------------------------
Start Date:	Tue, 14 Apr 2026 04:00:00 GMT
End Date:	Wed, 15 Apr 2026 04:00:00 GMT
---------------------------------------------------

Slice 0:
Start Date:	Tue, 14 Apr 2026 04:00:00 GMT
End Date:	Tue, 14 Apr 2026 05:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 1:
Start Date:	Tue, 14 Apr 2026 05:00:00 GMT
End Date:	Tue, 14 Apr 2026 06:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 2:
Start Date:	Tue, 14 Apr 2026 06:00:00 GMT
End Date:	Tue, 14 Apr 2026 07:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 3:
Start Date:	Tue, 14 Apr 2026 07:00:00 GMT
End Date:	Tue, 14 Apr 2026 08:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 4:
Start Date:	Tue, 14 Apr 2026 08:00:00 GMT
End Date:	Tue, 14 Apr 2026 09:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 5:
Start Date:	Tue, 14 Apr 2026 09:00:00 GMT
End Date:	Tue, 14 Apr 2026 10:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 6:
Start Date:	Tue, 14 Apr 2026 10:00:00 GMT
End Date:	Tue, 14 Apr 2026 11:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 7:
Start Date:	Tue, 14 Apr 2026 11:00:00 GMT
End Date:	Tue, 14 Apr 2026 12:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 8:
Start Date:	Tue, 14 Apr 2026 12:00:00 GMT
End Date:	Tue, 14 Apr 2026 13:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 9:
Start Date:	Tue, 14 Apr 2026 13:00:00 GMT
End Date:	Tue, 14 Apr 2026 14:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 10:
Start Date:	Tue, 14 Apr 2026 14:00:00 GMT
End Date:	Tue, 14 Apr 2026 15:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 11:
Start Date:	Tue, 14 Apr 2026 15:00:00 GMT
End Date:	Tue, 14 Apr 2026 16:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 12:
Start Date:	Tue, 14 Apr 2026 16:00:00 GMT
End Date:	Tue, 14 Apr 2026 17:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 13:
Start Date:	Tue, 14 Apr 2026 17:00:00 GMT
End Date:	Tue, 14 Apr 2026 18:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 14:
Start Date:	Tue, 14 Apr 2026 18:00:00 GMT
End Date:	Tue, 14 Apr 2026 19:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 15:
Start Date:	Tue, 14 Apr 2026 19:00:00 GMT
End Date:	Tue, 14 Apr 2026 20:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 16:
Start Date:	Tue, 14 Apr 2026 20:00:00 GMT
End Date:	Tue, 14 Apr 2026 21:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 17:
Start Date:	Tue, 14 Apr 2026 21:00:00 GMT
End Date:	Tue, 14 Apr 2026 22:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 18:
Start Date:	Tue, 14 Apr 2026 22:00:00 GMT
End Date:	Tue, 14 Apr 2026 23:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 19:
Start Date:	Tue, 14 Apr 2026 23:00:00 GMT
End Date:	Wed, 15 Apr 2026 00:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 20:
Start Date:	Wed, 15 Apr 2026 00:00:00 GMT
End Date:	Wed, 15 Apr 2026 01:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 21:
Start Date:	Wed, 15 Apr 2026 01:00:00 GMT
End Date:	Wed, 15 Apr 2026 02:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 22:
Start Date:	Wed, 15 Apr 2026 02:00:00 GMT
End Date:	Wed, 15 Apr 2026 03:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 23:
Start Date:	Wed, 15 Apr 2026 03:00:00 GMT
End Date:	Wed, 15 Apr 2026 04:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           


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

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue
---           | ---        | ---             | ---           | ---                    | ---                   | ---                      
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     

@kivanov82
Copy link
Copy Markdown
Contributor Author

Quick note on the CI bot output showing all-zero slices:

FeesEmitted on Kasu only fires at pool settlement, not continuously. On Base there have been ~2 events in the last ~4.6 days (last one at Apr 12 23:50 UTC, block 44624233). The CI's default 24h test window (Apr 13 17:00 → Apr 14 17:00 UTC) genuinely contained zero events — so zero is the correct output for that window.

Running the adapter locally against a window that includes a real event (e.g. npm test -- fees kasu.ts 2026-04-13) produces:

base | Daily fees: 4.26k | Daily revenue: 4.26k | Daily supply side: 38.37k

which matches on-chain reality.

Happy to remove pullHourly: true (upstream added it in #5995) if it makes the test output less noisy, but that wouldn't change the underlying "zero on days without settlement" behaviour — it's just how Kasu's fee-emission cadence works.

@bheluga bheluga self-assigned this Apr 15, 2026
Copy link
Copy Markdown
Member

@bheluga bheluga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kivanov82 thanks for the PR.
We do consider interests under fees.
so fees = revenue + supplySideRevenue.
You can refer https://docs.llama.fi/list-your-project/other-dashboards and https://docs.llama.fi/analysts/data-definitions for more information

Per maintainer feedback: "We do consider interests under fees, so fees = revenue + supplySideRevenue."
Restores invariant dailyFees == dailyRevenue + dailySupplySideRevenue and
switches the Fees breakdown label to METRIC.BORROW_INTEREST.
@kivanov82
Copy link
Copy Markdown
Contributor Author

Thanks @bheluga — updated. dailyFees now reports gross borrower interest (totalFee + supplySide), restoring dailyFees == dailyRevenue + dailySupplySideRevenue. Fees breakdown now uses METRIC.BORROW_INTEREST.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/kasu.ts`:
- Around line 68-88: The code currently reads a single current performanceFee
into the variable performanceFee and reuses it for all FeesEmittedEvent logs;
update the logic in the logs processing loop (the for (const log of logs) block
that computes supplySide/grossInterest) to fetch the performance fee at each
log's block instead of the one-time lookup: for each log, call options.api.call
(or query fee-change events) with the log.blockNumber/blockTag to retrieve the
historical performanceFee (the same ABI 'uint256:performanceFee' used
originally) and use that per-log value when computing supplySide and
grossInterest; alternatively, prefetch and apply fee-change events to map block
ranges to fees and pick the correct fee for each log.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: d1e67865-4c28-4c4f-b4dc-05061cc27d06

📥 Commits

Reviewing files that changed from the base of the PR and between 6334981 and 2067a5b.

📒 Files selected for processing (1)
  • fees/kasu.ts

Comment thread fees/kasu.ts Outdated
@github-actions
Copy link
Copy Markdown

The kasu.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees kasu.ts

🦙 Running KASU.TS adapter 🦙
---------------------------------------------------
Start Date:	Tue, 14 Apr 2026 11:00:00 GMT
End Date:	Wed, 15 Apr 2026 11:00:00 GMT
---------------------------------------------------

Slice 0:
Start Date:	Tue, 14 Apr 2026 11:00:00 GMT
End Date:	Tue, 14 Apr 2026 12:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 1:
Start Date:	Tue, 14 Apr 2026 12:00:00 GMT
End Date:	Tue, 14 Apr 2026 13:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 2:
Start Date:	Tue, 14 Apr 2026 13:00:00 GMT
End Date:	Tue, 14 Apr 2026 14:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 3:
Start Date:	Tue, 14 Apr 2026 14:00:00 GMT
End Date:	Tue, 14 Apr 2026 15:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 4:
Start Date:	Tue, 14 Apr 2026 15:00:00 GMT
End Date:	Tue, 14 Apr 2026 16:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 5:
Start Date:	Tue, 14 Apr 2026 16:00:00 GMT
End Date:	Tue, 14 Apr 2026 17:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 6:
Start Date:	Tue, 14 Apr 2026 17:00:00 GMT
End Date:	Tue, 14 Apr 2026 18:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 7:
Start Date:	Tue, 14 Apr 2026 18:00:00 GMT
End Date:	Tue, 14 Apr 2026 19:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 8:
Start Date:	Tue, 14 Apr 2026 19:00:00 GMT
End Date:	Tue, 14 Apr 2026 20:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 9:
Start Date:	Tue, 14 Apr 2026 20:00:00 GMT
End Date:	Tue, 14 Apr 2026 21:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 10:
Start Date:	Tue, 14 Apr 2026 21:00:00 GMT
End Date:	Tue, 14 Apr 2026 22:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 11:
Start Date:	Tue, 14 Apr 2026 22:00:00 GMT
End Date:	Tue, 14 Apr 2026 23:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 12:
Start Date:	Tue, 14 Apr 2026 23:00:00 GMT
End Date:	Wed, 15 Apr 2026 00:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 13:
Start Date:	Wed, 15 Apr 2026 00:00:00 GMT
End Date:	Wed, 15 Apr 2026 01:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 14:
Start Date:	Wed, 15 Apr 2026 01:00:00 GMT
End Date:	Wed, 15 Apr 2026 02:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 15:
Start Date:	Wed, 15 Apr 2026 02:00:00 GMT
End Date:	Wed, 15 Apr 2026 03:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 16:
Start Date:	Wed, 15 Apr 2026 03:00:00 GMT
End Date:	Wed, 15 Apr 2026 04:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 17:
Start Date:	Wed, 15 Apr 2026 04:00:00 GMT
End Date:	Wed, 15 Apr 2026 05:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 18:
Start Date:	Wed, 15 Apr 2026 05:00:00 GMT
End Date:	Wed, 15 Apr 2026 06:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 19:
Start Date:	Wed, 15 Apr 2026 06:00:00 GMT
End Date:	Wed, 15 Apr 2026 07:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 20:
Start Date:	Wed, 15 Apr 2026 07:00:00 GMT
End Date:	Wed, 15 Apr 2026 08:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 21:
Start Date:	Wed, 15 Apr 2026 08:00:00 GMT
End Date:	Wed, 15 Apr 2026 09:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 22:
Start Date:	Wed, 15 Apr 2026 09:00:00 GMT
End Date:	Wed, 15 Apr 2026 10:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           

Slice 23:
Start Date:	Wed, 15 Apr 2026 10:00:00 GMT
End Date:	Wed, 15 Apr 2026 11:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      |           


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

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue
---           | ---        | ---             | ---           | ---                    | ---                   | ---                      
base          | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
Aggregate     | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     

…h spread

Switches the fee source from FeeManager.FeesEmitted (borrower-repayment-driven,
irregular) to LendingPool.FeesOwedIncreased (emitted per epoch at clearing).
Pools are discovered via PoolCreated on the LendingPoolFactory with
cacheInCloud; events are fetched from block(fromTimestamp - 3 epochs) to handle
clearing delays. Each event's feesAmount is spread evenly across its epoch
(1 week) and only the overlap with the adapter's fetch window is attributed.

Resolves the DefiLlama annualization issue where a single weekly settlement
spike inflated the 365x extrapolation. Daily values are now smooth and the
annualized number reflects actual protocol economics.

Also splits the performance fee into protocol vs ecosystem legs using
SystemVariables.feeRates() instead of relying on FeeManager's post-hoc split
(which does not exist in FeesOwedIncreased).
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 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/kasu.ts`:
- Around line 141-145: The current split (ecosystemFee = allocatedFee *
ecosystemFeeRate / FULL_PERCENT; protocolFee = allocatedFee - ecosystemFee) can
misattribute revenue when no rKSU is eligible and FeeManager redirects ecosystem
fees to protocol; update the logic in fees/kasu.ts around
ecosystemFee/protocolFee to detect Kasu's on-chain rKSU-eligibility indicator or
FeeManager redirection event (use the contract call or event log available in
your adapter) and, when redirection is active, set ecosystemFee = 0 and
protocolFee = allocatedFee, otherwise keep the existing split based on
feeRates(); if no reliable on-chain signal exists, add a clear comment and
update the adapter’s documentation/metrics code that dailyHoldersRevenue and
dailyProtocolRevenue may be skewed in epochs where redirection occurs.
- Line 178: The current human-readable description for the Revenue entry is
misleading: update the Revenue string (the descriptive text assigned alongside
the Revenue key) to explicitly state that dailyRevenue includes both the
protocol-receiver share and the rKSU-holder share (i.e., performance fees
retained by the protocol AND rKSU holders), and ensure any mentions of
dailyRevenue elsewhere in fees/kasu.ts use the same clarified wording so the
description matches the actual calculation in dailyRevenue.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 411924b4-098f-4c85-aa31-38fdd07a7410

📥 Commits

Reviewing files that changed from the base of the PR and between 2067a5b and 2ec9e07.

📒 Files selected for processing (1)
  • fees/kasu.ts

Comment thread fees/kasu.ts
Comment on lines +141 to +145
// Split performance fee into ecosystem / protocol per SystemVariables.feeRates().
// Note: FeeManager redirects ecosystem fees to the protocol when no rKSU is
// eligible. That edge-case is not reflected here.
const ecosystemFee = allocatedFee * ecosystemFeeRate / FULL_PERCENT;
const protocolFee = allocatedFee - ecosystemFee;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Ecosystem fee edge-case can misattribute revenue.

The comment on lines 142-143 acknowledges that when no rKSU is eligible, the FeeManager redirects ecosystem fees to the protocol. However, this adapter always splits based on the static feeRates(), so on those epochs dailyHoldersRevenue will be overstated and dailyProtocolRevenue understated.

If Kasu has an on-chain indicator for rKSU eligibility or if this redirection is logged separately, consider conditionally adjusting the split. Otherwise, document this known discrepancy in the methodology.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@fees/kasu.ts` around lines 141 - 145, The current split (ecosystemFee =
allocatedFee * ecosystemFeeRate / FULL_PERCENT; protocolFee = allocatedFee -
ecosystemFee) can misattribute revenue when no rKSU is eligible and FeeManager
redirects ecosystem fees to protocol; update the logic in fees/kasu.ts around
ecosystemFee/protocolFee to detect Kasu's on-chain rKSU-eligibility indicator or
FeeManager redirection event (use the contract call or event log available in
your adapter) and, when redirection is active, set ecosystemFee = 0 and
protocolFee = allocatedFee, otherwise keep the existing split based on
feeRates(); if no reliable on-chain signal exists, add a clear comment and
update the adapter’s documentation/metrics code that dailyHoldersRevenue and
dailyProtocolRevenue may be skewed in epochs where redirection occurs.

Comment thread fees/kasu.ts Outdated
@github-actions
Copy link
Copy Markdown

The kasu.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees kasu.ts

🦙 Running KASU.TS adapter 🦙
---------------------------------------------------
Start Date:	Wed, 15 Apr 2026 07:00:00 GMT
End Date:	Thu, 16 Apr 2026 07:00:00 GMT
---------------------------------------------------

Slice 0:
Start Date:	Wed, 15 Apr 2026 07:00:00 GMT
End Date:	Wed, 15 Apr 2026 08:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 1:
Start Date:	Wed, 15 Apr 2026 08:00:00 GMT
End Date:	Wed, 15 Apr 2026 09:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 2:
Start Date:	Wed, 15 Apr 2026 09:00:00 GMT
End Date:	Wed, 15 Apr 2026 10:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 3:
Start Date:	Wed, 15 Apr 2026 10:00:00 GMT
End Date:	Wed, 15 Apr 2026 11:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 4:
Start Date:	Wed, 15 Apr 2026 11:00:00 GMT
End Date:	Wed, 15 Apr 2026 12:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 5:
Start Date:	Wed, 15 Apr 2026 12:00:00 GMT
End Date:	Wed, 15 Apr 2026 13:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 6:
Start Date:	Wed, 15 Apr 2026 13:00:00 GMT
End Date:	Wed, 15 Apr 2026 14:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 7:
Start Date:	Wed, 15 Apr 2026 14:00:00 GMT
End Date:	Wed, 15 Apr 2026 15:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 8:
Start Date:	Wed, 15 Apr 2026 15:00:00 GMT
End Date:	Wed, 15 Apr 2026 16:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 9:
Start Date:	Wed, 15 Apr 2026 16:00:00 GMT
End Date:	Wed, 15 Apr 2026 17:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 10:
Start Date:	Wed, 15 Apr 2026 17:00:00 GMT
End Date:	Wed, 15 Apr 2026 18:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 11:
Start Date:	Wed, 15 Apr 2026 18:00:00 GMT
End Date:	Wed, 15 Apr 2026 19:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 12:
Start Date:	Wed, 15 Apr 2026 19:00:00 GMT
End Date:	Wed, 15 Apr 2026 20:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 13:
Start Date:	Wed, 15 Apr 2026 20:00:00 GMT
End Date:	Wed, 15 Apr 2026 21:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 14:
Start Date:	Wed, 15 Apr 2026 21:00:00 GMT
End Date:	Wed, 15 Apr 2026 22:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 15:
Start Date:	Wed, 15 Apr 2026 22:00:00 GMT
End Date:	Wed, 15 Apr 2026 23:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 16:
Start Date:	Wed, 15 Apr 2026 23:00:00 GMT
End Date:	Thu, 16 Apr 2026 00:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 17:
Start Date:	Thu, 16 Apr 2026 00:00:00 GMT
End Date:	Thu, 16 Apr 2026 01:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 18:
Start Date:	Thu, 16 Apr 2026 01:00:00 GMT
End Date:	Thu, 16 Apr 2026 02:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 19:
Start Date:	Thu, 16 Apr 2026 02:00:00 GMT
End Date:	Thu, 16 Apr 2026 03:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 20:
Start Date:	Thu, 16 Apr 2026 03:00:00 GMT
End Date:	Thu, 16 Apr 2026 04:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 21:
Start Date:	Thu, 16 Apr 2026 04:00:00 GMT
End Date:	Thu, 16 Apr 2026 05:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 22:
Start Date:	Thu, 16 Apr 2026 05:00:00 GMT
End Date:	Thu, 16 Apr 2026 06:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 23:
Start Date:	Thu, 16 Apr 2026 06:00:00 GMT
End Date:	Thu, 16 Apr 2026 07:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     |           


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

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue
---           | ---        | ---             | ---           | ---                    | ---                   | ---                      
base          | 2.40 k     | 2.40 k          | 240.00        | 240.00                 | 0.00                  | 2.16 k                   
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
Aggregate     | 2.40 k     | 2.40 k          | 240.00        | 240.00                 | 0.00                  | 2.16 k                   

- Read performanceFee and feeRates at each log's blockNumber via cached
  PerformanceFeeUpdated / FeeRatesUpdated event histories, so backfills with
  rate changes are priced correctly.
- Revenue methodology: clarify that dailyRevenue includes both protocol and
  rKSU-holder shares (neither paid to external suppliers).
- HoldersRevenue methodology: document that FeeManager's runtime redirection
  when no rKSU is eligible is not reflected in the split.
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 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/kasu.ts`:
- Around line 123-125: The FeesOwedIncreased discovery window is being capped to
options.toApi.block (see the toBlock variable and the getBlock call that sets
lookbackFromBlock), which causes backfills inside an epoch to miss later
settlement logs; change the search horizon used by the FeesOwedIncreased query
to extend past options.toApi.block to the end of the settlement horizon plus the
existing delay buffer (i.e., compute an extendedToBlock using the settlement end
+ delay and use that for event discovery), but keep using the existing
epoch-overlap logic to attribute and slice results to the originally requested
from/to window so only the requested slice is returned. Ensure references to
FeesOwedIncreased, lookbackFromBlock, toBlock/getBlock, and the epoch
attribution logic are updated to use extendedToBlock for discovery while leaving
attribution unchanged.
- Around line 126-159: Seed the perfFeeHistory and ecosystemRateHistory with a
snapshot at the start of the queried range instead of using today's values as
the fallback: call options.api.call for performanceFee and feeRates with
blockTag set to lookbackFromBlock (or factoryStartBlock) to obtain the
start-of-range values, prepend { blockNumber: Number(lookbackFromBlock), value:
BigInt(...) } to perfFeeHistory and ecosystemRateHistory respectively, and keep
currentPerformanceFee/currentEcosystemRate only as an end-of-range snapshot used
when computing rateAtBlock for blocks >= toBlock.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 15c7e52e-d156-471e-9507-04ddd30b96f0

📥 Commits

Reviewing files that changed from the base of the PR and between 2ec9e07 and 2b5fbd8.

📒 Files selected for processing (1)
  • fees/kasu.ts

Comment thread fees/kasu.ts Outdated
Comment thread fees/kasu.ts
Comment on lines +126 to +159
const [currentPerformanceFee, currentFeeRates, perfFeeUpdateLogs, feeRatesUpdateLogs] = await Promise.all([
options.api.call({
target: systemVariables,
abi: 'uint256:performanceFee',
}).then(BigInt),
options.api.call({
target: systemVariables,
abi: 'function feeRates() view returns (uint256 ecosystemFeeRate, uint256 protocolFeeRate)',
}),
options.getLogs({
target: systemVariables,
eventAbi: PerformanceFeeUpdatedEvent,
fromBlock: factoryStartBlock,
toBlock,
cacheInCloud: true,
}),
options.getLogs({
target: systemVariables,
eventAbi: FeeRatesUpdatedEvent,
fromBlock: factoryStartBlock,
toBlock,
cacheInCloud: true,
}),
]);

const perfFeeHistory = perfFeeUpdateLogs
.map((log: any) => ({ blockNumber: Number(log.blockNumber), value: BigInt(log.performanceFee) }))
.sort((a: any, b: any) => a.blockNumber - b.blockNumber);
const ecosystemRateHistory = feeRatesUpdateLogs
.map((log: any) => ({ blockNumber: Number(log.blockNumber), value: BigInt(log.ecosystemFeeRate) }))
.sort((a: any, b: any) => a.blockNumber - b.blockNumber);

const currentEcosystemRate = BigInt(currentFeeRates.ecosystemFeeRate ?? currentFeeRates[0]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Seed the rate history with the state at the start of the queried range.

Using currentPerformanceFee / current feeRates() as the rateAtBlock() fallback misprices any FeesOwedIncreased log that lands before the first update event in perfFeeUpdateLogs or feeRatesUpdateLogs. Those older logs should inherit the rate active at lookbackFromBlock (or factoryStartBlock), not today’s value. Prepend a snapshot from the start of the queried range and treat the current reads as an end-of-range convenience only.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@fees/kasu.ts` around lines 126 - 159, Seed the perfFeeHistory and
ecosystemRateHistory with a snapshot at the start of the queried range instead
of using today's values as the fallback: call options.api.call for
performanceFee and feeRates with blockTag set to lookbackFromBlock (or
factoryStartBlock) to obtain the start-of-range values, prepend { blockNumber:
Number(lookbackFromBlock), value: BigInt(...) } to perfFeeHistory and
ecosystemRateHistory respectively, and keep
currentPerformanceFee/currentEcosystemRate only as an end-of-range snapshot used
when computing rateAtBlock for blocks >= toBlock.

@github-actions
Copy link
Copy Markdown

The kasu.ts adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees kasu.ts

🦙 Running KASU.TS adapter 🦙
---------------------------------------------------
Start Date:	Wed, 15 Apr 2026 09:00:00 GMT
End Date:	Thu, 16 Apr 2026 09:00:00 GMT
---------------------------------------------------

Slice 0:
Start Date:	Wed, 15 Apr 2026 09:00:00 GMT
End Date:	Wed, 15 Apr 2026 10:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 1:
Start Date:	Wed, 15 Apr 2026 10:00:00 GMT
End Date:	Wed, 15 Apr 2026 11:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 2:
Start Date:	Wed, 15 Apr 2026 11:00:00 GMT
End Date:	Wed, 15 Apr 2026 12:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 3:
Start Date:	Wed, 15 Apr 2026 12:00:00 GMT
End Date:	Wed, 15 Apr 2026 13:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 4:
Start Date:	Wed, 15 Apr 2026 13:00:00 GMT
End Date:	Wed, 15 Apr 2026 14:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 5:
Start Date:	Wed, 15 Apr 2026 14:00:00 GMT
End Date:	Wed, 15 Apr 2026 15:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 6:
Start Date:	Wed, 15 Apr 2026 15:00:00 GMT
End Date:	Wed, 15 Apr 2026 16:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 7:
Start Date:	Wed, 15 Apr 2026 16:00:00 GMT
End Date:	Wed, 15 Apr 2026 17:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 8:
Start Date:	Wed, 15 Apr 2026 17:00:00 GMT
End Date:	Wed, 15 Apr 2026 18:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 9:
Start Date:	Wed, 15 Apr 2026 18:00:00 GMT
End Date:	Wed, 15 Apr 2026 19:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 10:
Start Date:	Wed, 15 Apr 2026 19:00:00 GMT
End Date:	Wed, 15 Apr 2026 20:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 11:
Start Date:	Wed, 15 Apr 2026 20:00:00 GMT
End Date:	Wed, 15 Apr 2026 21:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 12:
Start Date:	Wed, 15 Apr 2026 21:00:00 GMT
End Date:	Wed, 15 Apr 2026 22:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 13:
Start Date:	Wed, 15 Apr 2026 22:00:00 GMT
End Date:	Wed, 15 Apr 2026 23:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 14:
Start Date:	Wed, 15 Apr 2026 23:00:00 GMT
End Date:	Thu, 16 Apr 2026 00:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 15:
Start Date:	Thu, 16 Apr 2026 00:00:00 GMT
End Date:	Thu, 16 Apr 2026 01:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 16:
Start Date:	Thu, 16 Apr 2026 01:00:00 GMT
End Date:	Thu, 16 Apr 2026 02:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 17:
Start Date:	Thu, 16 Apr 2026 02:00:00 GMT
End Date:	Thu, 16 Apr 2026 03:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 18:
Start Date:	Thu, 16 Apr 2026 03:00:00 GMT
End Date:	Thu, 16 Apr 2026 04:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 19:
Start Date:	Thu, 16 Apr 2026 04:00:00 GMT
End Date:	Thu, 16 Apr 2026 05:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 20:
Start Date:	Thu, 16 Apr 2026 05:00:00 GMT
End Date:	Thu, 16 Apr 2026 06:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 100.00     | 100.00          | 10.00         | 10.00                  | 0.00                  | 90.00                     |           

Slice 21:
Start Date:	Thu, 16 Apr 2026 06:00:00 GMT
End Date:	Thu, 16 Apr 2026 07:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     |           

Slice 22:
Start Date:	Thu, 16 Apr 2026 07:00:00 GMT
End Date:	Thu, 16 Apr 2026 08:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     |           

Slice 23:
Start Date:	Thu, 16 Apr 2026 08:00:00 GMT
End Date:	Thu, 16 Apr 2026 09:00:00 GMT
---------------------------------------------------

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue | Start Time
---           | ---        | ---             | ---           | ---                    | ---                   | ---                       | ---       
base          | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     | 6/6/2024  
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 1/10/2025 
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                      | 6/2/2025  
Aggregate     | 98.00      | 98.00           | 10.00         | 10.00                  | 0.00                  | 88.00                     |           


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

chain         | Daily fees | Daily user fees | Daily revenue | Daily protocol revenue | Daily holders revenue | Daily supply side revenue
---           | ---        | ---             | ---           | ---                    | ---                   | ---                      
base          | 2.39 k     | 2.39 k          | 240.00        | 240.00                 | 0.00                  | 2.15 k                   
plume_mainnet | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
xdc           | 0.00       | 0.00            | 0.00          | 0.00                   | 0.00                  | 0.00                     
Aggregate     | 2.39 k     | 2.39 k          | 240.00        | 240.00                 | 0.00                  | 2.15 k                   

@bheluga bheluga merged commit c73c8c7 into DefiLlama:master Apr 16, 2026
2 of 3 checks passed
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.

3 participants