[Task] Withdrawal buffer for OS Vault - #2649
Merged
Merged
Conversation
…fter buffer calculation
clement-ux
requested review from
naddison36,
shahthepro and
sparrowDom
as code owners
September 2, 2025 18:25
clement-ux
marked this pull request as draft
September 2, 2025 18:25
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2649 +/- ##
==========================================
- Coverage 38.26% 38.24% -0.02%
==========================================
Files 112 112
Lines 5331 5331
Branches 1412 1412
==========================================
- Hits 2040 2039 -1
- Misses 3289 3290 +1
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Set vault buffer to 0.5% for undelegating S from the validator
naddison36
marked this pull request as ready for review
September 3, 2025 00:36
naddison36
approved these changes
Sep 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a buffer mechanism to the undelegation logic in
sonicActions.jsso the OS ARM can convert its purchased OS back to wS quicker, the OS Vault will undelegate a small percentage each day. The main changes are:Vault withdrawal logic update:
Transaction handling:
undelegatetransaction call, possibly for debugging or to prevent execution during testing, while retaining the logging of transaction details.Testing
Start a local Sonic fork
Results from a local test
Deployment