Skip to content

Release: develop -> main#3322

Merged
TaprootFreak merged 1 commit intomainfrom
develop
Mar 2, 2026
Merged

Release: develop -> main#3322
TaprootFreak merged 1 commit intomainfrom
develop

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Mar 2, 2026

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

…back (#3321)

* fix: check Binance minimum before Lightning withdrawal to enable fallback

When the Lightning withdrawal amount is below Binance's minimum
(0.00002 BTC), the API rejects the request. Previously this was
caught as a generic error and mapped to OrderFailedException, which
immediately fails the pipeline with no fallback path.

Now the minimum is checked upfront and throws
OrderNotProcessableException instead, allowing the pipeline to
follow the configured onFail action chain (e.g. buy liquidity via
a sub-pipeline).

* refactor: simplify min withdrawal check into single guard

Replace two separate checks (amount <= 0 and amount < minimum)
with a single check against the Binance minimum withdrawal amount.

* fix: use Binance minimum withdrawal amount instead of failing

When the requested amount is below Binance's Lightning minimum
(0.00002 BTC), withdraw the minimum instead of rejecting the order.
Only fail if the Binance balance cannot cover the minimum.
@TaprootFreak TaprootFreak merged commit 7cc07ba into main Mar 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant