Count the transfer fee on top of what is sent

This commit is contained in:
ai-bot committed 2026-11-15 11:24:06 +00:00
1 parent 224c5bff29
commit 96840bff0d
1 file changed
+1 -2
+1 -2
View File
@@ -161,8 +161,7 @@
return 0; return 0;
} }
var sats = Skuld.parseSats(out.value) || 0; var sats = Skuld.parseSats(out.value) || 0;
if (FEE_TAKEN_ON_TOP.indexOf(type()) !== -1 if (FEE_TAKEN_ON_TOP.indexOf(type()) !== -1) {
&& Skuld.fieldValue("fee_currency") === "sats") {
sats += Skuld.parseSats(Skuld.fieldValue("fee")) || 0; sats += Skuld.parseSats(Skuld.fieldValue("fee")) || 0;
} }
return sats; return sats;