Summary
The slippage tolerance selector computes max_price and min_price from the preview price and selected tolerance. Unit tests should assert these values are computed correctly for each preset tolerance and that the custom input is validated properly.
Scope
- Test that 0.5% tolerance on a preview price of 100 XLM computes max_price of 100.5 XLM
- Test that 5% tolerance on a preview price of 100 XLM computes max_price of 105 XLM
- Test that 1% sell tolerance on a preview price of 100 XLM computes min_price of 99 XLM
- Test that a custom tolerance of 0% is accepted and computes max_price equal to preview price
- Test that a custom tolerance above 50% shows a validation error and disables the confirm button
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The slippage tolerance selector computes max_price and min_price from the preview price and selected tolerance. Unit tests should assert these values are computed correctly for each preset tolerance and that the custom input is validated properly.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram