Skip to content

feat: add ADRs, DefiLlama adapter, guided tour, and HF header badge#218

Open
techisigu wants to merge 1 commit into
Dgetsylver:mainfrom
techisigu:feat/adr-defillama-tour-hf-badge
Open

feat: add ADRs, DefiLlama adapter, guided tour, and HF header badge#218
techisigu wants to merge 1 commit into
Dgetsylver:mainfrom
techisigu:feat/adr-defillama-tour-hf-badge

Conversation

@techisigu
Copy link
Copy Markdown

closes #4
closes #9
closes #90
closes #83

docs/adr/: 5 Architecture Decision Records (Michael Nygard template)

  • 0001: DeFindex strategy pattern — adopt pluggable Strategy interface
  • 0002: 20-loop cap — hard ceiling on leverage loops (Soroban budget)
  • 0003: Single-asset vault — one vault per underlying asset, no swap on deposit
  • 0004: No flash loans on Soroban — iterative loops instead
  • 0005: Stellar Wallets Kit over Freighter-only — unified multi-wallet modal
  • README.md: indexed table + template

integrations/defillama/: TVL adapter for DefiLlama submission

  • index.js: stellar chain adapter; fetches collateral/borrowed from Blend API per strategy contract; exports tvl() and borrowed()
  • README.md: submission instructions and pre-deployment notes

frontend/: Shepherd.js-style guided tour + persistent HF header badge

  • index.html: tour overlay (6-step modal with dots, prev/next, skip), HF badge element in nav, 'Replay Tour' item in settings dropdown
  • src/main.ts: startTour/endTour/renderTourStep with localStorage persistence (resume on refresh); MutationObserver auto-starts tour on first wallet connection; updateHFBadge() called after every loadAll() — color zones green≥2.0 / yellow 1.5–2.0 / orange 1.2–1.5 / red<1.2; badge hidden when no open position or on disconnect
  • src/style.css: .hf-header-badge color variants, .tour-* layout styles

Summary

Related Issue

Closes #

Checks

  • I read the contribution guide.
  • I kept this pull request scoped to the linked issue.
  • I ran the relevant local checks or explained why they were skipped.
  • For Drips wave issues, I claimed the issue before opening this pull request.

Notes for Reviewers

docs/adr/: 5 Architecture Decision Records (Michael Nygard template)
  - 0001: DeFindex strategy pattern — adopt pluggable Strategy interface
  - 0002: 20-loop cap — hard ceiling on leverage loops (Soroban budget)
  - 0003: Single-asset vault — one vault per underlying asset, no swap on deposit
  - 0004: No flash loans on Soroban — iterative loops instead
  - 0005: Stellar Wallets Kit over Freighter-only — unified multi-wallet modal
  - README.md: indexed table + template

integrations/defillama/: TVL adapter for DefiLlama submission
  - index.js: stellar chain adapter; fetches collateral/borrowed from Blend
    API per strategy contract; exports tvl() and borrowed()
  - README.md: submission instructions and pre-deployment notes

frontend/: Shepherd.js-style guided tour + persistent HF header badge
  - index.html: tour overlay (6-step modal with dots, prev/next, skip),
    HF badge element in nav, 'Replay Tour' item in settings dropdown
  - src/main.ts: startTour/endTour/renderTourStep with localStorage
    persistence (resume on refresh); MutationObserver auto-starts tour
    on first wallet connection; updateHFBadge() called after every
    loadAll() — color zones green≥2.0 / yellow 1.5–2.0 / orange 1.2–1.5
    / red<1.2; badge hidden when no open position or on disconnect
  - src/style.css: .hf-header-badge color variants, .tour-* layout styles
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@techisigu Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant