Open ok300 opened 3 months ago
I checked all swap types in the Boltz UI and it's a bit more complicated:
Swap Type | Checked to fit within pair limits | Notes |
---|---|---|
LN -> BTC | input | invoice amount |
BTC -> LN | output | invoice amount |
LN -> LBTC | input | invoice amount |
LBTC -> LN | output | invoice amount |
BTC <-> LBTC | input |
I'll mark this as a draft until I figure out a simple way to cover all these cases.
Hey @ok300 Please setup commit signing.
Before,
limits.within()
andcheck_limits_within()
checked if theoutput_amount
was within the limitsmin
/max
.However, interacting with the Boltz Web UI shows that the limits validation actually applies to the input amount, i.e. the amount that will be swapped.
This PR renames the
output_amount
toswap_amount
for clarity.