mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 15:44:26 +01:00
update prism
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)));
|
||||||
|
|||||||
Reference in New Issue
Block a user