Skip to content
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: proper amount validation #330

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

jackstar12
Copy link
Member

No description provided.

Comment on lines +23 to +27
CurrencyLiquid: {
NormalClaim: 1337,
ReverseLockup: 2503,
ReverseClaim: 1309,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to adjust those for CheapCT

@jackstar12 jackstar12 merged commit 1b8057d into feat/chain-swap-any-amount Nov 7, 2024
1 check passed
jackstar12 added a commit that referenced this pull request Nov 7, 2024
* feat: amountless chain swaps

* chore: fix tests

* fix: update chain swap amounts in tx

* feat: proper amount validation (#330)

* feat: proper amount validation

* fix: validate submarine swap amounts if invoice is set after lockup

* feat: add absolute network fee tolerance

* refactor: onchainFees -> networkFees

* chore: remove done TODO

* fix: make sure to handle 0 amount same as nil for backwards compatibility
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