Repository navigation
fix: vesting schedule locking, validation tests, multiplier auth and audit tests - #752
Merged
ritaifeoluwa merged 2 commits intoNov 23, 2026
Merged
Conversation
…audit tests Closes SmartDropLabs#657 — VestingWallet.lock_schedule() sets an irreversible ScheduleLocked flag; is_schedule_locked() reads it. Admin auth required. Calling twice returns ScheduleAlreadyLocked. Publishes vest/locked event. Closes SmartDropLabs#642 — Explicit tests verifying that initialize() rejects: start in past, end <= cliff, and schedules exceeding MAX_VESTING_DURATION_LEDGERS. The validation logic existed; these tests document and guard it. Closes SmartDropLabs#658 — Tests verifying set_global_multiplier() requires admin auth (mock_all_auths path succeeds) and rejects out-of-range values. Closes SmartDropLabs#643 — Test verifying set_global_multiplier() publishes the boost/mult_set audit event with (old_multiplier, new_multiplier) data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
👷 Deploy request for sdcontracts pending review.Visit the deploys page to approve it
|
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.
Summary
VestingWallet.lock_schedule()sets an irreversibleScheduleLockedflag. Admin auth required. Calling twice returnsScheduleAlreadyLocked.is_schedule_locked()reads it. Publishesvest/lockedevent and bumps schedule version.initialize()rejects: start in past,end <= cliff, and schedules exceedingMAX_VESTING_DURATION_LEDGERS.set_global_multiplier()requires admin auth and rejects out-of-range values (0and1001).set_global_multiplier()publishes theboost/mult_setaudit event with(old_multiplier, new_multiplier)data.Test plan
soroban/contracts/vesting-wallet/src/test.rs— 6 new tests for lock_schedule and schedule validationsoroban/contracts/farming-pool/src/test.rs— 3 new tests for multiplier approval and audit eventCloses #642, #643, #657, #658
🤖 Generated with Claude Code