Skip to content

Cronos Gangsters - Leverage Trading DEX on Cronos#18711

Open
kingautomotive189a-spec wants to merge 1 commit intoDefiLlama:mainfrom
kingautomotive189a-spec:main
Open

Cronos Gangsters - Leverage Trading DEX on Cronos#18711
kingautomotive189a-spec wants to merge 1 commit intoDefiLlama:mainfrom
kingautomotive189a-spec:main

Conversation

@kingautomotive189a-spec
Copy link
Copy Markdown

@kingautomotive189a-spec kingautomotive189a-spec commented Apr 10, 2026

NOTE

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


  1. If you would like to add a volume/fees/revenue adapter please submit the PR here.

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

  3. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.

  4. For updating listing info It is a different repo, you can find your listing in this file, you can edit it there and put up a PR

  5. Please do not add new npm dependencies, do not edit/push pnpm-lock.yaml file as part of your changes


(Needs to be filled only for new listings)

Name (to be shown on DefiLlama):
Twitter Link:https://x.com/CronosGangsters
List of audit links if any:
Website Link:https://cronosgangsters.com/
Logo (High resolution, will be shown with rounded borders):https://cronosgangsters.com/gang-logo.png
Current TVL:
Treasury Addresses (if the protocol has treasury)0xaA3C5749628610fF410EF9133a4ac4f58e9A52eA
Chain:Cronos
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):Leverage Trading DEX on Cronos with up to 100x leverage, staking, farming and NFTs
Token address and ticker if any:0x4cE15b52a34dE6F62448fDBAdDF1dB4811DDC3EF
Category (full list at https://defillama.com/categories) *Please choose only one:Dexes
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):TVL is calculated by counting GANG tokens held in staking and competition smart contracts on Cronos chain
Github org/user (Optional, if your code is open source, we can track activity):
Does this project have a referral program?

Summary by CodeRabbit

  • New Features
    • Added TVL tracking for Cronos Gangsters project, now counting GANG tokens locked in staking and competition contracts.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 10, 2026

📝 Walkthrough

Walkthrough

A new TVL calculator module for Cronos Gangsters has been added, which tracks GANG tokens locked in the project's staking and competition contracts by summing token balances across two specified contract addresses.

Changes

Cohort / File(s) Summary
Cronos Gangsters TVL Module
projects/cronos-gangsters/index.js
Added TVL calculator that exports a cronos object with a sumTokensExport call for the GANG token across two staking/competition contract addresses, plus methodology documentation.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A new project hops into our warren,
Where gangsters stake their GANG tokens fair,
The TVL calculator now counts their care,
Two contracts locked, the tokens gleam so bright,
Cronos flows with crypto delight! 🥕✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title describes the project as a leverage trading DEX, but the code implements a TVL calculator for staking/competition contracts, which only partially aligns with the project's broader scope.
Description check ✅ Passed The PR description includes the required template with several key fields filled (Twitter, Website, Logo, Treasury Address, Chain, Short Description, Token Address, Category, Methodology), though some optional fields like Coingecko/CoinMarketCap IDs and audit links are empty.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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: 1

🧹 Nitpick comments (1)
projects/cronos-gangsters/index.js (1)

9-10: Add comments to document contract purposes.

Consider adding inline comments to document what each owner address represents for maintainability:

📝 Suggested documentation improvement
     owners: [
-      '0x2099ad49329909FDb620714D01F5A74D57CDeE0C',
-      '0xe546C82f0CedE3341dC402626923A6D4b95234Ee',
+      '0x2099ad49329909FDb620714D01F5A74D57CDeE0C', // Staking contract
+      '0xe546C82f0CedE3341dC402626923A6D4b95234Ee', // Competition contract
     ],
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@projects/cronos-gangsters/index.js` around lines 9 - 10, The owner addresses
in the array (e.g., '0x2099ad49329909FDb620714D01F5A74D57CDeE0C',
'0xe546C82f0CedE3341dC402626923A6D4b95234Ee') lack inline documentation; update
the array in projects/cronos-gangsters/index.js by adding concise comments next
to each address explaining the role/purpose (e.g., deployer, multisig, treasury,
verifier) and, if applicable, reference the contract or team name that owns it
so future maintainers can quickly understand why each address is present.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@projects/cronos-gangsters/index.js`:
- Around line 5-14: The export currently assigns the two owner addresses and
GANG_TOKEN to the cronos.tvl export; change this to a cronos.staking export by
replacing the tvl key with staking and keeping the sumTokensExport({...}) call
(referencing module.exports, cronos, tvl -> staking, sumTokensExport, GANG_TOKEN
and the two owner addresses '0x2099...DeE0C' and '0xe546C8...234Ee'); also add a
methodology string clarifying that staking counts GANG tokens locked in Cronos
Gangsters staking and competition contracts.

---

Nitpick comments:
In `@projects/cronos-gangsters/index.js`:
- Around line 9-10: The owner addresses in the array (e.g.,
'0x2099ad49329909FDb620714D01F5A74D57CDeE0C',
'0xe546C82f0CedE3341dC402626923A6D4b95234Ee') lack inline documentation; update
the array in projects/cronos-gangsters/index.js by adding concise comments next
to each address explaining the role/purpose (e.g., deployer, multisig, treasury,
verifier) and, if applicable, reference the contract or team name that owns it
so future maintainers can quickly understand why each address is present.
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2d45db2a-c1a7-4822-8418-1197f076a8bc

📥 Commits

Reviewing files that changed from the base of the PR and between ecb3b3e and 0be82df.

📒 Files selected for processing (1)
  • projects/cronos-gangsters/index.js

Comment on lines +5 to +14
module.exports = {
cronos: {
tvl: sumTokensExport({
owners: [
'0x2099ad49329909FDb620714D01F5A74D57CDeE0C',
'0xe546C82f0CedE3341dC402626923A6D4b95234Ee',
],
tokens: [GANG_TOKEN],
}),
},
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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify the nature of the owner contracts and check for DEX-related contracts

echo "=== Checking owner contract addresses on Cronos blockchain ==="
echo "Owner 1: 0x2099ad49329909FDb620714D01F5A74D57CDeE0C"
echo "Owner 2: 0xe546C82f0CedE3341dC402626923A6D4b95234Ee"
echo ""
echo "Please verify via Cronos explorer (cronoscan.com):"
echo "1. Are these contracts staking/rewards contracts?"
echo "2. Do they hold GANG tokens for staking/farming purposes?"
echo "3. Are there additional contracts for DEX liquidity (trading pools, collateral vaults)?"
echo ""
echo "=== Searching codebase for similar leverage trading DEX patterns ==="
rg -l "leverage|perpetual|futures" --type=js -g 'projects/**/index.js' | head -20

Repository: DefiLlama/DefiLlama-Adapters

Length of output: 1102


🌐 Web query:

What is the difference between TVL and staking in DeFi protocols, and how should leverage trading DEX protocols categorize locked collateral versus staked governance tokens?

💡 Result:

TVL vs. staking (in DeFi)

  • TVL (Total Value Locked): the USD value of assets locked in a protocol’s smart contracts that power the protocol’s core function (e.g., liquidity in AMMs, collateral in lending, margin/collateral vaults in trading protocols). (docs.llama.fi)
  • Staking (common usage in DeFi analytics): typically the value of governance/protocol tokens staked in the protocol’s staking system (often for rewards, fee share, vote power, or an insurance/backstop role). Many analytics sites track this separately because it can inflate “traction” without reflecting real usage of the core product. (defillama.com)

How leverage-trading DEXs (perps/margin DEXs) should categorize assets

A practical, analytics-friendly split is:

  1. Core TVL (Locked collateral / margin TVL)
    Include user-posted trading collateral that is locked in protocol-controlled contracts to open/maintain leveraged positions (e.g., USDC/ETH margin in a vault). This collateral is integral to the protocol’s trading function, so it belongs in TVL. (docs.llama.fi)

  2. Staked (Governance token staking) — separate from core TVL
    Put staked governance tokens (e.g., protocol token staking for rewards/voting/fee share) in a separate “Staked” metric rather than core TVL, since it’s often independent of actual trading usage and can distort comparisons. (defillama.com)

  3. Edge case (if governance tokens are required for trading risk/collateral)
    If the governance token is actually used as margin/collateral for leveraged positions (or is otherwise required and locked to enable trading in a way that affects liquidation/risk), then it’s reasonable to count that portion under core TVL, but it should be broken out explicitly (e.g., “Margin TVL: stablecoins” vs “Margin TVL: governance-token collateral”) to avoid misleading aggregation.

In short: locked trading collateral → TVL; staked governance tokens → “Staked” (not core TVL), unless they are genuinely trading collateral—then include, but disclose as a separate component.

Citations:


🏁 Script executed:

# Read the complete file to see all exports and methodology
cat projects/cronos-gangsters/index.js

Repository: DefiLlama/DefiLlama-Adapters

Length of output: 536


🏁 Script executed:

# Check if there are related files or documentation
fd -i cronos-gangsters

Repository: DefiLlama/DefiLlama-Adapters

Length of output: 98


🏁 Script executed:

# Look at a similar leverage trading DEX adapter for comparison
cat projects/deri/index.js

Repository: DefiLlama/DefiLlama-Adapters

Length of output: 2727


Move staking/competition contract tracking to staking export.

The methodology explicitly states this counts "GANG tokens locked in Cronos Gangsters staking and competition contracts," but the export uses the tvl key. In DefiLlama conventions, TVL tracks assets locked in the protocol's core functionality (e.g., collateral in trading positions or liquidity in perpetual pools), while staking tracks governance tokens locked for rewards or voting.

Since the two owner addresses hold GANG tokens in staking and competition contracts, restructure as:

Suggested fix
module.exports = {
  cronos: {
    staking: sumTokensExport({
      owners: [
        '0x2099ad49329909FDb620714D01F5A74D57CDeE0C',
        '0xe546C82f0CedE3341dC402626923A6D4b95234Ee',
      ],
      tokens: [GANG_TOKEN],
    }),
  },
  methodology: 'Staking counts GANG tokens locked in Cronos Gangsters staking and competition contracts.',
};

If this is a leverage trading DEX, also verify whether there is actual trading collateral (margin vaults, perpetual pools, etc.) that should be tracked separately under tvl.

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

In `@projects/cronos-gangsters/index.js` around lines 5 - 14, The export currently
assigns the two owner addresses and GANG_TOKEN to the cronos.tvl export; change
this to a cronos.staking export by replacing the tvl key with staking and
keeping the sumTokensExport({...}) call (referencing module.exports, cronos, tvl
-> staking, sumTokensExport, GANG_TOKEN and the two owner addresses
'0x2099...DeE0C' and '0xe546C8...234Ee'); also add a methodology string
clarifying that staking counts GANG tokens locked in Cronos Gangsters staking
and competition contracts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant