Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(swap): removed price impact on limit orders #3003

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

SorinC6
Copy link
Contributor

@SorinC6 SorinC6 commented Jan 16, 2024

@SorinC6 SorinC6 added the fix label Jan 16, 2024
@@ -43,6 +46,7 @@ export const AmountItem = ({
const formattedQuantity = Quantities.format(quantity, tokenInfo.decimals ?? 0)
const showSwapDetails = !isPrimary && variant === 'swap'
const priceImpactRiskTheme = usePriceImpactRiskTheme(priceImpactRisk ?? 'none')
const priceImpactRiskTextColor = orderType === 'market' ? priceImpactRiskTheme.text : styles.text.color
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @SorinC6 just to confirm, so it won't hide, it will just display without emphasis in the color?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a task before for when is a limit order to not display the Price Impact on the Confirm Transaction(summary) screen. As I see it if there is a limit order everything will be as usual and not show the price impact colors and warnings 🤔

@stackchain stackchain added this to the 4.25.0 milestone Jan 16, 2024
@stackchain stackchain merged commit 8719314 into develop Jan 16, 2024
3 checks passed
@stackchain stackchain deleted the swap-price-impact-changes branch January 16, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants