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
dce187e4
Unverified
Commit
dce187e4
authored
Apr 29, 2021
by
Noah Zinsmeister
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix price bug
parent
8859ff69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
index.tsx
src/components/PositionListItem/index.tsx
+3
-3
No files found.
src/components/PositionListItem/index.tsx
View file @
dce187e4
...
@@ -173,8 +173,8 @@ export function getPriceOrderingFromPositionForUI(
...
@@ -173,8 +173,8 @@ export function getPriceOrderingFromPositionForUI(
// otherwise, just return the default
// otherwise, just return the default
return
{
return
{
priceLower
:
position
.
token0Price
Upper
.
invert
()
,
priceLower
:
position
.
token0Price
Lower
,
priceUpper
:
position
.
token0Price
Lower
.
invert
()
,
priceUpper
:
position
.
token0Price
Upper
,
quote
:
token1
,
quote
:
token1
,
base
:
token0
,
base
:
token0
,
}
}
...
@@ -224,7 +224,7 @@ export default function PositionListItem({ positionDetails }: PositionListItemPr
...
@@ -224,7 +224,7 @@ export default function PositionListItem({ positionDetails }: PositionListItemPr
const
[
feeValue0
,
feeValue1
]
=
useV3PositionFees
(
pool
??
undefined
,
positionDetails
)
const
[
feeValue0
,
feeValue1
]
=
useV3PositionFees
(
pool
??
undefined
,
positionDetails
)
// check if price is within range
// check if price is within range
const
outOfRange
:
boolean
=
pool
?
pool
.
tickCurrent
<
tickLower
||
pool
.
tickCurrent
>
tickUpper
:
false
const
outOfRange
:
boolean
=
pool
?
pool
.
tickCurrent
<
tickLower
||
pool
.
tickCurrent
>
=
tickUpper
:
false
const
positionSummaryLink
=
'
/pool/
'
+
positionDetails
.
tokenId
const
positionSummaryLink
=
'
/pool/
'
+
positionDetails
.
tokenId
...
...
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