Skip to content

fix: explain unavailable rolling vault returns - #1320

Merged
miohtama merged 1 commit into
masterfrom
fix/vault-rolling-returns-notice
Jul 18, 2026
Merged

fix: explain unavailable rolling vault returns#1320
miohtama merged 1 commit into
masterfrom
fix/vault-rolling-returns-notice

Conversation

@miohtama

Copy link
Copy Markdown
Contributor

Why

New vault protocols can have TVL history before they have enough observations to draw a three-month rolling returns line. The chart should continue showing TVL while clearly explaining why returns are unavailable.

Lessons learnt

A returns value alone does not guarantee that ECharts can draw a line: at least two return points are required. The availability notice should therefore use both the history window and the number of drawable return points.

Summary

  • Keep rendering protocol TVL when three months of return history are unavailable.
  • Show the standard informational alert below the plot only when no returns line can be drawn.
  • Report the available history in months and spell out annualised in the chart heading.

@miohtama
miohtama merged commit 09527c2 into master Jul 18, 2026
5 checks 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.

1 participant