-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add min margin to channel trade constraints #1906
feat: Add min margin to channel trade constraints #1906
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how simple this has gotten :)
8cf5ed1
to
99c0529
Compare
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
|
|||
## [Unreleased] | |||
|
|||
- Chore: Set minimum quantity to 1 if dlc channel is open |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this result in tiny DLCs that cannot be claimed on-chain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this result in tiny DLCs that cannot be claimed on-chain?
Aren't we considering the full amount on the CET transaction including any potential off chain amount.
So I think we only have to care about the initial margin to be big enough for a channel but afterwards there shouldn't be a limit.
Either party may loose so much that their payout can't be claimed anymore. But I don't think that's a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are right!
I do think eventually we should track whether either side is getting too close to the dust limit, to at least inform about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think eventually we should track whether either side is getting too close to the dust limit, to at least inform about this.
afaik rust-dlc is taking care of this.
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-01-26.at.15.49.13.mp4