is_meaningful_usd_tvl
Documentation for eth_defi.vault.base.is_meaningful_usd_tvl function.
- is_meaningful_usd_tvl(current, highest)
Check live price-row eligibility with $1,500 entry and $1,000 exit.
Both values must already be converted to estimated USD using the vault reader’s exchange rate. A vault that once reached the entry limit remains eligible while its latest TVL is at least the exit limit.
- Parameters
current (Optional[decimal.Decimal]) – Latest estimated USD TVL, or
Nonewhen unavailable.highest (Optional[decimal.Decimal]) – Highest previously observed estimated USD TVL, or
None.
- Returns
Whether the vault meets the live freshness TVL limits.
- Return type