mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
update prism
This commit is contained in:
@@ -11,7 +11,7 @@ public class PrismPlugin : BaseBTCPayServerPlugin
|
||||
{
|
||||
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)
|
||||
|
||||
@@ -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
|
||||
var msatsPerDestination =
|
||||
splits.ToDictionary(s => s.Destination, s => (long) (msats * (s.Percentage / 100)));
|
||||
|
||||
Reference in New Issue
Block a user