Count the transfer fee on top of what is sent
This commit is contained in:
1 parent
224c5bff29
commit
96840bff0d
1 file changed
+1
-2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user