Skip to content

Add worst-case HF stress panel#130

Open
Sikkra wants to merge 1 commit into
Dgetsylver:mainfrom
Sikkra:bounty-41-worst-case-hf
Open

Add worst-case HF stress panel#130
Sikkra wants to merge 1 commit into
Dgetsylver:mainfrom
Sikkra:bounty-41-worst-case-hf

Conversation

@Sikkra
Copy link
Copy Markdown

@Sikkra Sikkra commented May 19, 2026

Summary

  • Adds a worst-case 99% utilization panel under the leverage preview.
  • Computes stressed borrow APR, supply APR, spread, and 30-day HF movement from the live Blend rateConfig using the same fixed-point kink math as projectRates.
  • Includes position supply/borrow amounts so the scenario updates with amount and leverage changes.
  • Enables frontend tsc --noEmit by allowing .ts imports and removing stale wallet modal params.

Verification

  • npm run build
  • npx tsc --noEmit
  • git diff --check
  • Browser check on http://127.0.0.1:5195: accepted disclaimer, opened demo mode, verified the panel renders, updates when amount/leverage inputs change, and current-page console logs contain no warnings/errors.

Closes #41

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.

B14: Worst-case scenario panel

1 participant