/validator-bonds:marinade-sam-bondfrom Marinade Validator Bonds
Explains Marinade's Validator Bonds program: SAM auction, bond collateral, settlement types (CPMPE, PMPE, PSR), epoch lifecycle, and bond sizing formulas. For developers integrating with or debugging Marinade's stake delegation system.
Ships in Marinade Validator Bonds. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adjacent context files — read these when relevant:
institutional-staking.md— Select program details, API routes, payout pipeline, Select dashboard. Read for any question about institutional validators, Select stakers,InstitutionalPayout, or the institutional-staking API.sam-blacklist.md— blacklist policy: sandwich detection thresholds, slow-slot criteria, pipeline. Read for any question aboutBlacklistPenalty, sandwich attacks, or the blacklist mechanism.
Validators post SOL bonds as collateral to compete for Marinade's delegated stake via SAM (Stake Auction Marketplace). Bonds guarantee mSOL holders earn at minimum network-average rewards (PSR), and provide a PSR-percentile APY floor for institutional/Select stakers (psr_percentile_apy — the configured PSR percentile, default 50th, of network validator APYs; varies per epoch) -- underperformance triggers automatic compensation from the bond.
Two staker populations: mSOL holders (liquid staking, bidding settlements) and institutional/Select stakers (native staking, PSR-percentile APY floor).
Top-level SettlementReason variants — enum in settlement-common/src/settlement_collection.rs: Bidding, PriorityFee, BidTooLowPenalty, BlacklistPenalty, BondRiskFee, InstitutionalPayout, and ProtectedEvent(...) which wraps a protected-event sub-kind (settlement-common/src/protected_events.rs).
| Type | SettlementReason | Trigger | Funder | Recipient | Code |
|---|---|---|---|---|---|
| Bidding | Bidding | Validator wins auction, owes bid amount | ValidatorBond | mSOL stakers | bid-distribution/src/generators/bidding.rs |
| PriorityFee | PriorityFee | Activating stake pool share (ds-sam) | ValidatorBond | Activating mSOL stakers | bid-distribution/src/generators/bidding.rs |
| BidTooLowPenalty | BidTooLowPenalty | Validator lowers bid vs previous epoch | ValidatorBond | Stakers + Marinade/DAO fee | bid-distribution/src/generators/sam_penalties.rs |
| BlacklistPenalty | BlacklistPenalty | Blacklisted (sandwich, slow slots) | ValidatorBond | Stakers | bid-distribution/src/generators/sam_penalties.rs |
| BondRiskFee | BondRiskFee | calcBondRiskFee in ds-sam: underfunded bond forces undelegation; bondRiskFeeSol = bondRiskFeeMult * value * feeCoef (value = forced-undelegation SOL) | ValidatorBond | Stakers | .refs/ds-sam/…/calculations.ts + sam_penalties.rs |
| DowntimeRevenueImpact | ProtectedEvent sub-kind | Fewer credits than expected | ValidatorBond (0-100%) | Stakers | settlement-common/src/protected_events.rs |
| CommissionSamIncrease | ProtectedEvent sub-kind | Commission raised above declared bid | ValidatorBond | Stakers | settlement-common/src/protected_events.rs |
| InstitutionalPayout | InstitutionalPayout | PSR-percentile APY guarantee for Select stakers | ValidatorBond | Institutional/Select stakers | institutional-distribution/src/ + institutional-staking.md |
ProtectedEvent also contains legacy CommissionIncrease and LowCredits (v1, no longer emitted).
InstitutionalPayout detail: Guarantees institutional/Select native stakers a minimum APY equal to the configured PSR percentile (default 50th). If a validator's epoch yield falls short, the bond compensates. institutional-distribution-cli reads pre-computed payout amounts from gs://marinade-institutional-staking-mainnet/{epoch}/ (the private institutional-staking repo produces these); key fields: payout_stakers (lamport amount for stakers), payout_distributors (lamport amount for distributors), psr_percentile_apy (floor APY used), apy_percentile_diff (shortfall). The settlement pipeline (init-settlement, fund-settlement, claim-settlement) then creates the on-chain accounts. Public package: packages/validator-bonds-cli-institutional. Dedicated API: https://institutional-staking.marinade.finance — list validators: GET /v1/validators; latest payouts: GET /v1/payouts/latest; OpenAPI: GET /docs-json. Dashboard: https://select.marinade.finance. See institutional-staking.md for full route table and field details.
CommissionSamIncrease detail: Triggered by collect_commission_increase_events in settlement-common/src/protected_events.rs when a validator raises commission above the bid they declared to SAM. The protected event carries before_sam_commission_increase_pmpe (PMPE at the time of the SAM bid) and actual_epr (post-increase actual earnings). Compensation to stakers is the expected_epr - actual_epr shortfall.
merkle-generator-cli), Settlement accounts created on-chain (init-settlement)fund-settlement, deactivated)config.epochs_to_claim_settlement, configurable; ~4 epochs in practice): stakers prove merkle membership, claim rewards (claim-settlement). A settlement becomes closable once settlement.epoch_created_for + config.epochs_to_claim_settlement < clock.epoch (close_settlement.rs).close-settlement), unclaimed funds return to bondBond data collection: bonds-collector/ (collect-bonds Buildkite pipeline) scrapes all ValidatorBond on-chain accounts via RPC after each epoch using collect_validator_bonds_with_funds (common-rs/), stores to PostgreSQL, and serves via the bonds API (validator-bonds-api). Runs for both bidding and institutional bond types. Source: bonds-collector/src/commands/bonds.rs.
curl -s 'https://validator-bonds-api.marinade.finance/bonds/bidding' | jq '.[0].epoch') or use solana epoch against an RPC. Never cite a specific epoch number from memory.winningTotalPmpe: PMPE of the last validator group to receive stake in the auctionvBoNdEvzMrSai7is21XgVYik65mqtaKXuSdMBJ1xkW4minBondBalanceSol in ds-sam runtime config (not a validator-bonds constant, has no fixed SOL value); tiered: <80% of min → stake cap 0 (revoked), 80–100% → cap clipped to existing stake, ≥100% → unrestricted. Never quote a specific SOL amount — it is configurable and changes. Current setting: ds-sam-pipeline on GitHub (public repo, check the config files for live values)..refs/ds-sam, clone if absent):
baseBondBalance = relaxedTotalPmpe / 1000 × activeStake;
minBondBalance = baseBondBalance + (bidPmpe / 1000 × activeStake) × (minBondEpochs + 1);
idealBondBalance = baseBondBalance + (bidPmpe / 1000 × activeStake) × (idealBondEpochs + 1).
All inputs are ds-sam runtime values; minBondBalanceSol is the configured floor the bond must exceed.https://scoring.marinade.finance/api/v1/scores/sam?epoch=N) and ds-sam constraints to separate bond-constrained validators from bid-constrained validators. A validator can have enough bond capacity but still receive no stake if its totalPmpe is below the clearing price; adding SOL to the bond will not fix that.bond.authority field or validator identity can signconfig.withdraw_lockup_epochs, configurable by admin)Repos that feed data directly into the validator-bonds pipeline. All at https://github.com/marinade-finance/. Clone under ./.refs/ when deeper context needed.
Direct data dependencies:
git clone https://github.com/marinade-finance/ds-sam .refs/ds-samgit clone https://github.com/marinade-finance/ds-sam-pipeline .refs/ds-sam-pipelineinstitutional-staking.md adjacent to this file.blacklist.csv (sandwich + slow-slot detection). See sam-blacklist.md adjacent to this file for thresholds, codes, and data sources.On-chain programs sharing state:
SDKs/libraries:
@marinade.finance/* packages (cli-common, web3js, anchor-common)Downstream consumers:
What SKILL.md sets; muted values are Claude Code's defaults
CPMPE, PMPE, totalPmpe, PSR, protected staking rewards, SAM auction, stake auction marketplace, ValidatorBond, SettlementReason, ProtectedEvent, BidTooLowPenalty, BlacklistPenalty, BondRiskFee, InstitutionalPayout, PriorityFee, CommissionSamIncrease, DowntimeRevenueImpact, fund_bond, withdraw_request, init_withdraw_request, claim_withdraw_request, merkle settlement, settlement claim, settlement funding, bid-distribution, settlement-config.yaml, mSOL stakers, native staking, Select stakers, institutional stakers, bond collateral, clearing price, winningTotalPmpe, validator bid, dynamic commission, dynamic bids, minimum bond balance, minBondBalanceSol, epoch lifecycle, claiming window, how bonds work, how settlements work, payout_stakers, payout_distributors, psr_percentile_apy, apy_percentile_diff, institutional-distribution-cli, baseBondBalance, relaxedTotalPmpe, bidPmpe, minBondEpochs, idealBondEpochs, minBondBalance, idealBondBalance, bond balance formula, how much bond, bond sizing, auction_effective_bid_pmpe, auction_effective_static_bid_pmpe, BidTooLowPenaltyDetails, covered_range_bps, PayoutStaker, PayoutDistributor
4 skills in this plugin
/findAnswer questions from stored facts in `facts/`, or research new questions against primary sources (source code, .refs/ clones, live APIs) and write verified facts. Single entry point for both lookup and research. NOT for Marinade doc/repo navigation (use marinade-docs); NOT for settlement/SAM context (load marinade-sam-bond first)./marinade-docsIndex of Marinade documentation site URLs, live API base URLs/endpoints/OpenAPI schemas, GCS bucket paths, and per-repo clone commands. NOT for Validator Bonds internals (use marinade-sam-bond), the repo/program-ID/SDK map (use marinade-ecosystem), or deep code research (use find)./marinade-ecosystemnpx claudepluginhub marinade-finance/validator-bonds --plugin validator-bondsOther plugins' skills for the same job