Mini instruction fixes - #486
Open
metapileks wants to merge 14 commits into
Open
Conversation
… manager to determine liquidation action order
Contributor
|
Repository Guard
Repository GuardCargo dependency pinning
Cross-program Anchor/Solana version consistency
solana-program crate pin
Anchor.toml solana_version
Crate minimum age
Yarn package.json pinning
npm minimum age
Workflow toolchain consistency
GitHub Action SHA pinning
Sensitive program / config changes
Overall status: pass Lockfile freshness (Cargo.lock + yarn.lock) is checked by the workflow directly and cannot be bypassed. The sensitive-diff section is a review hint - CODEOWNERS handles the actual merge gate. |
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.
Fixes on top of #477.
Liquidation
apply_liquidationremoved (instruction + event).finalize_proposalsetsdao.liquidatorand zeroes the spending-limit record (dirty-flagged) when aHostileLiquidateproposal passes.spot_swapno longer blocks liquidated DAOs.Buyback
quote_amount_per_cycle→cycle_countin args, action, and memo. Validation is now: non-zero total, at least 2 cycles.min(quote_reserves, base_reserves × last_observation).Large spend
LargeSpendsnapshotsteam_addressat create. Launch fails if the team has changed (StaleTeamAddress) or the amount no longer clears the 3-month cap.Spending limits
InitialSpendingLimit::validate()(non-zero monthly amount, unique members, count within bounds) runs on all write paths:initialize_dao,set_spending_limit, spending-limit-change and hostile-takeover creates.Migration
resize_daoreads the spending-limit record from the live canonical SquadsSpendingLimitaccount (new read-only account, PDA-checked). Script batch size 20 → 10.resize_proposal: drafts take theExecuteArbitrarycatalog params; launched proposals keep their original duration and threshold.assert_migratedsize checks onfinalize_proposal,admin_cancel_proposal, andadmin_enqueue_multisig_proposal_approval.SDK
resizeDaoIxhelper, renamed buyback args, regenerated types;resizeDaos.tsuses the new helper.Greptile Summary
The PR refines mini-instruction behavior across liquidation, buybacks, large spends, spending limits, and account migrations.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (3): Last reviewed commit: "allow spot swap for a liquidated dao" | Re-trigger Greptile