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: validation checks withdrawal amounts against rolling cap #1515

Merged

Conversation

djordon
Copy link
Contributor

@djordon djordon commented Mar 14, 2025

Description

Closes #1500.

This PR needs to be updated once #1513 gets merged. Right now some things are hardcoded or just using the wrong variables when checking the rolling withdrawal limits.

Changes

  • Make sure that the withdrawal limits get checked as part of the bitcoin validation logic.

Testing Information

This could probably benefit from a few more test cases, but I'll do that once #1513 is merged.

Checklist:

  • I have performed a self-review of my code

@djordon djordon added the withdrawal The withdrawal sBTC operation. label Mar 14, 2025
@djordon djordon added this to the sBTC: Withdrawal fine tuning milestone Mar 14, 2025
@djordon djordon self-assigned this Mar 14, 2025
@djordon djordon added the sbtc signer binary The sBTC Bootstrap Signer. label Mar 14, 2025
Copy link
Contributor

@matteojug matteojug left a comment

Choose a reason for hiding this comment

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

LGTM, I'll do another pass after the rebase

matteojug
matteojug previously approved these changes Mar 18, 2025
@djordon djordon added this pull request to the merge queue Mar 20, 2025
Merged via the queue into main with commit 52dff64 Mar 20, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needed-for-withdrawals-v1 sbtc signer binary The sBTC Bootstrap Signer. withdrawal The withdrawal sBTC operation.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Feature]: Validation checks withdrawal amounts against rolling cap
3 participants