Skip to content

Commit

Permalink
fix(swap): Change limit price copy (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored Jan 15, 2024
1 parent 7e6dc16 commit 8041807
Show file tree
Hide file tree
Showing 4 changed files with 511 additions and 489 deletions.
6 changes: 6 additions & 0 deletions apps/wallet-mobile/src/features/Swap/common/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const useStrings = () => {
selectToken: intl.formatMessage(messages.selectToken),
marketPrice: intl.formatMessage(messages.marketPrice),
marketPriceInfo: intl.formatMessage(messages.marketPriceInfo),
limitPriceInfo: intl.formatMessage(messages.limitPriceInfo),
limitPrice: intl.formatMessage(messages.limitPrice),
slippageTolerance: intl.formatMessage(messages.slippageTolerance),
slippageToleranceInfo: intl.formatMessage(messages.slippageToleranceInfo),
Expand Down Expand Up @@ -210,6 +211,11 @@ export const messages = defineMessages({
defaultMessage:
'!!!Market price is the best price available on the market among several DEXes that lets you buy or sell an asset instantly.',
},
limitPriceInfo: {
id: 'swap.swapScreen.limitPriceInfo',
defaultMessage:
"!!!Limit price in a DEX is a specific pre-set price at which you can trade an asset. Unlike market orders, which execute immediately at the current market price, limit orders are set to execute only when the market reaches the trader's specified price.",
},
limitPrice: {
id: 'swap.swapScreen.limitPrice',
defaultMessage: '!!!Limit Price',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const TransactionSummary = () => {
{
label: `${capitalize(type)} ${strings.price}`,
value: `${limitDisplayValue} ${tokenToSellName}/${tokenToBuyName}`,
info: strings.marketPriceInfo,
info: type === 'market' ? strings.marketPriceInfo : strings.limitPriceInfo,
},
{
label: strings.priceImpact,
Expand Down
1 change: 1 addition & 0 deletions apps/wallet-mobile/src/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@
"swap.swapScreen.marketButton": "Market",
"swap.swapScreen.marketPrice": "Market price",
"swap.swapScreen.marketPriceInfo": "Market price is the best price available on the market among several DEXes that lets you buy or sell an asset instantly.",
"swap.swapScreen.limitPriceInfo": "Limit price in a DEX is a specific pre-set price at which you can trade an asset. Unlike market orders, which execute immediately at the current market price, limit orders are set to execute only when the market reaches the trader's specified price.",
"swap.swapScreen.noAssetsFound": "No assets found for this pair",
"swap.swapScreen.noAssetsFoundFor": "No assets found for \"{search}\"",
"swap.swapScreen.noPool": "This pair is not available in any liquidity pool",
Expand Down
Loading

0 comments on commit 8041807

Please sign in to comment.