Skip to content

Conversation

prevostc
Copy link

No description provided.

@llamabutler
Copy link

The cap-money adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cap-money

🦙 Running CAP-MONEY adapter 🦙
---------------------------------------------------
Start Date:	Wed, 13 Aug 2025 00:07:57 GMT
End Date:	Thu, 14 Aug 2025 00:07:57 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily revenue: 0
Daily supply side revenue: 0
End timestamp: 1755130076 (2025-08-14T00:07:56.000Z)

@prevostc prevostc changed the title Add cap adapter Add cap fee adapter Aug 14, 2025
@prevostc prevostc changed the title Add cap fee adapter Add cap fees adapter Aug 14, 2025
@noateden
Copy link
Contributor

hello @prevostc thanks for the PR, can you verify these numbers? I see they are all zero?

@noateden noateden self-assigned this Aug 19, 2025
@prevostc
Copy link
Author

Hi @noateden thanks for reviewing, I did update the adapter to use events instead and I do have some data but it's not showing in the outpout. Probably because either < $1 or coingecko for cUSD is not live yet?

> ts-node --transpile-only cli/testAdapter.ts fees cap-money 2025-08-12

🦙 Running CAP-MONEY adapter 🦙
---------------------------------------------------
Start Date:     Mon, 11 Aug 2025 00:00:00 GMT
End Date:       Tue, 12 Aug 2025 00:00:00 GMT
---------------------------------------------------

{
  fromBlock: 23114089,
  toBlock: 23121247,
  fromTimestamp: 1754870399,
  toTimestamp: 1754956799,
  minterFees: {
    'ethereum:0xcccc62962d17b8914c62d74ffb843d73b2a3cccc': '10000000000000000000'
  },
  protocolFees: {},
  restakerFees: { 'ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48': '51212' },
  insuranceFundFees: {},
  dailyFees: {
    'ethereum:0xcccc62962d17b8914c62d74ffb843d73b2a3cccc': '10000000000000000000',
    'ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48': '51212'
  },
  dailyRevenue: {},
  dailySupplySideRevenue: {
    'ethereum:0xcccc62962d17b8914c62d74ffb843d73b2a3cccc': '10000000000000000000',
    'ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48': '51212'
  }
}
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily revenue: 0
Daily supply side revenue: 0
End timestamp: 1754956799 (2025-08-11T23:59:59.000Z)
> ts-node --transpile-only cli/testAdapter.ts fees cap-money 2025-08-19T18:00:00

🦙 Running CAP-MONEY adapter 🦙
---------------------------------------------------
(node:57234) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Start Date:     Mon, 18 Aug 2025 16:00:00 GMT
End Date:       Tue, 19 Aug 2025 16:00:00 GMT
---------------------------------------------------

{
  fromBlock: 23168996,
  toBlock: 23176172,
  fromTimestamp: 1755532799,
  toTimestamp: 1755619199,
  minterFees: {
    'ethereum:0xcccc62962d17b8914c62d74ffb843d73b2a3cccc': '517193531250000000000'
  },
  protocolFees: {},
  restakerFees: {},
  insuranceFundFees: {},
  dailyFees: {
    'ethereum:0xcccc62962d17b8914c62d74ffb843d73b2a3cccc': '517193531250000000000'
  },
  dailyRevenue: {},
  dailySupplySideRevenue: {
    'ethereum:0xcccc62962d17b8914c62d74ffb843d73b2a3cccc': '517193531250000000000'
  }
}
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily revenue: 0
Daily supply side revenue: 0
End timestamp: 1755619199 (2025-08-19T15:59:59.000Z)

@llamabutler
Copy link

The cap-money adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cap-money

🦙 Running CAP-MONEY adapter 🦙
---------------------------------------------------
Start Date:	Mon, 18 Aug 2025 13:40:23 GMT
End Date:	Tue, 19 Aug 2025 13:40:23 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily revenue: 0
Daily supply side revenue: 0
End timestamp: 1755610822 (2025-08-19T13:40:22.000Z)

@llamabutler
Copy link

The cap-money adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cap-money

🦙 Running CAP-MONEY adapter 🦙
---------------------------------------------------
Start Date:	Wed, 20 Aug 2025 01:36:32 GMT
End Date:	Thu, 21 Aug 2025 01:36:32 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily supply side revenue: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1755740191 (2025-08-21T01:36:31.000Z)

@noateden
Copy link
Contributor

hello @prevostc, we can not add price for cUSD for now. We will merge once cUSD is listed in coingecko. I can not find any DEX pools too.

@noateden noateden marked this pull request as draft August 21, 2025 04:07
@llamabutler
Copy link

The cap-money adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cap-money

🦙 Running CAP-MONEY adapter 🦙
---------------------------------------------------
Start Date:	Wed, 20 Aug 2025 07:32:56 GMT
End Date:	Thu, 21 Aug 2025 07:32:56 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily supply side revenue: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1755761575 (2025-08-21T07:32:55.000Z)

@llamabutler
Copy link

The cap adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cap

🦙 Running CAP adapter 🦙
---------------------------------------------------
Start Date:	Wed, 20 Aug 2025 07:35:29 GMT
End Date:	Thu, 21 Aug 2025 07:35:29 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily supply side revenue: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1755761728 (2025-08-21T07:35:28.000Z)

@prevostc
Copy link
Author

hello @prevostc, we can not add price for cUSD for now. We will merge once cUSD is listed in coingecko. I can not find any DEX pools too.

@noateden cUSD just got listed \o/
https://www.coingecko.com/en/coins/cap-usd

price to usd is still missing though

Also updated the directory to match https://defillama.com/protocol/cap

@prevostc prevostc marked this pull request as ready for review August 28, 2025 20:18
@llamabutler
Copy link

The cap adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cap

🦙 Running CAP adapter 🦙
---------------------------------------------------
Start Date:	Wed, 27 Aug 2025 17:48:59 GMT
End Date:	Thu, 28 Aug 2025 17:48:59 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
Token transfers: Failed to use indexer, falling back to logs ethereum Llama Indexer v2 URL/api key is not set
ETHEREUM 👇
Backfill start time: 7/7/2025
Daily fees: 0
Daily supply side revenue: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1756403338 (2025-08-28T17:48:58.000Z)

@prevostc
Copy link
Author

@noateden cUSD has a price on coingecko, not sure why this is returning zero though
https://www.coingecko.com/en/coins/cap-usd

@noateden
Copy link
Contributor

hello @prevostc, there is too low liquidity for cUSD for us to pricing it. We need at least $50k

@prevostc
Copy link
Author

thx for the notice @noateden, we deployed about $50k now https://www.curve.finance/dex/ethereum/pools/factory-stable-ng-548/deposit

@noateden
Copy link
Contributor

@prevostc I saw the pool has only 1 liquidity provider, and no swap at all. It isn't to add price for it.

@prevostc
Copy link
Author

@noateden technically that pool is an alternative way of exchanging cUSD to usd. The primary way is to call mint or burn on the cUSD contract itself. cUSD total value is always worth what the total underlying asset are worth. That pegs cUSD to use under normal operations and this is why you see no activity on the pool. cUSD still has a price though because of that mechanism

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants