diff --git a/BTCPayServer/BTCPayNetworkProvider.Ufo.cs b/BTCPayServer/BTCPayNetworkProvider.Ufo.cs new file mode 100644 index 000000000..45a3e6d6f --- /dev/null +++ b/BTCPayServer/BTCPayNetworkProvider.Ufo.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using BTCPayServer.Services.Rates; +using NBitcoin; +using NBXplorer; + +namespace BTCPayServer +{ + public partial class BTCPayNetworkProvider + { + public void InitUfo() + { + var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("UFO"); + Add(new BTCPayNetwork() + { + CryptoCode = nbxplorerNetwork.CryptoCode, + BlockExplorerLink = NetworkType == NetworkType.Mainnet ? "https://chainz.cryptoid.info/ufo/tx.dws?{0}" : "https://chainz.cryptoid.info/ufo/tx.dws?{0}", + NBitcoinNetwork = nbxplorerNetwork.NBitcoinNetwork, + NBXplorerNetwork = nbxplorerNetwork, + UriScheme = "ufo", + DefaultRateRules = new[] + { + "UFO_X = UFO_BTC * BTC_X", + "UFO_BTC = coinexchange(UFO_BTC)" + }, + CryptoImagePath = "imlegacy/ufo.png", + DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType), + CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("202'") : new KeyPath("1'") + }); + } + } +} diff --git a/BTCPayServer/BTCPayNetworkProvider.cs b/BTCPayServer/BTCPayNetworkProvider.cs index 21f030d31..5a1c997ce 100644 --- a/BTCPayServer/BTCPayNetworkProvider.cs +++ b/BTCPayServer/BTCPayNetworkProvider.cs @@ -52,6 +52,7 @@ namespace BTCPayServer InitMonacoin(); InitPolis(); InitFeathercoin(); + InitUfo(); } /// diff --git a/BTCPayServer/wwwroot/imlegacy/ufo.png b/BTCPayServer/wwwroot/imlegacy/ufo.png new file mode 100644 index 000000000..f48381134 Binary files /dev/null and b/BTCPayServer/wwwroot/imlegacy/ufo.png differ