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

@@ -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)));