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.
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:
text-red-500in Tailwind) and prompt the user to confirm they understand the risk before enabling the "Swap" button.