You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculate an invoice inversing the Boltz fees in a way to drain the wallet. If the invoice returned contains an MRH request a new invoice without Boltz fees.
Some findings
Calculating the inverse fee can be tricky. Every time the invoice amount goes from x000 to x001 (e.g 2000 -> 2001) the total amount skips a number. It means we could not create a drain tx for that amount (unless we hack the drain tx and increase the fee out by 1 sat)
So if the wallet total is 2031 sats, lockup fee is 14 sats its not possible to create an invoice that will result in 2017 sats (invoice amount + boltz fee + network fee) for the drain
(again unless you change the lockup fee tx output to 15 sats in this case)
Calculate an invoice inversing the Boltz fees in a way to drain the wallet. If the invoice returned contains an MRH request a new invoice without Boltz fees.
Some findings
Calculating the inverse fee can be tricky. Every time the invoice amount goes from x000 to x001 (e.g 2000 -> 2001) the total amount skips a number. It means we could not create a drain tx for that amount (unless we hack the drain tx and increase the fee out by 1 sat)
So if the wallet total is 2031 sats, lockup fee is 14 sats its not possible to create an invoice that will result in 2017 sats (invoice amount + boltz fee + network fee) for the drain
(again unless you change the lockup fee tx output to 15 sats in this case)
2031 total - 15 lockup fee = 2016
2016 - 14 network fee - 2 boltz fee = 2000
The text was updated successfully, but these errors were encountered: