Skip to content

Add Dynamic Slippage Tolerance Settings and Price Impact Warnings #2

Description

@Alhaji-naira

Description:
For a safe AMM trading experience, users need to know if their swap will significantly impact the pool's price and need the ability to adjust their slippage tolerance.

Acceptance Criteria:

  • Add a "Settings" gear icon to the Swap card UI that opens a modal or dropdown.
  • Allow users to select standard slippage tolerances (0.1%, 0.5%, 1.0%) or input a custom percentage.
  • Calculate and display the estimated "Price Impact" dynamically below the swap input fields based on the pool reserves.
  • If the price impact exceeds 5%, change the warning text to red (text-red-500 in Tailwind) and prompt the user to confirm they understand the risk before enabling the "Swap" button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions