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
40b1e407
Unverified
Commit
40b1e407
authored
Oct 11, 2023
by
eddie
Committed by
GitHub
Oct 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove bridge usdc arbitrum (#7446)
parent
aee4df10
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
15 deletions
+6
-15
PortfolioLogo.test.tsx
...onents/AccountDrawer/MiniPortfolio/PortfolioLogo.test.tsx
+2
-2
PortfolioLogo.test.tsx.snap
...r/MiniPortfolio/__snapshots__/PortfolioLogo.test.tsx.snap
+1
-1
utils.ts
src/components/FiatOnrampModal/utils.ts
+0
-2
tokens.ts
src/constants/tokens.ts
+1
-8
useStablecoinPrice.ts
src/hooks/useStablecoinPrice.ts
+2
-2
No files found.
src/components/AccountDrawer/MiniPortfolio/PortfolioLogo.test.tsx
View file @
40b1e407
import
{
ChainId
}
from
'
@uniswap/sdk-core
'
import
{
BRIDGED_USDC_ARBITRUM
,
DAI
,
DAI_ARBITRUM_ONE
,
USDC_MAINNET
}
from
'
constants/tokens
'
import
{
DAI
,
DAI_ARBITRUM_ONE
,
USDC_ARBITRUM
,
USDC_MAINNET
}
from
'
constants/tokens
'
import
{
render
}
from
'
test-utils/render
'
import
{
PortfolioLogo
}
from
'
./PortfolioLogo
'
...
...
@@ -12,7 +12,7 @@ describe('PortfolioLogo', () => {
it
(
'
renders with L2 icon
'
,
()
=>
{
const
{
container
}
=
render
(
<
PortfolioLogo
chainId=
{
ChainId
.
ARBITRUM_ONE
}
currencies=
{
[
DAI_ARBITRUM_ONE
,
BRIDGED_
USDC_ARBITRUM
]
}
/>
<
PortfolioLogo
chainId=
{
ChainId
.
ARBITRUM_ONE
}
currencies=
{
[
DAI_ARBITRUM_ONE
,
USDC_ARBITRUM
]
}
/>
)
expect
(
container
).
toMatchSnapshot
()
})
...
...
src/components/AccountDrawer/MiniPortfolio/__snapshots__/PortfolioLogo.test.tsx.snap
View file @
40b1e407
...
...
@@ -78,7 +78,7 @@ exports[`PortfolioLogo renders with L2 icon 1`] = `
/>
<img
class="c2"
src="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/arbitrum/assets/0x
FF970A61A04b1cA14834A43f5dE4533eBDDB5CC8
/logo.png"
src="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/arbitrum/assets/0x
af88d065e77c8cC2239327C5EDb3A432268e5831
/logo.png"
/>
</div>
<div
...
...
src/components/FiatOnrampModal/utils.ts
View file @
40b1e407
import
{
ChainId
,
WETH9
}
from
'
@uniswap/sdk-core
'
import
{
BRIDGED_USDC_ARBITRUM
,
MATIC
,
USDC_ARBITRUM
,
USDC_MAINNET
,
...
...
@@ -34,7 +33,6 @@ const CURRENCY_CODES: {
},
[
Chain
.
Arbitrum
]:
{
[
USDC_ARBITRUM
.
address
.
toLowerCase
()]:
'
usdc_arbitrum
'
,
[
BRIDGED_USDC_ARBITRUM
.
address
.
toLowerCase
()]:
'
usdc_arbitrum
'
,
native
:
'
eth_arbitrum
'
,
},
[
Chain
.
Optimism
]:
{
...
...
src/constants/tokens.ts
View file @
40b1e407
...
...
@@ -31,13 +31,6 @@ const USDC_OPTIMISM_GOERLI = new Token(
'
USDC
'
,
'
USD//C
'
)
export
const
BRIDGED_USDC_ARBITRUM
=
new
Token
(
ChainId
.
ARBITRUM_ONE
,
'
0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8
'
,
6
,
'
USDC
'
,
'
USD//C
'
)
export
const
USDC_ARBITRUM
=
new
Token
(
ChainId
.
ARBITRUM_ONE
,
'
0xaf88d065e77c8cC2239327C5EDb3A432268e5831
'
,
...
...
@@ -468,7 +461,7 @@ export function getSwapCurrencyId(currency: Currency): string {
export
const
TOKEN_SHORTHANDS
:
{
[
shorthand
:
string
]:
{
[
chainId
in
ChainId
]?:
string
}
}
=
{
USDC
:
{
[
ChainId
.
MAINNET
]:
USDC_MAINNET
.
address
,
[
ChainId
.
ARBITRUM_ONE
]:
BRIDGED_
USDC_ARBITRUM
.
address
,
[
ChainId
.
ARBITRUM_ONE
]:
USDC_ARBITRUM
.
address
,
[
ChainId
.
ARBITRUM_GOERLI
]:
USDC_ARBITRUM_GOERLI
.
address
,
[
ChainId
.
OPTIMISM
]:
USDC_OPTIMISM
.
address
,
[
ChainId
.
OPTIMISM_GOERLI
]:
USDC_OPTIMISM_GOERLI
.
address
,
...
...
src/hooks/useStablecoinPrice.ts
View file @
40b1e407
...
...
@@ -6,9 +6,9 @@ import { INTERNAL_ROUTER_PREFERENCE_PRICE } from 'state/routing/types'
import
{
useRoutingAPITrade
}
from
'
state/routing/useRoutingAPITrade
'
import
{
BRIDGED_USDC_ARBITRUM
,
CUSD_CELO
,
DAI_OPTIMISM
,
USDC_ARBITRUM
,
USDC_AVALANCHE
,
USDC_MAINNET
,
USDC_POLYGON
,
...
...
@@ -19,7 +19,7 @@ import {
// The amount is large enough to filter low liquidity pairs.
const
STABLECOIN_AMOUNT_OUT
:
{
[
chainId
:
number
]:
CurrencyAmount
<
Token
>
}
=
{
[
ChainId
.
MAINNET
]:
CurrencyAmount
.
fromRawAmount
(
USDC_MAINNET
,
100
_000e6
),
[
ChainId
.
ARBITRUM_ONE
]:
CurrencyAmount
.
fromRawAmount
(
BRIDGED_
USDC_ARBITRUM
,
10
_000e6
),
[
ChainId
.
ARBITRUM_ONE
]:
CurrencyAmount
.
fromRawAmount
(
USDC_ARBITRUM
,
10
_000e6
),
[
ChainId
.
OPTIMISM
]:
CurrencyAmount
.
fromRawAmount
(
DAI_OPTIMISM
,
10
_000e18
),
[
ChainId
.
POLYGON
]:
CurrencyAmount
.
fromRawAmount
(
USDC_POLYGON
,
10
_000e6
),
[
ChainId
.
CELO
]:
CurrencyAmount
.
fromRawAmount
(
CUSD_CELO
,
10
_000e18
),
...
...
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