Anchor-based Solana staking and creator-fee routing program for Pump.fun-launched tokens.
Explore the docs »
View Source
·
Report Bug
·
Request Feature
Table of Contents
Staked Contract is an Anchor workspace for staked, a Solana program that lets token holders stake
Pump.fun-launched tokens for fixed lock periods and receive rewards from creator-fee streams.
The program uses a per-mint fee_owner PDA so Pump.fun and PumpSwap creator fees can be routed into
staking rewards through bounded on-chain instructions instead of being controlled by a human wallet.
It supports legacy SPL Token and Token-2022 staking mints, SOL rewards, quote-token rewards, WSOL
unwrapping, and protocol-fee routing.
Current status:
- Program name:
staked - Program ID:
aZPKJ99yjfE6MjZ5isXNjm3ndanBdx5gX35nwmLBANK - Anchor version:
0.32.1 - Network target: Solana
- Audit status: unaudited
See programs/staking/README.md for account layouts, PDA derivations, staking rules, reward flows, and instruction details.
Follow these steps to build and check the program locally.
Install the Solana and Anchor development toolchain:
- Rust
rustc --version
- Solana CLI
solana --version
- Anchor CLI
anchor --version
- Node.js and npm
node --version npm --version
For verifiable builds, also install Docker and the Solana Verify CLI:
- Docker
docker --version
- Solana Verify CLI
npm run install:solana-verify
- Clone the repo
git clone https://github.com/iceypump/staked.git
- Enter the project directory
cd staked - Install script dependencies
npm install
- Build the Anchor program
anchor build
- Run tests
anchor test
For a lighter Rust-only check:
cargo checkFor a deterministic Solana program build using Solana Verify:
npm run build:verifiable
npm run hash:verifiableUseful development commands:
npm run check:scripts
npm run create:pump-devnet -- --quote sol
npm run volume:pump-devnet -- --mint <MINT>
npm run stake:test-wallets -- --mint <MINT>Verifiable build commands:
npm run install:solana-verify
npm run build:verifiable
npm run hash:verifiable
npm run verify:repo -- --url <RPC_URL> --commit-hash <COMMIT_HASH>Deploy the .so produced by npm run build:verifiable when you intend to verify the on-chain
program. Rebuilding with anchor build before deploy can produce a different executable hash.
The helper scripts default to Solana Devnet and ~/.config/solana/id.json. Generated local test
wallets are written to .devnet-test-wallets/, which is intentionally ignored.
The Anchor program source is in programs/staking/src. The program-specific README documents the
main instructions:
initialize_launchstakeincrease_stakeclaim_rewardsinitialize_quote_rewardsinitialize_quote_stakeunstakeclaim_pump_creator_feesclaim_pump_quote_creator_feesclaim_pumpswap_creator_feesclaim_pumpswap_quote_creator_feesclaim_protocol_feesclaim_quote_protocol_fees
For more details, see the program documentation.
- Add complete integration tests
- Add localnet Pump.fun and PumpSwap mocks
- Add quote-token reward tests
- Add Token-2022 staking tests
- Add deployment guide
- Add independent audit report
- Add client SDK examples
See the open issues for a full list of proposed features and known issues.
Contributions are welcome. If you have a suggestion that would make this better, fork the repo and
open a pull request, or open an issue with the enhancement label.
- Fork the project
- Create your feature branch
git checkout -b feature/amazing-feature
- Commit your changes
git commit -m "Add amazing feature" - Push to the branch
git push origin feature/amazing-feature
- Open a pull request
Distributed under the MIT License.
See LICENSE for more information.
(X) Iceypump - @icetypump
Project Link: https://github.com/iceypump/staked