update prism

This commit is contained in:
Kukks
2023-07-24 20:00:32 +02:00
parent d277caa3cc
commit 7771a321cb
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ public class PrismPlugin : BaseBTCPayServerPlugin
{ {
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } = public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
{ {
new() {Identifier = nameof(BTCPayServer), Condition = ">=1.10.0"} new() {Identifier = nameof(BTCPayServer), Condition = ">=1.11.0"}
}; };
public override void Execute(IServiceCollection applicationBuilder) public override void Execute(IServiceCollection applicationBuilder)

View File

@@ -350,7 +350,7 @@ namespace BTCPayServer.Plugins.Prism
} }
var msats = pm.Calculate().CryptoPaid.Satoshi * 1000; var msats = LightMoney.FromUnit(pm.Calculate().CryptoPaid, LightMoneyUnit.BTC).ToUnit(LightMoneyUnit.MilliSatoshi);
//compute the sats for each destination based on splits percentage //compute the sats for each destination based on splits percentage
var msatsPerDestination = var msatsPerDestination =
splits.ToDictionary(s => s.Destination, s => (long) (msats * (s.Percentage / 100))); splits.ToDictionary(s => s.Destination, s => (long) (msats * (s.Percentage / 100)));