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
652a8305
Unverified
Commit
652a8305
authored
Sep 05, 2023
by
Charles Bachmeier
Committed by
GitHub
Sep 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add BNB support to Token Search and Explore (#7223)
parent
80a77dd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
SearchBarDropdown.tsx
src/components/NavBar/SearchBarDropdown.tsx
+0
-2
util.tsx
src/graphql/data/util.tsx
+4
-3
No files found.
src/components/NavBar/SearchBarDropdown.tsx
View file @
652a8305
...
@@ -362,8 +362,6 @@ function SearchBarDropdownContents({
...
@@ -362,8 +362,6 @@ function SearchBarDropdownContents({
function
ComingSoonText
({
chainId
}:
{
chainId
:
ChainId
})
{
function
ComingSoonText
({
chainId
}:
{
chainId
:
ChainId
})
{
switch
(
chainId
)
{
switch
(
chainId
)
{
case
ChainId
.
BNB
:
return
<
Trans
>
Coming soon: search and explore tokens on BNB Chain
</
Trans
>
case
ChainId
.
AVALANCHE
:
case
ChainId
.
AVALANCHE
:
return
<
Trans
>
Coming soon: search and explore tokens on Avalanche Chain
</
Trans
>
return
<
Trans
>
Coming soon: search and explore tokens on Avalanche Chain
</
Trans
>
default
:
default
:
...
...
src/graphql/data/util.tsx
View file @
652a8305
...
@@ -184,13 +184,14 @@ export function logSentryErrorForUnsupportedChain({
...
@@ -184,13 +184,14 @@ export function logSentryErrorForUnsupportedChain({
export
const
BACKEND_SUPPORTED_CHAINS
=
[
export
const
BACKEND_SUPPORTED_CHAINS
=
[
Chain
.
Ethereum
,
Chain
.
Ethereum
,
Chain
.
Polygon
,
Chain
.
Arbitrum
,
Chain
.
Arbitrum
,
Chain
.
Optimism
,
Chain
.
Optimism
,
Chain
.
Celo
,
Chain
.
Polygon
,
Chain
.
Base
,
Chain
.
Base
,
Chain
.
Bnb
,
Chain
.
Celo
,
]
as
const
]
as
const
export
const
BACKEND_NOT_YET_SUPPORTED_CHAIN_IDS
=
[
ChainId
.
BNB
,
ChainId
.
AVALANCHE
]
as
const
export
const
BACKEND_NOT_YET_SUPPORTED_CHAIN_IDS
=
[
ChainId
.
AVALANCHE
]
as
const
export
function
getTokenDetailsURL
({
export
function
getTokenDetailsURL
({
address
,
address
,
...
...
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