@using BTCPayServer.Services @model BTCPayServer.Models.InvoicingModels.PaymentModel @inject BTCPayNetworkProvider BTCPayNetworkProvider @{ var chains = BTCPayNetworkProvider.GetAll().OfType().ToDictionary(network => network.CryptoCode.ToLowerInvariant(), network => new { ChainId = network.ChainId, SmartContractAddress = (network as ERC20BTCPayNetwork)?.SmartContractAddress, Divisibility = network.Divisibility }); }