shapeshift / web

ShapeShift Web
https://app.shapeshift.com
MIT License
172 stars 184 forks source link

feat: limit orders input validation and quote error rendering #8157

Open woodenfurniture opened 1 day ago

woodenfurniture commented 1 day ago

Description

Performs validation of user input and renders quote errors, if there are any. Prevents users from proceeding with invalid limit orders.

Issue (if applicable)

closes #8109

Risk

High Risk PRs Require 2 approvals

Low risk, this makes no changes to anything outside of limit orders, which is behind a feature flag and still work-in-progress.

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Testing

Engineering

Operations

Screenshots (if applicable)

Quick jam showing preview button disabled before quote, and balance validation: https://jam.dev/c/b835bceb-9de3-4287-bfa7-57dc7f562007