Understanding the Percolator perpetual protocol on Solana — without the jargon. What Is Percolator? Percolator is an on-chain perpetual futures protocol buUnderstanding the Percolator perpetual protocol on Solana — without the jargon. What Is Percolator? Percolator is an on-chain perpetual futures protocol bu

Percolator Protocol: Perpetual Trading on Solana

2026/02/08 17:04
9 min read

Understanding the Percolator perpetual protocol on Solana — without the jargon.

What Is Percolator?

Percolator is an on-chain perpetual futures protocol built on Solana. In plain terms: it lets people trade leveraged long/short positions on an asset (e.g. SOL) that never expire, with collateral held in a shared vault and prices coming from oracles (e.g. Chainlink, Pyth). The protocol is experimental and unaudited — for educational and testing only, not production or real funds.

Think of it as a decentralized, programmable “perps engine”: one program holds all market state in a single slab account, and external matcher programs define how trades are priced.

This separation makes it flexible: you can run standard or inverted markets, passive LPs, or custom AMM-style pricing.

Percolator Protocol — Core Ideas

1. The Slab = One Market, One Big Account

Everything for a single market lives in one on-chain account called a slab:

Header — magic, version, admin, flags (e.g. “resolved” for binary markets).

Market config — collateral mint, vault, oracle feed ID, invert/unit scale, funding and risk-threshold parameters, optional oracle authority.

Risk engine — vault balance, insurance fund, risk params (margins, fees, liquidation), funding index, crank/sweep state, and a bitmap + array of up to 4096 accounts (users and LPs).

So: one slab = one perpetual (or one binary) market.

Deploy another slab = another market.

2. Two Kinds of Accounts: Users and LPs

Each account in the slab is either:

User — a trader. They deposit collateral, open/close positions (long = positive size, short = negative size), and have PnL, margin, funding, etc.

LP (liquidity provider) — provides liquidity and takes the other side of trades. They also have capital and a position (opposite to the net of user positions they’ve matched). LPs are bound to a matcher (program + context) that defines how trades are priced.

Accounts are indexed (0..N). The slab tracks which indices are used via a bitmap and stores each account’s capital, position, entry price, funding index, matcher program/context (for LPs), and owner.

3. Oracles Feed Price; Optional Authority Overrides

Prices come from oracles (e.g. Pyth Pull feed ID or Chainlink). The slab stores:

• Max staleness and confidence filter.

• Optional oracle authority: if set, an admin can push a price (used for testing, binary settlement, or controlled environments). When authority price is set and recent, it overrides the external feed.

So: normal operation = Pyth/Chainlink; special cases = admin-controlled price.

4. Inverted Markets

A market can be inverted: internally the protocol uses 1/price (e.g. USD per SOL → SOL per USD). That’s useful when collateral is SOL and you want “long USD / short USD” style exposure: long = profit when SOL goes down, short = profit when SOL goes up. Same risk engine, different price interpretation.

5. Matchers: Who Decides Trade Price?

Trades can happen in two ways:

  • Trade (no CPI) — Only the percolator program runs. User and LP sign; execution and pricing are handled inside percolator (e.g. agreed off-chain or by a simple rule). No other program is called. Good for testing or trusted LP–user pairs.
  • Trade (CPI) — Percolator invokes an external matcher program via CPI. The matcher (e.g. percolator-match) is passed the oracle and its context, computes the execution price, and returns it. Percolator then applies that price (size, fees, margin) and updates state.

CPI here means Cross-Program Invocation on Solana.

So matchers are the “pricing layer”: passive (e.g. oracle ± 50 bps), vAMM-style (spread + impact), or fully custom. The protocol enforces that the LP’s matcher program/context match and that the matcher verifies the LP PDA as signer (so only that LP’s liquidity is used).

6. Keeper Crank: Funding, Mark, and Liquidation

A keeper crank is a permissionless instruction that:

• Updates mark price and funding from the oracle and LP net position.

• Applies funding to open positions.

• Runs the liquidation/force-close logic (e.g. under-maintenance-margin accounts liquidated at oracle price; dust positions cleaned up).

Funding is computed on-chain from LP inventory so that longs/shorts pay each other (and the protocol can take a cut). Risk-increasing trades require a “recent” crank (e.g. within ~200 slots) so that mark and funding are up to date.

7. Insurance and Risk

• An insurance fund (topped up by admin or fees) absorbs losses when positions are liquidated or force-closed. There is a threshold; below it, the market can enter “risk reduction only” (only position-reducing trades allowed).

Haircut-ratio logic (O(1) aggregates: total capital, positive PnL) is used so the system can handle insolvencies without a heavy ADL sweep. Conservation is maintained: vault ≥ capital + insurance + positive PnL (with small rounding tolerance).

8. Binary / Premarkets

The same slab can be used as a binary (event) market: outcome YES/NO. Admin sets an oracle authority, pushes a settlement price (e.g. 1.0 = YES, ~0 = NO), then calls resolve-market. After that, no new trades/deposits; keeper crank force-closes all positions at the settlement price. Once everything is closed, admin can withdraw insurance and users withdraw remaining capital. So: one codebase for both perpetuals and event settlement.

Use Cases

1. Perpetual Futures (Standard or Inverted)

Standard: e.g. SOL/USD perp with SOL or USDC as collateral; long/short SOL.

Inverted: e.g. SOL collateral, price = 1/SOL in USD terms; long = bullish USD (bearish SOL), short = bearish USD (bullish SOL). Good when you want to keep collateral in SOL and express a view on “SOL going up or down.”

Use the CLI (or SDK) to: init market → init user → deposit → run keeper crank → trade (trade-cpi or trade-nocpi). Same flow for both, only invert and unit_scale differ in init-market.

2. Liquidity Provision (Passive or vAMM)

Passive LP: one matcher (e.g. percolator-match) with a fixed spread (e.g. 50 bps). LP deposits collateral, init-lp with that matcher context; traders get oracle ± spread.

vAMM-style LP: matcher with base spread + impact + fee. Tighter spreads for small size, wider for large; you can run scripts like add-vamm-lp.ts to add such LPs. Bots (e.g. random-traders.ts) can route to the best LP by simulated price.

Use case: market-making, earning spread/fees, or running a custom pricing strategy in your own matcher.

3. Keeper / Infrastructure

Crank bot: calls keeper-crank every few seconds so funding and mark are fresh and liquidations run. Required for risk-increasing trades (staleness checks).

Liquidator: monitors accounts and calls liquidate-at-oracle when an account is under maintenance margin. Permissionless; liquidator earns a fee.

Use case: run public goods (crank) or profit from liquidation fees.

4. Binary / Event Markets (Premarkets)

• Create a slab with no external feed (e.g. Pyth feed ID = zeros, “Hyperp” mode), set initial mark price (e.g. 0.5 = 50% implied), set oracle authority to admin.

• Users trade as in a perp; when the event resolves, admin push-oracle-price (YES=1e6, NO≈0), then resolve-market, then crank until all positions are force-closed, then withdraw insurance and user capital.

Use case: prediction markets, event contracts, or any binary outcome that settles at a single price.

5. Testing and Stress Testing

• Oracle authority: push fixed or extreme prices to test liquidations, funding, or edge cases without moving real markets.

• Scripts: e.g. stress-haircut-system.ts, stress-worst-case.ts, oracle-authority-stress.ts, pentest-oracle.ts for security/stress; test-*.ts for invariants and flows.

• Devnet: setup-devnet-market.ts creates a full inverted SOL/USD market with Chainlink and a funded LP; you can run bots and tests against it.

Use case: protocol teams, auditors, or integrators validating behavior before mainnet.

6. Admin and Parameter Tuning

• update-config: change funding horizon, K, scale, max premium, threshold floor/risk/interval/step/alpha/min/max (funding and risk-threshold behavior).

• set-risk-threshold, set-maintenance-fee: fine-tune risk and cost.

• topup-insurance, withdraw-insurance (when resolved and empty): manage insurance fund.

Use case: market operators adjusting to volatility or demand.

Potential and Directions

1. Perpetuals on Solana

Percolator shows that a single-program, single-slab perpetual engine can live on Solana with Pyth/Chainlink, multiple LPs, and permissionless crank/liquidators. That’s a base for:

• Public perp markets (e.g. SOL, BTC, ETH) with SOL or stablecoin collateral.

• Inverted markets where collateral is the native asset and traders want leveraged exposure to “the other side” of the pair.

2. Pluggable Matchers

Because pricing is in external matcher programs, the core protocol stays minimal and secure while:

• Teams can ship new matchers (e.g. order-book style, RFQ, or hybrid) without changing the risk engine.

• Multiple matchers (passive, vAMM, etc.) can coexist in one market; traders and bots choose the best price (as in best-price and random-traders).

Potential: a matcher ecosystem (central limit order book, request-for-quote, volatility-sensitive spreads) on top of one shared perp engine.

3. Binary and Event Markets

The same slab and risk engine support resolve + force-close at settlement price, so:

• Prediction markets and event contracts can be built on the same codebase as perps.

• Operators can run both perps and binary markets with one deployment and one CLI/SDK.

Potential: unified “futures + events” layer on Solana.

4. Composability and Automation

• Programmatic API: the CLI is a thin wrapper over instructions and slab parsing; the repo’s encode*, buildAccountMetas, and parse* functions are a small SDK. UIs, bots, and other programs can compose on top.

• Keeper/liquidator incentives: permissionless crank and liquidate-at-oracle allow third parties to run infrastructure and earn fees without permission.

Potential: integrations with wallets, aggregators, and automated strategies.

FOR EDUCATIONAL PURPOSES ONLY. The Percolator program and this CLI have not been audited. Do not use in production or with real funds. Use at your own risk.

Source

This article is based on the percolator-cli codebase (https://github.com/aeyakovenko/percolator-cli) and related repos (percolator, percolator-prog, percolator-match).


Percolator Protocol: Perpetual Trading on Solana was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact [email protected] for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Ultimea Unveils Skywave X100 Dual: 9.2.6 Wireless Home Theater Launching March 2026

Ultimea Unveils Skywave X100 Dual: 9.2.6 Wireless Home Theater Launching March 2026

RANCHO CUCAMONGA, Calif., Feb. 12, 2026 /PRNewswire/ — Ultimea, a leader in immersive home entertainment, announces the upcoming launch of its next-generation flagship
Share
AI Journal2026/02/13 02:45
Why The Green Bay Packers Must Take The Cleveland Browns Seriously — As Hard As That Might Be

Why The Green Bay Packers Must Take The Cleveland Browns Seriously — As Hard As That Might Be

The post Why The Green Bay Packers Must Take The Cleveland Browns Seriously — As Hard As That Might Be appeared on BitcoinEthereumNews.com. Jordan Love and the Green Bay Packers are off to a 2-0 start. Getty Images The Green Bay Packers are, once again, one of the NFL’s better teams. The Cleveland Browns are, once again, one of the league’s doormats. It’s why unbeaten Green Bay (2-0) is a 8-point favorite at winless Cleveland (0-2) Sunday according to betmgm.com. The money line is also Green Bay -500. Most expect this to be a Packers’ rout, and it very well could be. But Green Bay knows taking anyone in this league for granted can prove costly. “I think if you look at their roster, the paper, who they have on that team, what they can do, they got a lot of talent and things can turn around quickly for them,” Packers safety Xavier McKinney said. “We just got to kind of keep that in mind and know we not just walking into something and they just going to lay down. That’s not what they going to do.” The Browns certainly haven’t laid down on defense. Far from. Cleveland is allowing an NFL-best 191.5 yards per game. The Browns gave up 141 yards to Cincinnati in Week 1, including just seven in the second half, but still lost, 17-16. Cleveland has given up an NFL-best 45.5 rushing yards per game and just 2.1 rushing yards per attempt. “The biggest thing is our defensive line is much, much improved over last year and I think we’ve got back to our personality,” defensive coordinator Jim Schwartz said recently. “When we play our best, our D-line leads us there as our engine.” The Browns rank third in the league in passing defense, allowing just 146.0 yards per game. Cleveland has also gone 30 straight games without allowing a 300-yard passer, the longest active streak in the NFL.…
Share
BitcoinEthereumNews2025/09/18 00:41
Unlocking Massive Value: Curve Finance Revenue Sharing Proposal for CRV Holders

Unlocking Massive Value: Curve Finance Revenue Sharing Proposal for CRV Holders

BitcoinWorld Unlocking Massive Value: Curve Finance Revenue Sharing Proposal for CRV Holders The dynamic world of decentralized finance (DeFi) is constantly evolving, bringing forth new opportunities and innovations. A significant development is currently unfolding at Curve Finance, a leading decentralized exchange (DEX). Its founder, Michael Egorov, has put forth an exciting proposal designed to offer a more direct path for token holders to earn revenue. This initiative, centered around a new Curve Finance revenue sharing model, aims to bolster the value for those actively participating in the protocol’s governance. What is the “Yield Basis” Proposal and How Does it Work? At the core of this forward-thinking initiative is a new protocol dubbed Yield Basis. Michael Egorov introduced this concept on the CurveDAO governance forum, outlining a mechanism to distribute sustainable profits directly to CRV holders. Specifically, it targets those who stake their CRV tokens to gain veCRV, which are essential for governance participation within the Curve ecosystem. Let’s break down the initial steps of this innovative proposal: crvUSD Issuance: Before the Yield Basis protocol goes live, $60 million in crvUSD will be issued. Strategic Fund Allocation: The funds generated from the sale of these crvUSD tokens will be strategically deployed into three distinct Bitcoin-based liquidity pools: WBTC, cbBTC, and tBTC. Pool Capping: To ensure balanced risk and diversified exposure, each of these pools will be capped at $10 million. This carefully designed structure aims to establish a robust and consistent income stream, forming the bedrock of a sustainable Curve Finance revenue sharing mechanism. Why is This Curve Finance Revenue Sharing Significant for CRV Holders? This proposal marks a pivotal moment for CRV holders, particularly those dedicated to the long-term health and governance of Curve Finance. Historically, generating revenue for token holders in the DeFi space can often be complex. The Yield Basis proposal simplifies this by offering a more direct and transparent pathway to earnings. By staking CRV for veCRV, holders are not merely engaging in governance; they are now directly positioned to benefit from the protocol’s overall success. The significance of this development is multifaceted: Direct Profit Distribution: veCRV holders are set to receive a substantial share of the profits generated by the Yield Basis protocol. Incentivized Governance: This direct financial incentive encourages more users to stake their CRV, which in turn strengthens the protocol’s decentralized governance structure. Enhanced Value Proposition: The promise of sustainable revenue sharing could significantly boost the inherent value of holding and staking CRV tokens. Ultimately, this move underscores Curve Finance’s dedication to rewarding its committed community and ensuring the long-term vitality of its ecosystem through effective Curve Finance revenue sharing. Understanding the Mechanics: Profit Distribution and Ecosystem Support The distribution model for Yield Basis has been thoughtfully crafted to strike a balance between rewarding veCRV holders and supporting the wider Curve ecosystem. Under the terms of the proposal, a substantial portion of the value generated by Yield Basis will flow back to those who contribute to the protocol’s governance. Returns for veCRV Holders: A significant share, specifically between 35% and 65% of the value generated by Yield Basis, will be distributed to veCRV holders. This flexible range allows for dynamic adjustments based on market conditions and the protocol’s performance. Ecosystem Reserve: Crucially, 25% of the Yield Basis tokens will be reserved exclusively for the Curve ecosystem. This allocation can be utilized for various strategic purposes, such as funding ongoing development, issuing grants, or further incentivizing liquidity providers. This ensures the continuous growth and innovation of the platform. The proposal is currently undergoing a democratic vote on the CurveDAO governance forum, giving the community a direct voice in shaping the future of Curve Finance revenue sharing. The voting period is scheduled to conclude on September 24th. What’s Next for Curve Finance and CRV Holders? The proposed Yield Basis protocol represents a pioneering approach to sustainable revenue generation and community incentivization within the DeFi landscape. If approved by the community, this Curve Finance revenue sharing model has the potential to establish a new benchmark for how decentralized exchanges reward their most dedicated participants. It aims to foster a more robust and engaged community by directly linking governance participation with tangible financial benefits. This strategic move by Michael Egorov and the Curve Finance team highlights a strong commitment to innovation and strengthening the decentralized nature of the protocol. For CRV holders, a thorough understanding of this proposal is crucial for making informed decisions regarding their staking strategies and overall engagement with one of DeFi’s foundational platforms. FAQs about Curve Finance Revenue Sharing Q1: What is the main goal of the Yield Basis proposal? A1: The primary goal is to establish a more direct and sustainable way for CRV token holders who stake their tokens (receiving veCRV) to earn revenue from the Curve Finance protocol. Q2: How will funds be generated for the Yield Basis protocol? A2: Initially, $60 million in crvUSD will be issued and sold. The funds from this sale will then be allocated to three Bitcoin-based pools (WBTC, cbBTC, and tBTC), with each pool capped at $10 million, to generate profits. Q3: Who benefits from the Yield Basis revenue sharing? A3: The proposal states that between 35% and 65% of the value generated by Yield Basis will be returned to veCRV holders, who are CRV stakers participating in governance. Q4: What is the purpose of the 25% reserve for the Curve ecosystem? A4: This 25% reserve of Yield Basis tokens is intended to support the broader Curve ecosystem, potentially funding development, grants, or other initiatives that contribute to the platform’s growth and sustainability. Q5: When is the vote on the Yield Basis proposal? A5: A vote on the proposal is currently underway on the CurveDAO governance forum and is scheduled to run until September 24th. If you found this article insightful and valuable, please consider sharing it with your friends, colleagues, and followers on social media! Your support helps us continue to deliver important DeFi insights and analysis to a wider audience. To learn more about the latest DeFi market trends, explore our article on key developments shaping decentralized finance institutional adoption. This post Unlocking Massive Value: Curve Finance Revenue Sharing Proposal for CRV Holders first appeared on BitcoinWorld.
Share
Coinstats2025/09/18 00:35