Skip to content

feat(simulator): default collateral to 1 for usable slider on load - #115

Merged
stackdapp-dev merged 1 commit into
developfrom
claude/fix-simulator-default-collateral
Mar 16, 2026
Merged

stackdapp-dev merged 1 commit into
developfrom
claude/fix-simulator-default-collateral

Conversation

@stackdapp-dev

Copy link
Copy Markdown
Owner

Summary

  • Default sandboxCollateral from "" (0) to "1" in simulate mode
  • Borrow Amount slider is now immediately usable on modal open (no need to enter collateral first)
  • Reset button also restores collateral to "1" instead of clearing it
  • Applies to both WBTC and XAUT collateral types

Test plan

  • 3 new TDD tests verifying default init, reset behavior, and slider enabled state
  • Full regression suite: 1629 tests passing, 0 failures
  • Manual: open Simulate modal → slider should be draggable immediately

🤖 Generated with Claude Code

…sable on load

Previously sandboxCollateral initialized to "" (parsed as 0), making
maxBorrow=0 and disabling the slider until the user manually entered a value.
Now defaults to "1" for both WBTC and XAUT, enabling immediate slider interaction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
stackd-web Ready Ready Preview, Comment Mar 16, 2026 2:28pm

@stackdapp-dev
stackdapp-dev merged commit 3ccff11 into develop Mar 16, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 78b18912 Deployed Mar 16, 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.

2 participants