Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
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
vicotor
frontend
Commits
a5ea1a16
Commit
a5ea1a16
authored
Feb 19, 2025
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add n/a pool token fdv/mc
parent
9f4c22c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
pools.tsx
types/api/pools.tsx
+4
-4
PoolInfo.tsx
ui/pool/PoolInfo.tsx
+16
-4
No files found.
types/api/pools.tsx
View file @
a5ea1a16
...
@@ -15,10 +15,10 @@ export type Pool = {
...
@@ -15,10 +15,10 @@ export type Pool = {
quote_token_address
:
string
;
quote_token_address
:
string
;
quote_token_symbol
:
string
;
quote_token_symbol
:
string
;
quote_token_icon_url
:
string
|
null
;
quote_token_icon_url
:
string
|
null
;
base_token_fully_diluted_valuation_usd
:
string
;
base_token_fully_diluted_valuation_usd
:
string
|
null
;
base_token_market_cap_usd
:
string
;
base_token_market_cap_usd
:
string
|
null
;
quote_token_fully_diluted_valuation_usd
:
string
;
quote_token_fully_diluted_valuation_usd
:
string
|
null
;
quote_token_market_cap_usd
:
string
;
quote_token_market_cap_usd
:
string
|
null
;
liquidity
:
string
;
liquidity
:
string
;
dex
:
{
dex
:
{
id
:
string
;
id
:
string
;
...
...
ui/pool/PoolInfo.tsx
View file @
a5ea1a16
...
@@ -67,7 +67,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
...
@@ -67,7 +67,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
</
DetailsInfoItem
.
Label
>
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
>
<
DetailsInfoItem
.
Value
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
$
{
Number
(
data
.
base_token_fully_diluted_valuation_usd
).
toLocaleString
(
undefined
,
{
maximumFractionDigits
:
2
,
notation
:
'
compact
'
})
}
{
data
.
base_token_fully_diluted_valuation_usd
?
`$${ Number(data.base_token_fully_diluted_valuation_usd).toLocaleString(undefined, { maximumFractionDigits: 2, notation: 'compact' }) }`
:
'
N/A
'
}
</
Skeleton
>
</
Skeleton
>
</
DetailsInfoItem
.
Value
>
</
DetailsInfoItem
.
Value
>
...
@@ -79,7 +82,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
...
@@ -79,7 +82,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
</
DetailsInfoItem
.
Label
>
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
>
<
DetailsInfoItem
.
Value
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
$
{
Number
(
data
.
base_token_market_cap_usd
).
toLocaleString
(
undefined
,
{
maximumFractionDigits
:
2
,
notation
:
'
compact
'
})
}
{
data
.
base_token_market_cap_usd
?
`$${ Number(data.base_token_market_cap_usd).toLocaleString(undefined, { maximumFractionDigits: 2, notation: 'compact' }) }`
:
'
N/A
'
}
</
Skeleton
>
</
Skeleton
>
</
DetailsInfoItem
.
Value
>
</
DetailsInfoItem
.
Value
>
...
@@ -91,7 +97,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
...
@@ -91,7 +97,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
</
DetailsInfoItem
.
Label
>
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
>
<
DetailsInfoItem
.
Value
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
$
{
Number
(
data
.
quote_token_fully_diluted_valuation_usd
).
toLocaleString
(
undefined
,
{
maximumFractionDigits
:
2
,
notation
:
'
compact
'
})
}
{
data
.
quote_token_fully_diluted_valuation_usd
?
`$${ Number(data.quote_token_fully_diluted_valuation_usd).toLocaleString(undefined, { maximumFractionDigits: 2, notation: 'compact' }) }`
:
'
N/A
'
}
</
Skeleton
>
</
Skeleton
>
</
DetailsInfoItem
.
Value
>
</
DetailsInfoItem
.
Value
>
...
@@ -103,7 +112,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
...
@@ -103,7 +112,10 @@ const PoolInfo = ({ data, isPlaceholderData }: Props) => {
</
DetailsInfoItem
.
Label
>
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
>
<
DetailsInfoItem
.
Value
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
$
{
Number
(
data
.
quote_token_market_cap_usd
).
toLocaleString
(
undefined
,
{
maximumFractionDigits
:
2
,
notation
:
'
compact
'
})
}
{
data
.
quote_token_market_cap_usd
?
`$${ Number(data.quote_token_market_cap_usd).toLocaleString(undefined, { maximumFractionDigits: 2, notation: 'compact' }) }`
:
'
N/A
'
}
</
Skeleton
>
</
Skeleton
>
</
DetailsInfoItem
.
Value
>
</
DetailsInfoItem
.
Value
>
...
...
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