Skip to content

Add slippage protection warning and override on large trade execution #995

Description

@Chucks1093

Summary

Detect when a pending trade will exceed the user's slippage tolerance and surface a warning with the estimated actual price impact, requiring explicit acknowledgement before execution.

Scope

  • Slippage tolerance setting in user preferences (default 1%)
  • Price impact calculation shown on trade form in real time
  • Warning banner when impact exceeds tolerance threshold
  • Override checkbox to acknowledge and proceed
  • Transaction blocked until override checked when warning active

Acceptance Criteria

  • Tolerance setting persists in user preferences
  • Price impact calculated correctly on amount input change
  • Warning banner appears when impact exceeds tolerance
  • Override checkbox required before submit when warning active
  • Transaction proceeds correctly after override acknowledged

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