Skip to content

feat: add grouped exposure views#624

Draft
Seranged wants to merge 15 commits into
feature/lite-215-convert-vault-page-sections-to-accordion-stylefrom
feature/lite-216-add-open-interest-section-to-vault-page-sankey-style-flow
Draft

feat: add grouped exposure views#624
Seranged wants to merge 15 commits into
feature/lite-215-convert-vault-page-sections-to-accordion-stylefrom
feature/lite-216-add-open-interest-section-to-vault-page-sankey-style-flow

Conversation

@Seranged

@Seranged Seranged commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add grouped backing-asset exposure views across lend, earn, and market discovery surfaces.
  • Preserve duplicate underlying vaults by showing vault counts when multiple collateral/strategy vaults share the same backing asset.
  • Keep Open Interest in Explore -> Matrix as the market-level view, with grouped backing assets, token logos, and per-row Show more controls.

Changes

  • Add shared exposure grouping helpers for backing-asset aggregation and count labels.
  • Update lend rows to show a compact collateral exposure datapoint with grouped backing-asset avatars and symbols.
  • Update the lend vault collateral exposure section and modal to group collateral vaults under backing assets and collapse long backing-asset lists.
  • Update earn rows to show backing-asset allocation coverage alongside strategy count.
  • Update earn vault Exposure to group strategy rows under backing assets while preserving allocation, APY, cap, hook, and pending-removal details.
  • Remove the redundant Can be used as collateral availability datapoint from vault overview surfaces.
  • Add Open Interest as a Matrix dropdown mode and fetch collateral open-interest data through the V3 proxy allowlist.

Test plan

  • npm run test:run -- tests/utils/vault/collateral-exposure.test.ts tests/utils/open-interest.test.ts tests/server/v3-proxy.test.ts
  • npm run typecheck
  • npx eslint components/entities/vault/VaultItem.vue components/entities/vault/VaultEarnItem.vue components/entities/vault/VaultCollateralExposureModal.vue components/entities/vault/overview/VaultOverviewBlockBorrow.vue components/entities/vault/overview/earn/VaultOverviewEarnBlockExposure.vue utils/vault/collateral-exposure.ts utils/vault/exposure-groups.ts tests/utils/vault/collateral-exposure.test.ts
  • Browser smoke on local Nuxt dev server: lend list, lend page collateral exposure accordion, earn list, earn vault Exposure section, and Explore -> Matrix -> Open Interest

@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 08:45 Destroyed
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: euler-xyz/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e13b737c-3cf2-439c-ae77-a09a43d06ab0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/lite-216-add-open-interest-section-to-vault-page-sankey-style-flow

Comment @coderabbitai help to get the list of available commands.

@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 09:01 Destroyed
@railway-app

railway-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

🚅 Deployed to the euler-lite-pr-624 environment in euler-lite

Service Status Web Updated (UTC)
dev-build ✅ Success (View Logs) Web Jun 25, 2026 at 4:17 pm

Polish the vault open interest graph with card-based nodes, responsive mobile stacking, and data-aware spacing for dense collateral sets.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 09:27 Destroyed
Remove the standalone vault-page open interest chart and add a compact Explore matrix Open Interest view grouped by backing asset, including duplicate-vault counts for aggregated exposures.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 11:03 Destroyed
Limit the matrix Open Interest view to the first four borrow-vault cards by default and add a Show more/Show less control for dense markets.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 11:13 Destroyed
Keep every borrow-vault card visible in the matrix Open Interest view, but collapse each card's backing-asset rows after the top three with a per-card Show more control.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 11:27 Destroyed
Center the per-card Show more control in the matrix Open Interest view.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 11:29 Destroyed
Show token avatars next to borrow and backing asset symbols in the matrix Open Interest view.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 12:40 Destroyed
Drops the redundant 'Can be used as collateral' field from vault overview surfaces now that collateral exposure is covered by the matrix/open-interest work.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 14:48 Destroyed
Adds shared backing-asset grouping for exposure data and applies it across lend rows, lend exposure details, earn rows, and earn vault exposure sections.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 15:20 Destroyed
@Seranged Seranged changed the title feat: add vault open interest overview feat: add grouped exposure views Jun 25, 2026
Hides backing-asset group headers when an exposure section only has one backing asset, leaving the underlying vault rows as the primary content.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 15:44 Destroyed
Removes visible backing-asset symbol lists from lend and earn list rows so the compact exposure datapoints stay to count plus token avatars.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 15:52 Destroyed
Flatten collateral and earn exposure detail sections so vault rows render without backing-asset headers. Keep grouped ordering and collapsed show-more behavior, with counts based on hidden rows.
@railway-app railway-app Bot temporarily deployed to euler-lite / euler-lite-pr-624 June 25, 2026 16:05 Destroyed
Adds a Chart.js doughnut view to the borrow pair overview, using the existing open-interest endpoint and grouped backing-asset model. Includes the total borrowed amount, per-asset percentages, values, and grouped vault counts.
Removes the updated timestamp subtitle from the borrow-page open interest chart to keep the section focused on the chart and backing-asset rows.
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