feat: support ARC_WSS env var to override Arc WebSocket URL

This commit is contained in:
line-6000
2026-05-21 01:19:26 +08:00
parent f23f47a1e8
commit 33cc2e1cfb
195 changed files with 223 additions and 201 deletions
@@ -59,6 +59,17 @@ func buildSupportedAssets() ([]response.NetworkTokenSupport, error) {
})
}
// ARC testnet tokens are hardcoded until the chain is formally added to
// the database. Show ARC in the list only if there is at least one active
// wallet address for the network.
arcWallets, err := data.GetAvailableWalletAddressByNetwork(mdb.NetworkArc)
if err == nil && len(arcWallets) > 0 {
supports = append(supports, response.NetworkTokenSupport{
Network: mdb.NetworkArc,
Tokens: []string{"EURC", "USDC"},
})
}
return supports, nil
}