You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user clicks 'Confirm and Trade Anyway' on a trade where the expected price impact is 10% or greater (or the expected loss in fiat value is 10% or greater), a native warning is displayed and the user must click to confirm again before their wallet is prompted.
Warning copy:
Due to the size of this trade relative to available liquidity, the expected price impact of this trade is X%. Are you sure you want to trade?
CTAs: Cancel, Trade Anyway
References and additional details
Beard recommends using window.confirm to trigger the native warning for this (on ios, android, and web)
Acceptance Criteria
AC:
If a user clicks 'Confirm and Trade Anyway' on a trade where the expected price impact is 10% or greater (or the expected loss in fiat value is 10% or greater), a native warning is displayed and the user must click 'Trade Anyway' again before their wallet is prompted to confirm the transaction
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered:
willyogo
changed the title
Display an additional warning if slippage is greater than 10% and user attempts to trade anyway
Display an additional warning if price impact is greater than 10% and user attempts to trade anyway
Aug 4, 2023
Overview
If a user clicks 'Confirm and Trade Anyway' on a trade where the expected price impact is 10% or greater (or the expected loss in fiat value is 10% or greater), a native warning is displayed and the user must click to confirm again before their wallet is prompted.
Warning copy:
Due to the size of this trade relative to available liquidity, the expected price impact of this trade is X%. Are you sure you want to trade?
CTAs: Cancel, Trade Anyway
References and additional details
Beard recommends using window.confirm to trigger the native warning for this (on ios, android, and web)
Acceptance Criteria
AC:
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered: