boltz-backend icon indicating copy to clipboard operation
boltz-backend copied to clipboard

Normal Swaps: Fail Swap If Overpayment >2x

Open kilrau opened this issue 11 months ago • 0 comments

In line with lightning specs, we should fail normal swaps that have chain overpayments of more than >2x as this is very likely a user error. User's mostly fatfinger "one 0 too much". This would add automation to overpayment refunds that we are currently handling manually (and rely on users contacting us).

PS: Elegant handling of overpayments via covenants (https://github.com/BoltzExchange/boltz-backend/issues/464) will only work on liquid. Overpayments on RSK should be avoidable.

kilrau avatar Mar 15 '24 11:03 kilrau