Skip to content

Conversation

@Rivia11
Copy link

@Rivia11 Rivia11 commented Dec 23, 2025

Summary

  • Track LP tokens at burn address for accurate TVL calculation
  • Read paymentReceiver dynamically from Auction contract
  • Remove incorrect staking/pool2 sections (protocol has no staking mechanism)

Protocol Overview

Donut is a mining protocol where users pay WETH to mine DONUT tokens. The Auction contract collects LP tokens as payment and sends them to a burn address, permanently locking the liquidity.

Changes

  • TVL: Now correctly tracks burned DONUT/WETH LP tokens at 0x...dEaD
  • Dynamic: Reads burn address from Auction contract's paymentReceiver
  • Future-proof: Always tracks dead address + current paymentReceiver (in case it changes)
  • Removed: Fake staking/pool2 categories that didn't reflect actual protocol mechanics

Test Results

WETH                      273.58 k
DONUT                     272.62 k
Total: 546.20 k

Contracts

  • Auction: 0xC23E316705Feef0922F0651488264db90133ED38
  • LP Token: 0xD1DbB2E56533C55C3A637D13C53aeEf65c5D5703
  • Burn Address: 0x000000000000000000000000000000000000dEaD

@llamabutler
Copy link

The adapter at projects/donut exports TVL:

base-pool2                578.16 k
pool2                     578.16 k
base                      76.66 k
base-staking              0.00
staking                   0.00

total                    76.66 k 

@Rivia11
Copy link
Author

Rivia11 commented Dec 23, 2025

Can you please add this token mapping?

The token is already on CoinGecko but DefiLlama isn't picking up the price.

This is something only the DefiLlama team can fix on their backend.

- Track LP tokens at burn address (0x...dEaD) for accurate TVL
- Read paymentReceiver dynamically from Auction contract
- Remove incorrect staking/pool2 sections (protocol has no staking)
- TVL now shows $546k (permanently burned liquidity)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Rivia11 Rivia11 changed the title fix(donut): add LP for staking TVL pricing fix(donut): track burned LP tokens for accurate TVL Dec 24, 2025
@llamabutler
Copy link

The adapter at projects/donut exports TVL:

base                      546.03 k

total                    546.03 k 

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.

2 participants