Skip to content

feat: allow zero offer collateral for single-funded DLCs#153

Merged
bennyhodl merged 1 commit intobennyhodl:masterfrom
matthewjablack:feat/single-funded-dlc-zero-collateral
Mar 23, 2026
Merged

feat: allow zero offer collateral for single-funded DLCs#153
bennyhodl merged 1 commit intobennyhodl:masterfrom
matthewjablack:feat/single-funded-dlc-zero-collateral

Conversation

@matthewjablack
Copy link
Copy Markdown
Contributor

Summary

Updates contract input validation to allow zero offer collateral, enabling single-funded DLC use cases where one party provides all the collateral.

Changes

  • Modified offer_collateral validation to only check dust limit when collateral is non-zero
  • Updated error message to clarify "non-zero offer collateral" must exceed dust limit
  • Added explanatory comment for the single-funded DLC use case

@bennyhodl bennyhodl merged commit a473d53 into bennyhodl:master Mar 23, 2026
59 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.

2 participants