Skip to content

feat: add synchronous vault flows and positions - #13

Open
Man-Jain wants to merge 1 commit into
mainfrom
feat/sync-vault-widget
Open

Man-Jain wants to merge 1 commit into
mainfrom
feat/sync-vault-widget

Conversation

@Man-Jain

Copy link
Copy Markdown
Contributor

Summary

  • Show supported synchronous vaults in the Earn market picker with explicit share/underlying details.
  • Add deposit and withdraw intent flows for vault shares.
  • Fetch and display current positions through the flows SDK's vault-position API.
  • Restrict the position set to Fluid, Gearbox, Morpho, Silo, and Euler Earn.

Dependencies:

This PR preserves the widget's original port configuration; fresh local port wiring is excluded.

Verification

  • Not run in this PR preparation pass.

@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
epoch-widget Error Error Oct 14, 2026 6:54pm UTC

@github-actions

Copy link
Copy Markdown

React Doctor found 2 new issues in 1 file · 2 warnings · score 86 / 100 (Great) · 0 fixed · vs main

2 warnings

src/components/MarketPickerPage.tsx

  • ⚠️ L179 React function has high control-flow complexity no-high-complexity-react-function
  • ⚠️ L181 Empty default prop breaks memo rerender-memo-with-default-value

Reviewed by React Doctor for commit b959c87. See inline comments for fixes.

@@ -172,10 +178,14 @@ function rowMatches(item: EarnMarketRow, query: string): boolean {

export function MarketPickerPage({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/no-high-complexity-react-function (warning)

MarketPickerPage has cyclomatic complexity 18, cognitive complexity 23, and maximum nesting depth 4, so its React logic is hard to understand and change. Extract independent branches into components or hooks.

Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.

Docs


export function MarketPickerPage({
rows,
vaults = [],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/rerender-memo-with-default-value (warning)

This reruns hooks that list it in their dependency array because default prop value [] makes a brand new array every render, so move it to a constant at the top of the file

Fix → Move it to the top of the file: const EMPTY_ITEMS: Item[] = [], then use that as the default value

Docs

This branch had an error being deployed

1 failed deployment
Preview — b959c87c Deployed Oct 14, 2026 by vercel[bot]
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