Skip to content

Build circuit breaker status indicator on buy form for price impact warnings #1034

Description

@Chucks1093

Summary

Show a real-time price impact indicator on the buy form and display a circuit breaker warning when the current order would trip the key's configured impact threshold.

Scope

  • Price impact percentage displayed below amount input on buy form
  • Impact computed from current curve state on amount change
  • Warning banner when impact approaches or exceeds circuit breaker threshold
  • Buy button disabled with circuit breaker message when threshold breached
  • Tooltip explaining circuit breaker protection

Acceptance Criteria

  • Price impact computed correctly for any input amount
  • Warning banner shown at correct threshold proximity
  • Buy disabled when impact equals or exceeds circuit breaker limit
  • Tooltip explains circuit breaker purpose clearly
  • Impact indicator updates within 300ms of amount input change

ETA

12 hours

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions