diff --git a/modules/rwallet/components/folk-wallet-viewer.ts b/modules/rwallet/components/folk-wallet-viewer.ts index 1c76665..4f7b8d2 100644 --- a/modules/rwallet/components/folk-wallet-viewer.ts +++ b/modules/rwallet/components/folk-wallet-viewer.ts @@ -230,6 +230,7 @@ class FolkWalletViewer extends HTMLElement { this.render(); if (this.topTab === "visualizer" && this.address) this.detectChains(); + if (this.activeView === "yield") this.loadYieldData(); } if (!localStorage.getItem("rwallet_tour_done")) { setTimeout(() => this._tour.start(), 1200); @@ -1421,6 +1422,18 @@ class FolkWalletViewer extends HTMLElement { display: block; max-width: 720px; margin: 20px auto 0; text-align: center; } + /* ── Yield header ── */ + .yield-header { margin-bottom: 24px; } + .yield-header-row { + display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; + } + .yield-header-title { + font-size: 20px; font-weight: 700; color: var(--rs-text-primary); margin: 0 0 6px; + } + .yield-header-desc { + font-size: 13px; color: var(--rs-text-secondary); margin: 0; line-height: 1.5; max-width: 560px; + } + /* ── Yield tab ── */ .yield-summary { background: var(--rs-bg-surface); border: 1px solid var(--rs-border-subtle); @@ -1910,6 +1923,19 @@ class FolkWalletViewer extends HTMLElement { `; } + private renderYieldStandaloneHeader(): string { + return ` +
Compare APY rates across Aave V3 and Morpho Blue vaults on Ethereum and Base. Deposit idle USDC, USDT, or DAI through your Safe multisig.
+