Skip to content

Fix GameClub fees adapter - track all USDT received by FeeCollector#6341

Open
ruddhks552 wants to merge 1 commit intoDefiLlama:masterfrom
ruddhks552:ruddhks552-patch-2
Open

Fix GameClub fees adapter - track all USDT received by FeeCollector#6341
ruddhks552 wants to merge 1 commit intoDefiLlama:masterfrom
ruddhks552:ruddhks552-patch-2

Conversation

@ruddhks552
Copy link
Copy Markdown
Contributor

…track all USDT to FeeCollector

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a tvl adapter please submit the PR here.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  3. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data4.ts, you can edit it there and put up a PR
  4. Do not edit/push package.json/package-lock.json file as part of your changes
  5. No need to go to our discord/other channel and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama):
Twitter Link:
List of audit links if any:
Website Link:
Logo (High resolution, will be shown with rounded borders):
Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama):
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
Github org/user (Optional, if your code is open source, we can track activity):
Does this project have a referral program?

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 6, 2026

Summary by CodeRabbit

  • Bug Fixes
    • Optimized fee collection process for improved efficiency.

Walkthrough

Removed the MainContract constant and its fromAdddresses filter from the addTokensReceived call in the GameClub fee tracking module. The function now invokes addTokensReceived with only targets and token parameters, while maintaining the same return fields with updated formatting.

Changes

Cohort / File(s) Summary
Fee Collection Filter Adjustment
fees/gameclub.ts
Removed MainContract constant and fromAdddesses: [MainContract] filter from addTokensReceived call. Function now uses only targets: [FeeCollector] and token: ADDRESSES.bsc.USDT parameters while maintaining return field structure with formatting updates.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

fees, bug-fix

🚥 Pre-merge checks | ✅ 4 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Breakdown Methodology Check ⚠️ Warning The fees/gameclub.ts adapter does not export a breakdownMethodology object documenting all labels used in .add() calls. Add and export a breakdownMethodology object that documents all fee labels (e.g., USDT) used in the adapter's .add() calls.
Description check ❓ Inconclusive The description includes the template but lacks specific details about the fix; no form fields are completed, and the rationale for removing MainContract filter is not explained. Replace the generic template with a brief explanation of why MainContract was removed and how the new approach improves fee tracking accuracy.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is descriptive and clearly summarizes the main change: fixing the GameClub fees adapter to track all USDT received by FeeCollector, which aligns with the actual code changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Income Statement Compliance ✅ Passed The GameClub adapter correctly implements income statement structure by returning dailyFees and setting dailyRevenue = dailyFees, implicitly assuming dailySupplySideRevenue = 0, which satisfies the relationship dailyRevenue = dailyFees - dailySupplySideRevenue.
Version 2 Required ✅ Passed The gameclub.ts adapter correctly exports version 2 with appropriate FetchResultV2 return type and pullHourly configuration.

✏️ 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.

@llamabutler
Copy link
Copy Markdown

The gameclub.ts adapter exports:

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

🦙 Running GAMECLUB.TS adapter 🦙
---------------------------------------------------
Start Date:	Sun, 05 Apr 2026 02:00:00 GMT
End Date:	Mon, 06 Apr 2026 02:00:00 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 0:
Start Date:	Sun, 05 Apr 2026 02:00:00 GMT
End Date:	Sun, 05 Apr 2026 03:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775357999 (2026-04-05T02:59:59.000Z)


Slice 1:
Start Date:	Sun, 05 Apr 2026 03:00:00 GMT
End Date:	Sun, 05 Apr 2026 04:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775361599 (2026-04-05T03:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 2:
Start Date:	Sun, 05 Apr 2026 04:00:00 GMT
End Date:	Sun, 05 Apr 2026 05:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775365199 (2026-04-05T04:59:59.000Z)


Slice 3:
Start Date:	Sun, 05 Apr 2026 05:00:00 GMT
End Date:	Sun, 05 Apr 2026 06:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775368799 (2026-04-05T05:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 4:
Start Date:	Sun, 05 Apr 2026 06:00:00 GMT
End Date:	Sun, 05 Apr 2026 07:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775372399 (2026-04-05T06:59:59.000Z)


Slice 5:
Start Date:	Sun, 05 Apr 2026 07:00:00 GMT
End Date:	Sun, 05 Apr 2026 08:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775375999 (2026-04-05T07:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 6:
Start Date:	Sun, 05 Apr 2026 08:00:00 GMT
End Date:	Sun, 05 Apr 2026 09:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775379599 (2026-04-05T08:59:59.000Z)


Slice 7:
Start Date:	Sun, 05 Apr 2026 09:00:00 GMT
End Date:	Sun, 05 Apr 2026 10:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775383199 (2026-04-05T09:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 8:
Start Date:	Sun, 05 Apr 2026 10:00:00 GMT
End Date:	Sun, 05 Apr 2026 11:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775386799 (2026-04-05T10:59:59.000Z)


Slice 9:
Start Date:	Sun, 05 Apr 2026 11:00:00 GMT
End Date:	Sun, 05 Apr 2026 12:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775390399 (2026-04-05T11:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 10:
Start Date:	Sun, 05 Apr 2026 12:00:00 GMT
End Date:	Sun, 05 Apr 2026 13:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775393999 (2026-04-05T12:59:59.000Z)


Slice 11:
Start Date:	Sun, 05 Apr 2026 13:00:00 GMT
End Date:	Sun, 05 Apr 2026 14:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775397599 (2026-04-05T13:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 12:
Start Date:	Sun, 05 Apr 2026 14:00:00 GMT
End Date:	Sun, 05 Apr 2026 15:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775401199 (2026-04-05T14:59:59.000Z)


Slice 13:
Start Date:	Sun, 05 Apr 2026 15:00:00 GMT
End Date:	Sun, 05 Apr 2026 16:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775404799 (2026-04-05T15:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 14:
Start Date:	Sun, 05 Apr 2026 16:00:00 GMT
End Date:	Sun, 05 Apr 2026 17:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775408399 (2026-04-05T16:59:59.000Z)


Slice 15:
Start Date:	Sun, 05 Apr 2026 17:00:00 GMT
End Date:	Sun, 05 Apr 2026 18:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775411999 (2026-04-05T17:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 16:
Start Date:	Sun, 05 Apr 2026 18:00:00 GMT
End Date:	Sun, 05 Apr 2026 19:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775415599 (2026-04-05T18:59:59.000Z)


Slice 17:
Start Date:	Sun, 05 Apr 2026 19:00:00 GMT
End Date:	Sun, 05 Apr 2026 20:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775419199 (2026-04-05T19:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 18:
Start Date:	Sun, 05 Apr 2026 20:00:00 GMT
End Date:	Sun, 05 Apr 2026 21:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775422799 (2026-04-05T20:59:59.000Z)


Slice 19:
Start Date:	Sun, 05 Apr 2026 21:00:00 GMT
End Date:	Sun, 05 Apr 2026 22:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775426399 (2026-04-05T21:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 20:
Start Date:	Sun, 05 Apr 2026 22:00:00 GMT
End Date:	Sun, 05 Apr 2026 23:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775429999 (2026-04-05T22:59:59.000Z)


Slice 21:
Start Date:	Sun, 05 Apr 2026 23:00:00 GMT
End Date:	Mon, 06 Apr 2026 00:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775433599 (2026-04-05T23:59:59.000Z)


Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs bsc Llama Indexer URL/api key is not set
Slice 22:
Start Date:	Mon, 06 Apr 2026 00:00:00 GMT
End Date:	Mon, 06 Apr 2026 01:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775437199 (2026-04-06T00:59:59.000Z)


Slice 23:
Start Date:	Mon, 06 Apr 2026 01:00:00 GMT
End Date:	Mon, 06 Apr 2026 02:00:00 GMT
---------------------------------------------------

BSC 👇
Backfill start time: 1/4/2026
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00
End timestamp: 1775440799 (2026-04-06T01:59:59.000Z)



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

BSC 👇
End timestamp: 1775440799 (2026-04-06T01:59:59.000Z)
Daily fees: 0.00
Daily revenue: 0.00
Daily protocol revenue: 0.00

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/gameclub.ts`:
- Around line 18-22: The adapter currently returns dailyFees, dailyRevenue, and
dailyProtocolRevenue all as the same value and lacks a breakdownMethodology;
update the fees adapter to (1) add a breakdownMethodology object that documents
every label used (e.g., "protocol", "supply-side", etc.) consistent with the
existing methodology object, and (2) verify whether any supply-side revenue
exists and if so compute and return dailySupplySideRevenue separately instead of
equating it to dailyProtocolRevenue; reference the return values dailyFees,
dailyRevenue, dailyProtocolRevenue, dailySupplySideRevenue and any .add() labels
so the breakdownMethodology accurately describes the labels used.
- Around line 25-29: The methodology object uses generic keys ("Fees",
"Revenue", "ProtocolRevenue") which violate the adapter guideline to use
source-specific labels; update the methodology constant named methodology to use
descriptive keys that reflect the actual fee source (e.g., TradingFees,
ProtocolFees, ProtocolRevenueFromTradingFees or similar consistent labels) and
update any downstream code that reads those keys to the new names so consumers
still get the same values.
🪄 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: e7326bd9-5b06-4e06-8af4-b6cfebdcf1fe

📥 Commits

Reviewing files that changed from the base of the PR and between 69d4258 and bc15976.

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

Comment on lines +18 to +22
return {
dailyFees,
dailyRevenue: dailyFees,
dailyProtocolRevenue: dailyFees,
};
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.

🧹 Nitpick | 🔵 Trivial

Add breakdownMethodology and consider using labels.

Per coding guidelines, fees adapters should include a breakdownMethodology object documenting all labels used. While the current methodology object describes the fee structure, consider adding explicit breakdown documentation.

Also, the adapter assumes dailyFees = dailyRevenue = dailyProtocolRevenue (100% to protocol). Verify there is no supply-side revenue (e.g., liquidity providers, market makers) that should be tracked separately in dailySupplySideRevenue.

📝 Suggested enhancement with breakdownMethodology
 const methodology = {
   Fees: "Users pay fees when they trade on GameClub prediction markets",
   Revenue: "All fees go to the protocol",
   ProtocolRevenue: "All fees go to the protocol",
 };

+const breakdownMethodology = {
+  "Trading Fees": "USDT fees collected from prediction market trades",
+};

Then use the label in the return if the helper supports it, or document it for future reference.

As per coding guidelines: "Include breakdownMethodology object in fees adapters that documents all labels used in .add() calls with clear descriptions."

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

In `@fees/gameclub.ts` around lines 18 - 22, The adapter currently returns
dailyFees, dailyRevenue, and dailyProtocolRevenue all as the same value and
lacks a breakdownMethodology; update the fees adapter to (1) add a
breakdownMethodology object that documents every label used (e.g., "protocol",
"supply-side", etc.) consistent with the existing methodology object, and (2)
verify whether any supply-side revenue exists and if so compute and return
dailySupplySideRevenue separately instead of equating it to
dailyProtocolRevenue; reference the return values dailyFees, dailyRevenue,
dailyProtocolRevenue, dailySupplySideRevenue and any .add() labels so the
breakdownMethodology accurately describes the labels used.

Comment on lines 25 to 29
const methodology = {
Fees: "Users pay fees when they trade on GameClub prediction markets",
Revenue: "All fees go to the protocol",
ProtocolRevenue: "All fees go to the protocol",
Fees: "Users pay fees when they trade on GameClub prediction markets",
Revenue: "All fees go to the protocol",
ProtocolRevenue: "All fees go to the protocol",
};
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.

🧹 Nitpick | 🔵 Trivial

Use more specific fee source labels in methodology.

The methodology uses generic terms. Per guidelines, use specific source-based labels.

📝 Suggested methodology refinement
 const methodology = {
-  Fees: "Users pay fees when they trade on GameClub prediction markets",
-  Revenue: "All fees go to the protocol",
-  ProtocolRevenue: "All fees go to the protocol",
+  Fees: "Trading fees collected from GameClub prediction market positions",
+  Revenue: "Trading Fees To Protocol - all collected fees retained by GameClub",
+  ProtocolRevenue: "Trading Fees To Protocol - allocated to protocol treasury",
 };

As per coding guidelines: "Use specific, descriptive labels in fees adapters - avoid generic labels."

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

In `@fees/gameclub.ts` around lines 25 - 29, The methodology object uses generic
keys ("Fees", "Revenue", "ProtocolRevenue") which violate the adapter guideline
to use source-specific labels; update the methodology constant named methodology
to use descriptive keys that reflect the actual fee source (e.g., TradingFees,
ProtocolFees, ProtocolRevenueFromTradingFees or similar consistent labels) and
update any downstream code that reads those keys to the new names so consumers
still get the same values.

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.

@ruddhks552 thanks for the PR.
Any reason for this change? Its not a good practice to USDT track received from everyone , since some txns like this may not be fees https://intel.arkm.com/explorer/tx/0x8153dce6decacc976d0ab9e316a8846210c933b58b6ba73c425f4d2fdc3e07b2 .

@bheluga bheluga self-assigned this Apr 6, 2026
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