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
094664dc
Unverified
Commit
094664dc
authored
Jun 12, 2023
by
Tina
Committed by
GitHub
Jun 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Feature flag cleanup for Arbitrum native USDC (#6743)
remove feature flag stuff
parent
62a6ef00
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
36 deletions
+3
-36
FeatureFlagModal.tsx
src/components/FeatureFlagModal/FeatureFlagModal.tsx
+0
-7
CommonBases.tsx
src/components/SearchModal/CommonBases.tsx
+2
-5
routing.ts
src/constants/routing.ts
+1
-15
nativeUsdcArbitrum.ts
src/featureFlags/flags/nativeUsdcArbitrum.ts
+0
-9
No files found.
src/components/FeatureFlagModal/FeatureFlagModal.tsx
View file @
094664dc
import
{
BaseVariant
,
FeatureFlag
,
featureFlagSettings
,
useUpdateFlag
}
from
'
featureFlags
'
import
{
useNativeUSDCArbitrumFlag
}
from
'
featureFlags/flags/nativeUsdcArbitrum
'
import
{
DetailsV2Variant
,
useDetailsV2Flag
}
from
'
featureFlags/flags/nftDetails
'
import
{
useRoutingAPIForPriceFlag
}
from
'
featureFlags/flags/priceRoutingApi
'
import
{
TraceJsonRpcVariant
,
useTraceJsonRpcFlag
}
from
'
featureFlags/flags/traceJsonRpc
'
...
...
@@ -216,12 +215,6 @@ export default function FeatureFlagModal() {
featureFlag=
{
FeatureFlag
.
uraEnabled
}
label=
"Enable the Unified Routing API"
/>
<
FeatureFlagOption
variant=
{
BaseVariant
}
value=
{
useNativeUSDCArbitrumFlag
()
}
featureFlag=
{
FeatureFlag
.
nativeUsdcArbitrum
}
label=
"Enable Circle native USDC on Arbitrum"
/>
<
FeatureFlagOption
variant=
{
BaseVariant
}
value=
{
useRoutingAPIForPriceFlag
()
}
...
...
src/components/SearchModal/CommonBases.tsx
View file @
094664dc
...
...
@@ -4,8 +4,7 @@ import { Currency } from '@uniswap/sdk-core'
import
{
AutoColumn
}
from
'
components/Column
'
import
CurrencyLogo
from
'
components/Logo/CurrencyLogo
'
import
{
AutoRow
}
from
'
components/Row
'
import
{
COMMON_BASES
,
COMMON_BASES_V2
}
from
'
constants/routing
'
import
{
useNativeUSDCArbitrumEnabled
}
from
'
featureFlags/flags/nativeUsdcArbitrum
'
import
{
COMMON_BASES
}
from
'
constants/routing
'
import
{
useTokenInfoFromActiveList
}
from
'
hooks/useTokenInfoFromActiveList
'
import
{
getTokenAddress
}
from
'
lib/utils/analytics
'
import
{
Text
}
from
'
rebass
'
...
...
@@ -60,9 +59,7 @@ export default function CommonBases({
searchQuery
:
string
isAddressSearch
:
string
|
false
})
{
const
nativeUsdcArbitrumEnabled
=
useNativeUSDCArbitrumEnabled
()
const
commonBases
=
nativeUsdcArbitrumEnabled
?
COMMON_BASES_V2
:
COMMON_BASES
const
bases
=
chainId
!==
undefined
?
commonBases
[
chainId
]
??
[]
:
[]
const
bases
=
chainId
!==
undefined
?
COMMON_BASES
[
chainId
]
??
[]
:
[]
return
bases
.
length
>
0
?
(
<
MobileWrapper
gap=
"md"
>
...
...
src/constants/routing.ts
View file @
094664dc
...
...
@@ -4,7 +4,6 @@ import { SupportedChainId } from 'constants/chains'
import
{
AMPL
,
BRIDGED_USDC_ARBITRUM
,
BTC_BSC
,
BUSD_BSC
,
CAKE_BSC
,
...
...
@@ -154,7 +153,7 @@ export const COMMON_BASES: ChainCurrencyList = {
[
SupportedChainId
.
ARBITRUM_ONE
]:
[
nativeOnChain
(
SupportedChainId
.
ARBITRUM_ONE
),
DAI_ARBITRUM_ONE
,
BRIDGED_
USDC_ARBITRUM
,
USDC_ARBITRUM
,
USDT_ARBITRUM_ONE
,
WBTC_ARBITRUM_ONE
,
WRAPPED_NATIVE_CURRENCY
[
SupportedChainId
.
ARBITRUM_ONE
]
as
Token
,
...
...
@@ -211,19 +210,6 @@ export const COMMON_BASES: ChainCurrencyList = {
],
}
// This is the same as COMMON_BASES except it swaps out Bridged USDC on arbitrum for native USDC.
export
const
COMMON_BASES_V2
:
ChainCurrencyList
=
{
...
COMMON_BASES
,
[
SupportedChainId
.
ARBITRUM_ONE
]:
[
nativeOnChain
(
SupportedChainId
.
ARBITRUM_ONE
),
DAI_ARBITRUM_ONE
,
USDC_ARBITRUM
,
USDT_ARBITRUM_ONE
,
WBTC_ARBITRUM_ONE
,
WRAPPED_NATIVE_CURRENCY
[
SupportedChainId
.
ARBITRUM_ONE
]
as
Token
,
],
}
// used to construct the list of all pairs we consider by default in the frontend
export
const
BASES_TO_TRACK_LIQUIDITY_FOR
:
ChainTokenList
=
{
...
WRAPPED_NATIVE_CURRENCIES_ONLY
,
...
...
src/featureFlags/flags/nativeUsdcArbitrum.ts
deleted
100644 → 0
View file @
62a6ef00
import
{
BaseVariant
,
FeatureFlag
,
useBaseFlag
}
from
'
../index
'
export
function
useNativeUSDCArbitrumFlag
():
BaseVariant
{
return
useBaseFlag
(
FeatureFlag
.
nativeUsdcArbitrum
)
}
export
function
useNativeUSDCArbitrumEnabled
():
boolean
{
return
useNativeUSDCArbitrumFlag
()
===
BaseVariant
.
Enabled
}
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