Rename Vault Strategy to Managed Fund, and Token Fundraiser to Fundraiser - #167
Merged
Merged
Conversation
The example is a manager-run fund: investors deposit for shares priced at net asset value and a manager allocates across approved assets. Finance calls that a managed fund (the onchain equivalent of a mutual fund), and "vault" also meant both the product and its token accounts. Now the product is the fund and a vault is only a single-asset token account it owns. - finance/vault-strategy moves to finance/managed-fund (Anchor v2, Anchor v1, Quasar, Kani proofs, web app). Strategy -> Fund, initialize_strategy -> initialize_fund, StrategyNotFullyAllocated -> FundNotFullyAllocated, VaultError -> FundError, PDA seed "strategy" -> "fund". Program IDs and behavior are unchanged. - The committed IDLs get the new discriminators and seed bytes; the web app's client and env vars follow. - README, llms.txt and the example READMEs say it was formerly Vault Strategy, and finance/vault-strategy/README.md points old links to the new location. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JTaqedahgCHQbzXPcHDPok
Contributors receive no token, only a refund if the target is missed, so "Token Fundraiser" described something the program does not do. - finance/token-fundraiser moves to finance/fundraiser (Anchor v2, Anchor v1, Quasar, Kani proofs). The Quasar crate is quasar-fundraiser and the proofs crate fundraiser-kani-proofs; the Anchor programs were already named fundraiser. Behavior is unchanged. - README, llms.txt and the example READMEs say it was formerly Token Fundraiser, and finance/token-fundraiser/README.md points old links to the new location. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JTaqedahgCHQbzXPcHDPok
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.
Two renames that make the finance examples use the finance names for what they build.
Vault Strategy → Managed Fund
The example is a manager-run fund: investors deposit for shares priced at net asset value, and a manager allocates the pool across a basket of approved assets. Finance calls that a managed fund, the onchain equivalent of a mutual fund. It isn't an index fund, because the manager chooses the weights. "Vault" also meant two things here: the whole product and the single-asset token accounts it owns. Now it means only the token accounts.
finance/vault-strategy→finance/managed-fund, covering Anchor v2, Anchor v1, Quasar, the Kani proofs and the web app.Strategy→Fund,initialize_strategy→initialize_fund,StrategyNotFullyAllocated→FundNotFullyAllocated,VaultError→FundError, cratevault-strategy→managed-fund."strategy"to"fund", so every fund address changes. The program IDs and behavior do not change.VITE_FUND_INDEX,VITE_FUND_PROGRAM_ID).typescript.yml,kani.yml) and the rootCargo.toml/Cargo.lockfollow the new path.Token Fundraiser → Fundraiser
Contributors receive no token, only a refund if the target is missed, so "Token" described something the program does not do.
finance/token-fundraiser→finance/fundraiser. The Quasar crate becomesquasar-fundraiserand the proofs cratefundraiser-kani-proofs. The Anchor programs were already namedfundraiser. Accounts, handlers and behavior are unchanged.Finding the examples under their old names
README.md,llms.txtand each example's READMEs say which name each example had before.finance/vault-strategy/README.mdandfinance/token-fundraiser/README.mdstay at the old paths and point old links to the new locations.Testing
Run locally with Solana 3.1.14, building each program per manifest with
cargo build-sbf, thencargo test:pnpm typecheck,pnpm verifyandpnpm build.cargo fmt --checkandbiome checkpass.The book follows in quicknode/solana-book#184. This PR should merge first.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JTaqedahgCHQbzXPcHDPok