Skip to content

Commit 8e1b3a2

Browse files
authored
feat(wallet): Add Filecoin to Ramp.Network Asset List (#14236)
feat: add filecoin for ramp
1 parent 19427db commit 8e1b3a2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

components/brave_wallet/browser/brave_wallet_constants.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ const std::vector<mojom::BlockchainToken>& GetRampBuyTokens() {
104104
{"0x82030cdbd9e4b7c5bb0b811a61da6360d69449cc", "RealFevr", "", true,
105105
false, "FEVR", 18, true, "", "",
106106
mojom::kBinanceSmartChainMainnetChainId, mojom::CoinType::ETH},
107+
{"", "Filecoin", "", false, false, "FIL", 18, true, "", "",
108+
mojom::kFilecoinMainnet, mojom::CoinType::FIL},
107109
{"", "Celo", "", false, false, "CELO", 18, true, "", "",
108110
mojom::kCeloMainnetChainId, mojom::CoinType::ETH},
109111
{"0xD8763CBa276a3738E6DE85b4b3bF5FDed6D6cA73", "Celo Euro", "ceur.png",

components/brave_wallet_ui/constants/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ export const BuySupportedChains = [
542542
BraveWallet.AVALANCHE_MAINNET_CHAIN_ID,
543543
BraveWallet.CELO_MAINNET_CHAIN_ID,
544544
BraveWallet.SOLANA_MAINNET,
545-
BraveWallet.OPTIMISM_MAINNET_CHAIN_ID
545+
BraveWallet.OPTIMISM_MAINNET_CHAIN_ID,
546+
BraveWallet.FILECOIN_MAINNET
546547
]
547548

548549
export interface GetAllNetworksList {

components/brave_wallet_ui/utils/string-utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export const getRampNetworkPrefix = (chainId: string) => {
2727
return 'SOLANA'
2828
case BraveWallet.OPTIMISM_MAINNET_CHAIN_ID:
2929
return 'OPTIMISM'
30+
case BraveWallet.FILECOIN_MAINNET:
31+
return 'FILECOIN'
3032
default:
3133
return ''
3234
}

0 commit comments

Comments
 (0)