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
9743b211
Unverified
Commit
9743b211
authored
Apr 29, 2021
by
Noah Zinsmeister
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change migration threshold to 2
fix starting price bug
parent
dce187e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
index.tsx
src/pages/AddLiquidity/index.tsx
+4
-4
MigrateV2Pair.tsx
src/pages/MigrateV2/MigrateV2Pair.tsx
+1
-1
No files found.
src/pages/AddLiquidity/index.tsx
View file @
9743b211
...
@@ -412,13 +412,13 @@ export default function AddLiquidity({
...
@@ -412,13 +412,13 @@ export default function AddLiquidity({
<
RowBetween
>
<
RowBetween
>
<
RowFixed
>
<
RowFixed
>
<
DoubleCurrencyLogo
<
DoubleCurrencyLogo
currency0=
{
currencyA
??
undefined
}
currency0=
{
baseCurrency
??
undefined
}
currency1=
{
currencyB
??
undefined
}
currency1=
{
quoteCurrency
??
undefined
}
size=
{
24
}
size=
{
24
}
margin=
{
true
}
margin=
{
true
}
/>
/>
<
TYPE
.
label
ml=
"10px"
fontSize=
"24px"
>
<
TYPE
.
label
ml=
"10px"
fontSize=
"24px"
>
{
currencyA
?.
symbol
}
/
{
currencyB
?.
symbol
}
{
quoteCurrency
?.
symbol
}
/
{
baseCurrency
?.
symbol
}
</
TYPE
.
label
>
</
TYPE
.
label
>
</
RowFixed
>
</
RowFixed
>
<
RangeBadge
inRange=
{
!
outOfRange
}
>
{
outOfRange
?
'
Out of range
'
:
'
In Range
'
}
</
RangeBadge
>
<
RangeBadge
inRange=
{
!
outOfRange
}
>
{
outOfRange
?
'
Out of range
'
:
'
In Range
'
}
</
RangeBadge
>
...
@@ -468,7 +468,7 @@ export default function AddLiquidity({
...
@@ -468,7 +468,7 @@ export default function AddLiquidity({
{
price
?
(
{
price
?
(
<
TYPE
.
main
>
<
TYPE
.
main
>
{
invertPrice
?
price
?.
invert
()?.
toSignificant
(
8
)
:
price
?.
toSignificant
(
8
)
}{
'
'
}
{
invertPrice
?
price
?.
invert
()?.
toSignificant
(
8
)
:
price
?.
toSignificant
(
8
)
}{
'
'
}
{
currencyB
?.
symbol
}
= 1
{
currencyA
?.
symbol
}
{
quoteCurrency
?.
symbol
}
= 1
{
baseCurrency
?.
symbol
}
</
TYPE
.
main
>
</
TYPE
.
main
>
)
:
(
)
:
(
'
-
'
'
-
'
...
...
src/pages/MigrateV2/MigrateV2Pair.tsx
View file @
9743b211
...
@@ -141,7 +141,7 @@ function V2PairMigration({
...
@@ -141,7 +141,7 @@ function V2PairMigration({
priceDifferenceFraction
=
priceDifferenceFraction
.
multiply
(
-
1
)
priceDifferenceFraction
=
priceDifferenceFraction
.
multiply
(
-
1
)
}
}
const
largePriceDifference
=
priceDifferenceFraction
&&
!
priceDifferenceFraction
?.
lessThan
(
JSBI
.
BigInt
(
4
))
const
largePriceDifference
=
priceDifferenceFraction
&&
!
priceDifferenceFraction
?.
lessThan
(
JSBI
.
BigInt
(
2
))
// the following is a small hack to get access to price range data/input handlers
// the following is a small hack to get access to price range data/input handlers
const
[
baseToken
,
setBaseToken
]
=
useState
(
token0
)
const
[
baseToken
,
setBaseToken
]
=
useState
(
token0
)
...
...
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