Skip to content

Conversation

@DevTerminalFi
Copy link
Contributor

This PR is a generalization of #16741 that computes terminal-fi-predeposit TVL based on the receipt tokens total supply & the DefiLlama pricing of those tokens.

This implementation is directly inspired by the way Midas compute their TVL.

IMPORTANT :

Before considering merging this PR, the DefiLlama pricing of tUSDe (0xA01227A26A7710bc75071286539E47AdB6DEa417) must be corrected. It is currently considered 1:1 with sUSDe, but in reality it is 1:1 with USDe.

@llamabutler
Copy link

The adapter at projects/terminal-fi-predeposit exports TVL:

ethereum                  319.47 M

total                    319.47 M 

@waynebruce0x
Copy link
Collaborator

Why cant we continue counting the value of the token balances?

@waynebruce0x waynebruce0x self-assigned this Oct 22, 2025
@DevTerminalFi
Copy link
Contributor Author

For security and accounting reasons, we prefer not to mix different assets within vaults that were initially designed to hold a single underlying.

In addition, computing TVL based on the receipt token supply is more future-proof: it remains valid regardless of where the underlying assets are held, whether directly in the vaults or later in the AMM (as will be the case post-launch).

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