Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
hpmaxi
marked this pull request as ready for review
October 17, 2026 23:21
This branch was successfully deployed
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
The final review of the Group A stack found no critical issue. This PR fixes what it asked for: the token's and oracle's admin tests that could not fail, the vault's upgrade check, the wind-down coverage loop, and docs that said something false.
Changes
upgradefunctioncancel_redeemline names the rules refusal and the wind-down surrenderclaim_depositandcancel_redeemrows describe the conversion to an exit, the wind-down surrender and the manager returnfinish_setupandSetupIncompletedoc comments list every checkhealth()leaves out the supply check, and whyDeviationExceededdoc name the real fieldsaccept_admin_transferrows for the vault, token and oraclefree_reservesubtractswind_down_owed, as the code doesDAY_DURATIONvault_unfrozenrow says it plainlyfinish_setup,health()andHealthdocs, the health table, thecancel_depositrow, theextend.tscomment and the new test helpers' comments say exactly what the code doesDeviations
cancel_redeemsurrender,pause), so the loop expectsacceptedfor them.fundnow runs as the holder: the outsider has no USDC trustline, so the asset refused it.total_economic_supply, read in its own test, is checked too.29 * 24 * 60 * 60in the wind-down tests is converted too.Acceptance criteria
upgradeentrypointTest plan
Automated tests
CARGO_TARGET_DIR=<repo>/target SOROBAN_SDK_BUILD_SYSTEM_SUPPORTS_SPEC_SHAKING_V2=1 nix develop -c cargo test --locked: async-vault 379, compliance 29, nav-oracle 80, share-token 64, timelock 19, identity-verifier 6 and storage 6 pass. With the Wasm built,--features upgrade_wasm with_wasmpasses 5 + 2.bind_vault,finish_setup,propose_change,cancel_change,apply_change) on the token or the oracle fails the matching assertion. Before this PR, both tests passed with all five removed.upgradeto the vault failsthe_vault_exposes_no_immediate_upgrade; the old version passed.Manual verification
On a fresh
stellar/quickstartlocal network:npm run deploy -w scripts/harness, thentest:happy-path(24/24),test:guards(48/48) andtest:wind-down(6/6) pass. With the vault'swind_down_accmade to trap, the old wind-down test still passed 6/6, and the new one failed onwind_down_acc.Breaking changes
None. The vault's and the oracle's specs change only in doc text; regenerated clients show it.
Checklist
Screenshots
None.