Skip to content

Conversation

@VAhafonov
Copy link
Contributor

No description provided.

@llamabutler
Copy link

The thorswap adapter exports:

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

🦙 Running THORSWAP adapter 🦙
---------------------------------------------------
Start Date:	Tue, 18 Nov 2025 00:00:00 GMT
End Date:	Wed, 19 Nov 2025 00:00:00 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: 19/2/2025
Daily fees: 31.62 k
Daily revenue: 31.62 k
Daily protocol revenue: 7.91 k
Daily holders revenue: 23.71 k
End timestamp: 1763510399 (2025-11-18T23:59:59.000Z)

@VAhafonov
Copy link
Contributor Author

THORSwap is a cross-chain aggregator.
Previously, our code calculated fees only for the Thorchain protocol.
However, a large portion of THORSwap’s volume now flows through Chainflip and NEAR intents. In the current implementation, we simply track USDC inflows for a single fee collector and distributor.
This makes the calculation simpler and more accurate.

@VAhafonov VAhafonov changed the title Update Thorswap adapter for fees/revenues calculation fix: Update Thorswap adapter for fees/revenues calculation Nov 19, 2025
@noateden noateden self-assigned this Nov 19, 2025
@noateden
Copy link
Contributor

hi @VAhafonov thanks for the PR. Why are we changing method?

@VAhafonov
Copy link
Contributor Author

Hey @noateden just mentioned that in above comment.
Previously, our code calculated fees only for the Thorchain protocol.
However, a large portion of THORSwap’s volume now flows through Chainflip and NEAR intents. In the current implementation, we simply track USDC inflows for a single fee collector and distributor.
This makes the calculation simpler and more accurate.

@noateden
Copy link
Contributor

@VAhafonov hmm I see. But now, all fees are on Ethereum chain only?

@VAhafonov
Copy link
Contributor Author

@noateden Yes, that's true. All fees are now collected on Ethereum chain in USDC

@noateden noateden merged commit 573c372 into DefiLlama:master Nov 25, 2025
2 checks passed
@VAhafonov
Copy link
Contributor Author

Hey @noateden. Thank you for PR merging. I've checked if update already apperead on Defilama and discovered that updated fees are displayed under Thorchain project(https://defillama.com/protocol/thorchain-dex?tvl=false&events=false&holdersRevenue=true). But PR was actually to update fees calculation for Thorswap(https://defillama.com/protocol/thorswap). Maybe I was tricked by module name.

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