Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion locale/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,11 @@ msgstr "Pooled {0}"
#~ msgid "Pour a hot bowl of MISO, the new <0>token launchpad</0> from SUSHI"
#~ msgstr ""

#: src/pages/bridge/index.tsx:620
#: src/pages/bridge/index.tsx:657
msgid "Powered by Relay"
msgstr "Powered by Relay"

#: src/pages/bridge/index.tsx:658
msgid "Powered by Anyswap Network"
msgstr "Powered by Anyswap Network"

Expand Down
6 changes: 5 additions & 1 deletion locale/zh-CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,11 @@ msgstr "汇集{0}"
#~ msgid "Pour a hot bowl of MISO, the new <0>token launchpad</0> from SUSHI"
#~ msgstr "来一碗热味增汤, Sushi全新的<0>代币Launchpad</0>"

#: src/pages/bridge/index.tsx:620
#: src/pages/bridge/index.tsx:657
msgid "Powered by Relay"
msgstr ""

#: src/pages/bridge/index.tsx:658
msgid "Powered by Anyswap Network"
msgstr ""

Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"eslint": "^7.30.0",
"eslint-config-next": "^11.0.1",
"eth-permit": "^0.1.10",
"ethers": "^5.4.1",
"ethers": "^5.4.7",
"fathom-client": "^3.0.0",
"feather-icons": "^4.28.0",
"fuse.js": "^6.4.6",
Expand All @@ -100,7 +100,7 @@
"lottie-react": "^2.1.0",
"madge": "^5.0.1",
"next": "^11.0.1",
"next-pwa": "^5.2.22",
"next-pwa": "^5.3.1",
"next-unused": "^0.0.6",
"node-vibrant": "3.1.6",
"numeral": "^2.0.6",
Expand All @@ -119,10 +119,10 @@
"react-popper": "^2.2.5",
"react-redux": "^7.2.4",
"react-router-dom": "^5.3.0",
"react-use": "^17.3.1",
"react-spring": "^8.0.27",
"react-table": "^7.7.0",
"react-tabs": "^3.2.2",
"react-use": "^17.3.1",
"react-use-gesture": "^9.1.3",
"react-virtualized": "^9.22.3",
"react-virtualized-auto-sizer": "^1.0.5",
Expand Down Expand Up @@ -156,25 +156,25 @@
"@types/big.js": "^6.1.1",
"apollo-cache-inmemory": "^1.6.6",
"apollo-link-http": "^1.5.17",
"dayjs": "^1.10.7",
"axios": "^0.21.1",
"big.js": "^6.1.1",
"cids": "^1.1.7",
"dayjs": "^1.10.7",
"decimal.js-light": "^2.5.1",
"faunadb": "^4.4.1",
"graphql": "^15.5.3",
"graphql-request": "^3.5.0",
"mysql": "^2.18.1",
"lightweight-charts": "^3.6.1",
"moment": "^2.29.1",
"multicodec": "^3.1.0",
"multihashes": "^4.0.2",
"mysql": "^2.18.1",
"react-datetime": "^3.1.0",
"react-google-recaptcha": "^2.1.0",
"react-google-recaptcha-v3": "^1.9.5",
"tiny-invariant": "^1.1.0",
"toformat": "^2.0.0",
"web3": "3.0.0-rc.4",
"web3-eth-abi": "^1.5.2",
"lightweight-charts": "^3.6.1"
"web3-eth-abi": "^1.5.2"
}
}
14 changes: 13 additions & 1 deletion src/components/CurrencyLogo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const BLOCKCHAIN = {
[ChainId.MATIC]: 'polygon',
[ChainId.XDAI]: 'xdai',
[ChainId.MOONRIVER]: 'moonriver',
[ChainId.AVALANCHE]: 'avalanche',
// [ChainId.OKEX]: 'okex',
}

Expand All @@ -43,6 +44,17 @@ function getCurrencyLogoUrls(currency) {
return urls
}

function getCurrencyLogoUrlsFromRelay(currency) {
const urls = []
if (currency.chainId in BLOCKCHAIN) {
urls.push(
`https://raw.githubusercontent.com/zeroexchange/bridge-tokens/main/${BLOCKCHAIN[currency.chainId]}-tokens/${currency.address}/logo.png`
)
}

return urls
}

const AvalancheLogo = 'https://raw.githubusercontent.com/sushiswap/icons/master/token/avax.jpg'
const BinanceCoinLogo =
'https://raw.githubusercontent.com/solarbeamio/assets/master/blockchains/smartchain/info/logo.png'
Expand Down Expand Up @@ -115,7 +127,7 @@ const CurrencyLogo: FunctionComponent<CurrencyLogoProps> = ({
}

if (currency.isToken) {
const defaultUrls = [...getCurrencyLogoUrls(currency)]
const defaultUrls = [...getCurrencyLogoUrls(currency), ...getCurrencyLogoUrlsFromRelay(currency)]
if (currency instanceof WrappedTokenInfo) {
return [...uriLocations, ...defaultUrls, unknown]
}
Expand Down
10 changes: 5 additions & 5 deletions src/connectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ export const injected = new InjectedConnector({
// 42, // kovan
// 250, // fantom
// 4002, // fantom testnet
// 137, // matic
137, // matic
// 80001, // matic testnet
// 100, // xdai
// 56, // binance smart chain
// 97, // binance smart chain testnet
// 1287, // moonbase
1285, // moonriver
// 43114, // avalanche
43114, // avalanche
// 43113, // fuji
// 128, // heco
// 256, // heco testnet
Expand All @@ -86,16 +86,16 @@ export const bridgeInjected = new InjectedConnector({
// 42, // kovan
// 250, // fantom
// 4002, // fantom testnet
// 137, // matic
137, // matic
// 80001, // matic testnet
// 100, // xdai
56, // binance smart chain
// 97, // binance smart chain testnet
// 1287, // moonbase
1285, // moonriver
// 43114, // avalanche
43114, // avalanche
// 43113, // fuji
// 128, // heco
128, // heco
// 256, // heco testnet
// 1666600000, // harmony
// 1666700000, // harmony testnet
Expand Down
Loading