Skip to content

Conversation

@zdeadex
Copy link
Contributor

@zdeadex zdeadex commented Nov 3, 2025

Initial PR: #16165

Improvements adding

  • all our pools/vaults considered (our NECT/HONEY one wasn't in the list)
  • autowin vaults

zdeadex and others added 8 commits September 1, 2025 15:29
…ol detection

- Add AutoWin vaults (auto-compounding ERC-4626 vaults) to TVL calculation
- Use getUnderlyingBalances() for accurate liquidity tracking (similar to Kodiak v3)
- Reduce fromBlock from 7402487 to 2500000 to capture early pools including NECT-HONEY
- Improve architecture with separate functions for sticky vaults and autowin vaults
@waynebruce0x
Copy link
Collaborator

It seems like these vaults are holding dex LP tokens? Is that right? In that case this would be double counting and we cant re-count these

@waynebruce0x waynebruce0x self-assigned this Nov 4, 2025
@zdeadex
Copy link
Contributor Author

zdeadex commented Nov 4, 2025

@waynebruce0x yes indeed but for example if you look at the current winnieswap dashboard on defillama, the counting is correct even tho you have already

  • the univ3 (not lp)
  • the sticky vault (sticky lp tokens)

the added autowin vaults are just new lp tokens (aw lp tokens)
it's shoudln't be counted twice

also we fixed the time to have the nect/honey counted as we don't see it counted in the dasboard and now should be visible

@waynebruce0x
Copy link
Collaborator

So a user will deposit funds to a pool, then take that LP receipt token and deposit that to a sticky vault or autowin vault? Or are these vaults holding LP tokens from elsewhere?

@zdeadex
Copy link
Contributor Author

zdeadex commented Nov 4, 2025

The user can

  • deposit into a pool and get an NFT position (similar to univ3)
  • deposit into a vault and get sticky tokens
  • deposit into a vault and get aw tokens

these can't be stake in the same vault, you can stake them in separated vaults like on BEX or Infrared for example

@zdeadex
Copy link
Contributor Author

zdeadex commented Nov 5, 2025

so it's good? @waynebruce0x

@waynebruce0x
Copy link
Collaborator

It seems like the vaults are just double counting the same underlying assets in the liquidity pools, in which case we cant include this as TVL

@zdeadex
Copy link
Contributor Author

zdeadex commented Nov 5, 2025

Alright just changed the block to have all our pools included, should be good now @waynebruce0x

@llamabutler
Copy link

The adapter at projects/winnieswap exports TVL:

berachain                 288.29 k

total                    288.29 k 

@zdeadex
Copy link
Contributor Author

zdeadex commented Nov 5, 2025

there is still a problem, the vault https://www.winnieswap.com/vault/0xa5b3ecafbfcc7946c11a28252c6f2bdb73d30388 isn't included in the data reported...

@waynebruce0x
Copy link
Collaborator

I think this might be a caching issue - I will merge this now and keep an eye on the issue

@waynebruce0x waynebruce0x merged commit 4389e05 into DefiLlama:main Nov 6, 2025
1 check passed
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.

4 participants