boltz-web-app
boltz-web-app copied to clipboard
UX: Advanced "Make sure your swap confirms in x hours/minutes" warning
For normal swaps, it makes sense that we show a warning that tells the user to make sure their transaction confirms in a certain time period:
- when onchain fees spike above a certain threshold (eg 150 sat/vbyte on Bitcoin)
- the invoice expiry is in a certain time window (eg less than 1 hour)
Always showing the warning defeats the purpose imho, because if you always see it, you are always gonna ignore it.
And the time in the warning should not be set once, but update. So that if you invoice expires in 10 minutes, the time should update to 9 minutes after a minute of having the page open