Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5fca0ab
feat(network): integrate Fuse Network
developerfred Dec 26, 2021
d2df8cc
Merge remote-tracking branch 'upstream/develop' into feat/integrate-f…
developerfred Dec 30, 2021
ec4f3f5
Merge remote-tracking branch 'upstream/develop' into feat/integrate-f…
developerfred Dec 30, 2021
541f797
chore(pnpm): run pnpm install
developerfred Dec 30, 2021
a40deb9
Merge remote-tracking branch 'upstream/develop' into feat/integrate-f…
developerfred Dec 31, 2021
4ef6987
Merge remote-tracking branch 'upstream/develop' into feat/integrate-f…
developerfred Dec 31, 2021
1619feb
chore(fuse): add fuse on openocean
developerfred Dec 31, 2021
f3377f8
feat(fuse): add fuseFi dex on Fuse Network
developerfred Dec 31, 2021
76e107e
feat(fuse): add ELK Finance
developerfred Jan 1, 2022
041397f
feat(dex): add another chains for ELKFinance DEX
developerfred Jan 1, 2022
fca4f71
Merge remote-tracking branch 'origin/develop' into feat/integrate-fus…
developerfred Jan 4, 2022
7d7928e
feat(fuse): add fuse on constants and fuse assets
developerfred Jan 4, 2022
dce0258
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 6, 2022
f3a661c
feat(Fuse): enable elkfinance in bsc, Polygon, fantom and add balance…
developerfred Jan 6, 2022
9fd218e
feat(fuse): add some contract addrees ITO, NFT RedPacket, ERC RedPack…
developerfred Jan 6, 2022
1567863
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 6, 2022
730a350
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 10, 2022
1ff857c
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 11, 2022
548d25c
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 17, 2022
532f4c3
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 17, 2022
614a694
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 18, 2022
deb2711
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 25, 2022
16593e4
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 26, 2022
26beec6
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Jan 29, 2022
3ab8be7
Merge remote-tracking branch 'upstream/develop' into feat/integrate-f…
developerfred Feb 8, 2022
eb38ae4
chore(fuse): update multicall_address
developerfred Feb 8, 2022
a25acc9
Merge branch 'develop' into feat/integrate-fuse-network
developerfred Mar 9, 2022
e07048b
chore(fuse): update redPacket address
developerfred Mar 16, 2022
eb39526
Merge remote-tracking branch 'upstream/develop' into feat/integrate-f…
developerfred Mar 16, 2022
bc659ae
Merge remote-tracking branch 'origin/develop' into feat/integrate-fus…
developerfred Mar 17, 2022
b32e4d0
chore(fuse): fixed merge
developerfred Mar 17, 2022
f9c0a8a
Merge remote-tracking branch 'upstream/develop' into feat/integrate-f…
developerfred Mar 18, 2022
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
4 changes: 4 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"ecid",
"ecsign",
"elec",
"ELKFINANCE",
"encryptedmsg",
"endregion",
"enhanceable",
Expand All @@ -91,6 +92,8 @@
"formating",
"fullfilled",
"furucombo",
"fuse",
"fusefi",
"futuna",
"gasnow",
"geckoview",
Expand Down Expand Up @@ -214,6 +217,7 @@
"sint",
"solana",
"sollet",
"sparknet",
"steelblue",
"steganographic",
"steganography",
Expand Down
1 change: 1 addition & 0 deletions docs/evm-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ Goto `chrome-extension://jkoeaghipilijlahjplgbfiocjhldnap/dashboard.html#/wallet
| xDai | <https://github.com/DimensionDev/Maskbook/pull/4140> |
| Arbitrum | <https://github.com/DimensionDev/Maskbook/pull/3558> |
| Avalanche | <https://github.com/DimensionDev/Maskbook/pull/5289> |
| Fuse | <https://github.com/DimensionDev/Maskbook/pull/5309> |
1 change: 1 addition & 0 deletions packages/mask/shared/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const Flags = {
polygon_enabled: true,
arbitrum_enabled: true,
xdai_enabled: true,
fuse_enabled: true,
avalanche_enabled: true,
fantom_enabled: true,
flow_enabled: true,
Expand Down
Binary file added packages/mask/src/plugins/EVM/assets/fuse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/mask/src/plugins/EVM/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ export const PLUGIN_NETWORKS: Web3Plugin.NetworkDescriptor[] = [
iconColor: 'rgb(73, 169, 166)',
isMainnet: true,
},
{
ID: `${PLUGIN_ID}_fuse`,
networkSupporterPluginID: PLUGIN_ID,
chainId: ChainId.Fuse,
type: NetworkType.Fuse,
name: 'Fuse',
icon: new URL('./assets/fuse.png', import.meta.url),
iconColor: 'rgb(197, 250, 176)',
isMainnet: true,
},
{
ID: `${PLUGIN_ID}_avalanche`,
networkSupporterPluginID: PLUGIN_ID,
Expand Down
1 change: 1 addition & 0 deletions packages/mask/src/plugins/ITO/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const base: Plugin.Shared.Definition = {
ChainId.Aurora,
ChainId.Avalanche,
ChainId.Fantom,
ChainId.Fuse,
],
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/mask/src/plugins/RedPacket/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const base: Plugin.Shared.Definition = {
ChainId.Arbitrum,
ChainId.xDai,
ChainId.Fantom,
ChainId.Fuse,
ChainId.Avalanche,
ChainId.Aurora,
],
Expand Down
9 changes: 5 additions & 4 deletions packages/mask/src/plugins/Trader/apis/trader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export async function getAvailableTraderProviders(chainId: ChainId) {
TradeProvider.DODO,
TradeProvider.ZRX,
TradeProvider.OPENOCEAN,
TradeProvider.ELKFINANCE,
TradeProvider.TRISOLARIS,
]
case NetworkType.Binance:
Expand All @@ -35,23 +36,23 @@ export async function getAvailableTraderProviders(chainId: ChainId) {
TradeProvider.DODO,
TradeProvider.ZRX,
TradeProvider.OPENOCEAN,
TradeProvider.ELKFINANCE,
]
case NetworkType.Arbitrum:
return [TradeProvider.UNISWAP_V3, TradeProvider.OPENOCEAN, TradeProvider.DODO]
case NetworkType.xDai:
return [TradeProvider.SUSHISWAP, TradeProvider.OPENOCEAN]
return [TradeProvider.SUSHISWAP, TradeProvider.OPENOCEAN, TradeProvider.ELKFINANCE]
case NetworkType.Avalanche:
return [TradeProvider.SUSHISWAP, TradeProvider.OPENOCEAN, TradeProvider.TRADERJOE, TradeProvider.PANGOLIN]
case NetworkType.xDai:
return [TradeProvider.SUSHISWAP, TradeProvider.OPENOCEAN]
case NetworkType.Celo:
return [TradeProvider.SUSHISWAP]
case NetworkType.Fantom:
return [TradeProvider.SUSHISWAP]
case NetworkType.Fuse:
return [TradeProvider.SUSHISWAP, TradeProvider.FUSEFI, TradeProvider.ELKFINANCE]
case NetworkType.Aurora:
return [TradeProvider.DODO, TradeProvider.WANNASWAP, TradeProvider.TRISOLARIS]
case NetworkType.Boba:
case NetworkType.Fuse:
case NetworkType.Metis:
case NetworkType.Optimistic:
console.error('To be implement network: ', networkType)
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Trader/constants/0x.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export const ZRX_BASE_URL: Record<NetworkType, string> = {
[NetworkType.Polygon]: 'https://polygon.api.0x.org/',
[NetworkType.Arbitrum]: 'https://arbitrum.api.0x.org/',
[NetworkType.xDai]: 'https://xdai.api.0x.org/',
[NetworkType.Fuse]: 'https://fuse.api.0x.org/',
[NetworkType.Avalanche]: 'https://avalanche.api.0x.org/',
[NetworkType.Celo]: 'https://celo.api.0x.org/',
[NetworkType.Fantom]: 'https://fantom.api.0x.org/',
[NetworkType.Aurora]: 'https://aurora.api.0x.org/',
[NetworkType.Boba]: '',
[NetworkType.Fuse]: '',
[NetworkType.Metis]: '',
[NetworkType.Optimistic]: '',
}
Expand Down
1 change: 1 addition & 0 deletions packages/mask/src/plugins/Trader/constants/dodo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const networkNames: Record<NetworkType, string> = {
[NetworkType.Polygon]: 'matic',
[NetworkType.Arbitrum]: 'arbitrum',
[NetworkType.xDai]: 'xdai',
[NetworkType.Fuse]: 'fuse',
[NetworkType.Avalanche]: 'avalanche',
[NetworkType.Celo]: 'celo',
[NetworkType.Fantom]: 'fantom',
Expand Down
30 changes: 30 additions & 0 deletions packages/mask/src/plugins/Trader/constants/elkfinance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import {
ChainId,
DAI,
USDC,
USDT,
WBTC,
BTCB,
BUSD,
ETHER,
fUSD,
fUSDT,
WNATIVE,
WNATIVE_ONLY,
} from '@masknet/web3-shared-evm'
import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types'

/**
* Some tokens can only be swapped via certain pairs,
* so we override the list of bases that are considered for these tokens.
*/
export const ELKFINANCE_CUSTOM_BASES: ERC20TokenCustomizedBase = {}

export const ELKFINANCE_BASE_AGAINST_TOKENS: ERC20AgainstToken = {
...WNATIVE_ONLY,
[ChainId.Fuse]: [WNATIVE, DAI, USDC, USDT, WBTC, ETHER, fUSD].map((x) => x[ChainId.Fuse]),
[ChainId.Fantom]: [WNATIVE, DAI, USDC, fUSDT, WBTC].map((x) => x[ChainId.Fantom]),
[ChainId.Matic]: [WNATIVE, USDC, WBTC, DAI, USDT].map((x) => x[ChainId.Matic]),
[ChainId.BSC]: [WNATIVE, DAI, BUSD, USDC, USDT, BTCB].map((x) => x[ChainId.BSC]),
[ChainId.xDai]: [WNATIVE, USDC, USDT, WBTC].map((x) => x[ChainId.xDai]),
}
13 changes: 13 additions & 0 deletions packages/mask/src/plugins/Trader/constants/fusefi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ChainId, DAI, USDC, USDT, WBTC, ETHER, fUSD, WNATIVE, WNATIVE_ONLY } from '@masknet/web3-shared-evm'
import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types'

/**
* Some tokens can only be swapped via certain pairs,
* so we override the list of bases that are considered for these tokens.
*/
export const FUSEFI_CUSTOM_BASES: ERC20TokenCustomizedBase = {}

export const FUSEFI_BASE_AGAINST_TOKENS: ERC20AgainstToken = {
...WNATIVE_ONLY,
[ChainId.Fuse]: [WNATIVE, DAI, USDC, USDT, WBTC, ETHER, fUSD].map((x) => x[ChainId.Fuse]),
}
2 changes: 2 additions & 0 deletions packages/mask/src/plugins/Trader/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export * from './quickswap'
export * from './pancakeswap'
export * from './dodo'
export * from './bancor'
export * from './fusefi'
export * from './elkfinance'
export * from './traderjoe'
export * from './pangolindex'
export * from './wannaswap'
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Trader/constants/openocean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export const networkNames: Record<NetworkType, string> = {
[NetworkType.xDai]: 'xdai',
[NetworkType.Celo]: 'celo',
[NetworkType.Fantom]: 'fantom',
[NetworkType.Fuse]: 'fuse',
[NetworkType.Avalanche]: 'avalanche',
[NetworkType.Aurora]: 'aurora',
[NetworkType.Boba]: '',
[NetworkType.Fuse]: '',
[NetworkType.Metis]: '',
[NetworkType.Optimistic]: '',
}
1 change: 1 addition & 0 deletions packages/mask/src/plugins/Trader/constants/sushiswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const SUSHISWAP_BASE_AGAINST_TOKENS: ERC20AgainstToken = {
[ChainId.Matic]: [WNATIVE, USDC, WBTC, DAI, USDT].map((x) => x[ChainId.Matic]),
[ChainId.BSC]: [WNATIVE, DAI, BUSD, USDC, USDT, BTCB].map((x) => x[ChainId.BSC]),
[ChainId.xDai]: [WNATIVE, USDC, USDT, WBTC].map((x) => x[ChainId.xDai]),
[ChainId.Fuse]: [WNATIVE, USDC, USDT, WBTC].map((x) => x[ChainId.Fuse]),
[ChainId.Celo]: [WNATIVE, CUSD, CEUR].map((x) => x[ChainId.Celo]),
[ChainId.Fantom]: [WNATIVE, DAI, USDC, fUSDT, WBTC].map((x) => x[ChainId.Fantom]),
[ChainId.Avalanche]: [WNATIVE, DAI, USDC, WBTC, USDT].map((x) => x[ChainId.Avalanche]),
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Trader/helpers/uniswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function uniswapPriceTo(price: Price<Currency, Currency>) {

export function uniswapTokenTo(token: Token) {
return {
type: ['eth', 'matic', 'bnb'].includes(token.name?.toLowerCase() ?? '')
type: ['eth', 'matic', 'bnb', 'fuse'].includes(token.name?.toLowerCase() ?? '')
? EthereumTokenType.Native
: EthereumTokenType.ERC20,
name: token.name,
Expand Down
2 changes: 2 additions & 0 deletions packages/mask/src/plugins/Trader/pipes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const resolveTradeProviderName = createLookupTableResolver<TradeProvider,
[TradeProvider.DODO]: 'DODO',
[TradeProvider.BANCOR]: 'Bancor',
[TradeProvider.OPENOCEAN]: 'OpenOcean',
[TradeProvider.FUSEFI]: 'FuseFi',
[TradeProvider.ELKFINANCE]: 'ElkFinance',
[TradeProvider.TRADERJOE]: 'TraderJoe',
[TradeProvider.PANGOLIN]: 'PangolinDex',
[TradeProvider.TRISOLARIS]: 'Trisolaris',
Expand Down
1 change: 1 addition & 0 deletions packages/mask/src/plugins/Trader/trader/0x/useTrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function getNativeTokenLabel(networkType: NetworkType) {
case NetworkType.xDai:
case NetworkType.Celo:
case NetworkType.Fantom:
case NetworkType.Fuse:
case NetworkType.Aurora:
case NetworkType.Boba:
case NetworkType.Fuse:
Expand Down
28 changes: 28 additions & 0 deletions packages/mask/src/plugins/Trader/trader/useGetTradeContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import {
SUSHISWAP_CUSTOM_BASES,
UNISWAP_BASE_AGAINST_TOKENS,
UNISWAP_CUSTOM_BASES,
FUSEFI_BASE_AGAINST_TOKENS,
FUSEFI_CUSTOM_BASES,
ELKFINANCE_CUSTOM_BASES,
ELKFINANCE_BASE_AGAINST_TOKENS,
TRADERJOE_BASE_AGAINST_TOKENS,
TRADERJOE_CUSTOM_BASES,
PANGOLIN_BASE_AGAINST_TOKENS,
Expand Down Expand Up @@ -102,6 +106,30 @@ export function useGetTradeContext(tradeProvider?: TradeProvider) {
ADDITIONAL_TOKENS: {},
CUSTOM_TOKENS: PANCAKESWAP_CUSTOM_BASES,
}
case TradeProvider.FUSEFI:
return {
TYPE: tradeProvider,
IS_UNISWAP_V2_LIKE: true,
GRAPH_API: getTraderConstants(chainId).FUSEFI_THEGRAPH,
INIT_CODE_HASH: getTraderConstants(chainId).FUSEFI_INIT_CODE_HASH,
ROUTER_CONTRACT_ADDRESS: getTraderConstants(chainId).FUSEFI_ROUTER_ADDRESS,
FACTORY_CONTRACT_ADDRESS: getTraderConstants(chainId).FUSEFI_FACTORY_ADDRESS,
AGAINST_TOKENS: FUSEFI_BASE_AGAINST_TOKENS,
ADDITIONAL_TOKENS: {},
CUSTOM_TOKENS: FUSEFI_CUSTOM_BASES,
}
case TradeProvider.ELKFINANCE:
return {
TYPE: tradeProvider,
IS_UNISWAP_V2_LIKE: true,
GRAPH_API: DEX_TRADE.ELKFINANCE_THEGRAPH,
INIT_CODE_HASH: DEX_TRADE.ELKFINANCE_INIT_CODE_HASH,
ROUTER_CONTRACT_ADDRESS: DEX_TRADE.ELKFINANCE_ROUTER_ADDRESS,
FACTORY_CONTRACT_ADDRESS: DEX_TRADE.ELKFINANCE_FACTORY_ADDRESS,
AGAINST_TOKENS: ELKFINANCE_BASE_AGAINST_TOKENS,
ADDITIONAL_TOKENS: {},
CUSTOM_TOKENS: ELKFINANCE_CUSTOM_BASES,
}
case TradeProvider.TRADERJOE:
return {
TYPE: tradeProvider,
Expand Down
4 changes: 4 additions & 0 deletions packages/mask/src/plugins/Trader/trader/useTradeCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ export function useTradeCallback(
return uniswapV2Like
case TradeProvider.OPENOCEAN:
return openocean
case TradeProvider.FUSEFI:
return uniswapV2Like
case TradeProvider.ELKFINANCE:
return uniswapV2Like
default:
if (provider) unreachable(provider)
return []
Expand Down
29 changes: 29 additions & 0 deletions packages/mask/src/plugins/Trader/trader/useTradeContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import {
SUSHISWAP_CUSTOM_BASES,
UNISWAP_BASE_AGAINST_TOKENS,
UNISWAP_CUSTOM_BASES,
FUSEFI_BASE_AGAINST_TOKENS,
FUSEFI_CUSTOM_BASES,
ELKFINANCE_BASE_AGAINST_TOKENS,
ELKFINANCE_CUSTOM_BASES,
TRADERJOE_BASE_AGAINST_TOKENS,
TRADERJOE_CUSTOM_BASES,
PANGOLIN_BASE_AGAINST_TOKENS,
Expand Down Expand Up @@ -104,6 +108,30 @@ export function useTradeContext(tradeProvider: TradeProvider) {
ADDITIONAL_TOKENS: {},
CUSTOM_TOKENS: PANCAKESWAP_CUSTOM_BASES,
}
case TradeProvider.FUSEFI:
return {
TYPE: tradeProvider,
IS_UNISWAP_V2_LIKE: true,
GRAPH_API: getTraderConstants(chainId).FUSEFI_THEGRAPH,
INIT_CODE_HASH: getTraderConstants(chainId).FUSEFI_INIT_CODE_HASH,
ROUTER_CONTRACT_ADDRESS: getTraderConstants(chainId).FUSEFI_ROUTER_ADDRESS,
FACTORY_CONTRACT_ADDRESS: getTraderConstants(chainId).FUSEFI_FACTORY_ADDRESS,
AGAINST_TOKENS: FUSEFI_BASE_AGAINST_TOKENS,
ADDITIONAL_TOKENS: {},
CUSTOM_TOKENS: FUSEFI_CUSTOM_BASES,
}
case TradeProvider.ELKFINANCE:
return {
TYPE: tradeProvider,
IS_UNISWAP_V2_LIKE: true,
GRAPH_API: getTraderConstants(chainId).ELKFINANCE_THEGRAPH,
INIT_CODE_HASH: getTraderConstants(chainId).ELKFINANCE_INIT_CODE_HASH,
ROUTER_CONTRACT_ADDRESS: getTraderConstants(chainId).ELKFINANCE_ROUTER_ADDRESS,
FACTORY_CONTRACT_ADDRESS: getTraderConstants(chainId).ELKFINANCE_FACTORY_ADDRESS,
AGAINST_TOKENS: ELKFINANCE_BASE_AGAINST_TOKENS,
ADDITIONAL_TOKENS: {},
CUSTOM_TOKENS: ELKFINANCE_CUSTOM_BASES,
}
case TradeProvider.WANNASWAP:
return {
TYPE: tradeProvider,
Expand Down Expand Up @@ -176,6 +204,7 @@ export function useTradeContext(tradeProvider: TradeProvider) {
TYPE: tradeProvider,
ROUTER_CONTRACT_ADDRESS: DEX_TRADE.OPENOCEAN_EXCHANGE_PROXY_ADDRESS,
}

default:
unreachable(tradeProvider)
}
Expand Down
2 changes: 2 additions & 0 deletions packages/mask/src/plugins/Trader/types/trader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export enum ZrxTradePool {
UniswapV3 = 'Uniswap_V3',
WaultSwap = 'WaultSwap',
xSigma = 'xSigma',
Fusefi = 'Fusefi',
ElkFinance = 'ElkFinance',
TraderJoe = 'TraderJoe',
PangolinDex = 'PangolinDex',
Trisolaris = 'Trisolaris',
Expand Down
1 change: 1 addition & 0 deletions packages/mask/src/plugins/UnlockProtocol/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const graphEndpointKeyVal = {
[ChainId.Rinkeby]: 'https://api.thegraph.com/subgraphs/name/unlock-protocol/unlock-rinkeby',
[ChainId.xDai]: 'https://api.thegraph.com/subgraphs/name/unlock-protocol/xdai',
[ChainId.Matic]: 'https://api.thegraph.com/subgraphs/name/unlock-protocol/polygon',
[ChainId.Fuse]: 'https://api.thegraph.com/subgraphs/name/unlock-protocol/fuse',
[ChainId.Avalanche]: '',
}

Expand Down
1 change: 1 addition & 0 deletions packages/mask/src/plugins/Wallet/services/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export async function getSupportedNetworks() {
Flags.polygon_enabled ? NetworkType.Polygon : undefined,
Flags.arbitrum_enabled ? NetworkType.Arbitrum : undefined,
Flags.xdai_enabled ? NetworkType.xDai : undefined,
Flags.fuse_enabled ? NetworkType.Fuse : undefined,
Flags.celo_enabled ? NetworkType.Celo : undefined,
Flags.fantom_enabled ? NetworkType.Fantom : undefined,
Flags.avalanche_enabled ? NetworkType.Avalanche : undefined,
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Wallet/services/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export async function getAssetsList(
// xdai-assets is not support
const scopes = network
? [resolveZerionAssetsScopeName(network)]
: ['assets', 'bsc-assets', 'polygon-assets', 'arbitrum-assets', 'avalanche-assets']
: ['assets', 'bsc-assets', 'polygon-assets', 'arbitrum-assets', 'avalanche-assets', 'fuse-assets']
for (const scope of scopes) {
const { meta, payload } = await ZerionAPI.getAssetsList(address, scope)
if (meta.status !== 'ok') throw new Error('Fail to load assets.')
Expand Down
Loading