Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
8dd1be3b
Unverified
Commit
8dd1be3b
authored
Oct 14, 2021
by
Justin Domingue
Committed by
GitHub
Oct 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove extra `$` from translations (#2611)
* remove extra $ * refactor * refactor
parent
0b8afcff
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
useSwapCallback.tsx
src/hooks/useSwapCallback.tsx
+1
-1
index.tsx
src/pages/AddLiquidityV2/index.tsx
+2
-2
index.tsx
src/pages/RemoveLiquidity/index.tsx
+2
-2
hooks.tsx
src/state/mint/hooks.tsx
+2
-2
hooks.tsx
src/state/mint/v3/hooks.tsx
+2
-2
hooks.tsx
src/state/swap/hooks.tsx
+1
-1
No files found.
src/hooks/useSwapCallback.tsx
View file @
8dd1be3b
...
...
@@ -257,7 +257,7 @@ function swapErrorToUserReadableMessage(error: any): ReactNode {
}
return
(
<
Trans
>
Unknown error
$
{
reason
?
`: "${reason}"`
:
''
}
. Try increasing your slippage tolerance. Note: fee on transfer
Unknown error
{
reason
?
`: "${reason}"`
:
''
}
. Try increasing your slippage tolerance. Note: fee on transfer
and rebase tokens are incompatible with Uniswap V3.
</
Trans
>
)
...
...
src/pages/AddLiquidityV2/index.tsx
View file @
8dd1be3b
...
...
@@ -272,8 +272,8 @@ export default function AddLiquidity({
const
pendingText
=
(
<
Trans
>
Supplying
$
{
parsedAmounts
[
Field
.
CURRENCY_A
]?.
toSignificant
(
6
)
}
$
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
and $
{
parsedAmounts
[
Field
.
CURRENCY_B
]?.
toSignificant
(
6
)
}
$
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
Supplying
{
parsedAmounts
[
Field
.
CURRENCY_A
]?.
toSignificant
(
6
)
}
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
and
{
parsedAmounts
[
Field
.
CURRENCY_B
]?.
toSignificant
(
6
)
}
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
</
Trans
>
)
...
...
src/pages/RemoveLiquidity/index.tsx
View file @
8dd1be3b
...
...
@@ -373,8 +373,8 @@ export default function RemoveLiquidity({
const
pendingText
=
(
<
Trans
>
Removing
$
{
parsedAmounts
[
Field
.
CURRENCY_A
]?.
toSignificant
(
6
)
}
$
{
currencyA
?.
symbol
}
and $
{
parsedAmounts
[
Field
.
CURRENCY_B
]?.
toSignificant
(
6
)
}
$
{
currencyB
?.
symbol
}
Removing
{
parsedAmounts
[
Field
.
CURRENCY_A
]?.
toSignificant
(
6
)
}
{
currencyA
?.
symbol
}
and
{
parsedAmounts
[
Field
.
CURRENCY_B
]?.
toSignificant
(
6
)
}
{
currencyB
?.
symbol
}
</
Trans
>
)
...
...
src/state/mint/hooks.tsx
View file @
8dd1be3b
...
...
@@ -192,11 +192,11 @@ export function useDerivedMintInfo(
const
{
[
Field
.
CURRENCY_A
]:
currencyAAmount
,
[
Field
.
CURRENCY_B
]:
currencyBAmount
}
=
parsedAmounts
if
(
currencyAAmount
&&
currencyBalances
?.[
Field
.
CURRENCY_A
]?.
lessThan
(
currencyAAmount
))
{
error
=
<
Trans
>
Insufficient
$
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
balance
</
Trans
>
error
=
<
Trans
>
Insufficient
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
balance
</
Trans
>
}
if
(
currencyBAmount
&&
currencyBalances
?.[
Field
.
CURRENCY_B
]?.
lessThan
(
currencyBAmount
))
{
error
=
<
Trans
>
Insufficient
$
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
balance
</
Trans
>
error
=
<
Trans
>
Insufficient
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
balance
</
Trans
>
}
return
{
...
...
src/state/mint/v3/hooks.tsx
View file @
8dd1be3b
...
...
@@ -446,11 +446,11 @@ export function useV3DerivedMintInfo(
const
{
[
Field
.
CURRENCY_A
]:
currencyAAmount
,
[
Field
.
CURRENCY_B
]:
currencyBAmount
}
=
parsedAmounts
if
(
currencyAAmount
&&
currencyBalances
?.[
Field
.
CURRENCY_A
]?.
lessThan
(
currencyAAmount
))
{
errorMessage
=
<
Trans
>
Insufficient
$
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
balance
</
Trans
>
errorMessage
=
<
Trans
>
Insufficient
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
balance
</
Trans
>
}
if
(
currencyBAmount
&&
currencyBalances
?.[
Field
.
CURRENCY_B
]?.
lessThan
(
currencyBAmount
))
{
errorMessage
=
<
Trans
>
Insufficient
$
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
balance
</
Trans
>
errorMessage
=
<
Trans
>
Insufficient
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
balance
</
Trans
>
}
const
invalidPool
=
poolState
===
PoolState
.
INVALID
...
...
src/state/swap/hooks.tsx
View file @
8dd1be3b
...
...
@@ -223,7 +223,7 @@ export function useDerivedSwapInfo(toggledVersion: Version | undefined): {
const
[
balanceIn
,
amountIn
]
=
[
currencyBalances
[
Field
.
INPUT
],
bestTrade
?.
maximumAmountIn
(
allowedSlippage
)]
if
(
balanceIn
&&
amountIn
&&
balanceIn
.
lessThan
(
amountIn
))
{
inputError
=
<
Trans
>
Insufficient
$
{
amountIn
.
currency
.
symbol
}
balance
</
Trans
>
inputError
=
<
Trans
>
Insufficient
{
amountIn
.
currency
.
symbol
}
balance
</
Trans
>
}
return
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment