Commit 5294b4f
committed
loop: clean up server cost calculation for slightly better UX
Previously we'd calculate the server costs (swap fees) by accounting for
both the on-chain HTLC and the off-chain payment which was confusing as
server cost fluctuated by the amount of the swap itself. Now we'll only
add the actual cost when the swap happened, so the server cost will go
form zero to the actual fee value paid.1 parent e1ddb50 commit 5294b4f
2 files changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
923 | | - | |
924 | | - | |
| 922 | + | |
925 | 923 | | |
926 | 924 | | |
927 | 925 | | |
| |||
959 | 957 | | |
960 | 958 | | |
961 | 959 | | |
962 | | - | |
963 | | - | |
964 | 960 | | |
965 | 961 | | |
966 | 962 | | |
| |||
977 | 973 | | |
978 | 974 | | |
979 | 975 | | |
| 976 | + | |
| 977 | + | |
980 | 978 | | |
981 | 979 | | |
982 | 980 | | |
| |||
1023 | 1021 | | |
1024 | 1022 | | |
1025 | 1023 | | |
1026 | | - | |
1027 | | - | |
| 1024 | + | |
1028 | 1025 | | |
1029 | 1026 | | |
1030 | 1027 | | |
1031 | 1028 | | |
1032 | 1029 | | |
1033 | 1030 | | |
1034 | 1031 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | 1032 | | |
1040 | 1033 | | |
1041 | 1034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
| 456 | + | |
456 | 457 | | |
457 | 458 | | |
458 | 459 | | |
| |||
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
542 | | - | |
543 | 543 | | |
544 | | - | |
545 | 544 | | |
546 | 545 | | |
547 | 546 | | |
| |||
0 commit comments