diff --git a/BTCPayServer.Common/Altcoins/BTCPayNetworkProvider.MonetaryUnit.cs b/BTCPayServer.Common/Altcoins/BTCPayNetworkProvider.MonetaryUnit.cs
new file mode 100644
index 000000000..20b396f21
--- /dev/null
+++ b/BTCPayServer.Common/Altcoins/BTCPayNetworkProvider.MonetaryUnit.cs
@@ -0,0 +1,29 @@
+using NBitcoin;
+using NBXplorer;
+
+namespace BTCPayServer
+{
+ public partial class BTCPayNetworkProvider
+ {
+ public void InitMonetaryUnit()
+ {
+ var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("MUE");
+ Add(new BTCPayNetwork()
+ {
+ CryptoCode = nbxplorerNetwork.CryptoCode,
+ DisplayName = "MonetaryUnit",
+ BlockExplorerLink = NetworkType == NetworkType.Mainnet ? "https://explorer.monetaryunit.org/#/MUE/mainnet/tx/{0}" : "https://explorer.monetaryunit.org/#/MUE/mainnet/tx/{0}",
+ NBXplorerNetwork = nbxplorerNetwork,
+ UriScheme = "monetaryunit",
+ DefaultRateRules = new[]
+ {
+ "MUE_X = MUE_BTC * BTC_X",
+ "MUE_BTC = bittrex(MUE_BTC)"
+ },
+ CryptoImagePath = "imlegacy/monetaryunit.png",
+ DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
+ CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("31'") : new KeyPath("1'")
+ });
+ }
+ }
+}
diff --git a/BTCPayServer.Common/BTCPayNetworkProvider.cs b/BTCPayServer.Common/BTCPayNetworkProvider.cs
index 194c73d89..b54f5d401 100644
--- a/BTCPayServer.Common/BTCPayNetworkProvider.cs
+++ b/BTCPayServer.Common/BTCPayNetworkProvider.cs
@@ -58,6 +58,7 @@ namespace BTCPayServer
InitPolis();
InitChaincoin();
// InitArgoneum();//their rate source is down 9/15/20.
+ InitMonetaryUnit();
InitEthereum();
InitERC20();
@@ -132,4 +133,4 @@ namespace BTCPayServer
return network as T;
}
}
-}
+}
\ No newline at end of file
diff --git a/BTCPayServer.Common/BTCPayServer.Common.csproj b/BTCPayServer.Common/BTCPayServer.Common.csproj
index 640245b5a..23a8e57c7 100644
--- a/BTCPayServer.Common/BTCPayServer.Common.csproj
+++ b/BTCPayServer.Common/BTCPayServer.Common.csproj
@@ -4,9 +4,9 @@
-
+
-
+
\ No newline at end of file
diff --git a/BTCPayServer.Rating/Currencies.json b/BTCPayServer.Rating/Currencies.json
index f1c39a68b..9fcf31523 100644
--- a/BTCPayServer.Rating/Currencies.json
+++ b/BTCPayServer.Rating/Currencies.json
@@ -1280,6 +1280,13 @@
"symbol":null,
"crypto":true
},
+ {
+ "name":"MonetaryUnit",
+ "code":"MUE",
+ "divisibility":8,
+ "symbol":null,
+ "crypto":true
+ },
{
"name":"Satoshis",
"code":"SATS",
diff --git a/BTCPayServer/wwwroot/imlegacy/monetaryunit.png b/BTCPayServer/wwwroot/imlegacy/monetaryunit.png
new file mode 100644
index 000000000..1b2b2f679
Binary files /dev/null and b/BTCPayServer/wwwroot/imlegacy/monetaryunit.png differ