Book a free call

How to Build a Liquid Staking Platform Like Lido

A liquid staking platform lets users stake tokens and keep a tradable receipt token. Here is how it works, what to build, and the mistakes that sink new platforms.

Hertiv engineering teamReviewed by a senior engineer
6 min read
How to Build a Liquid Staking Platform Like Lido
On this page

Short answer

A liquid staking platform pools deposits, stakes them with validators, and issues a receipt token that tracks the stake plus rewards. To build one you need deposit and minting contracts, a validator set, a price feed, a working redemption queue and an audit.

What is a liquid staking platform?

A liquid staking platform is a service that lets people stake tokens on a proof-of-stake chain and receive a receipt token they can use elsewhere. The staked tokens earn rewards, while the receipt token can be traded, lent or used as collateral in other protocols.

On chains such as Ethereum, staking normally locks tokens until withdrawal, which can take time. Liquid staking removes that trade-off: the stake stays locked and earning, and the holder keeps a liquid token that represents it.

The platform sits between the staker and the chain. It collects deposits, runs or delegates to validators, tracks rewards, and issues and redeems the receipt token. Its job is to make that chain of promises safe, transparent and fast to exit.

How does liquid staking work?

Liquid staking works by pooling deposits, staking them with validators, and issuing a receipt token that tracks the value of the stake plus rewards. The receipt token is the liquid part: it moves freely while the underlying stake stays locked.

PartWhat it doesWhat can go wrong
Deposit poolCollects user tokensSlow deposits if the pool is small
ValidatorsRun nodes and earn rewardsDowntime or bad behaviour cuts rewards
Receipt tokenRepresents the stake, tradablePrice can drift from the stake value
Oracle or price feedReports the exchange rateA wrong feed misprices redemptions
Redemption queueExits stakes in orderLong queues in a rush to exit
Fee and treasuryTakes a cut of rewardsUnclear fees push users away

Two designs dominate. In a rebasing design, the receipt token balance grows as rewards arrive. In a reward-bearing design, the token price rises instead and the balance stays fixed. Both work; the choice shapes how wallets, exchanges and lending protocols treat the token.

What do you need to build before launch?

Before launch you need the staking contracts, the validator setup, the price feed and the exit path, all tested together. A liquid staking platform is a set of contracts plus an operations team, not a single smart contract.

The contracts handle deposits, minting, reward distribution and redemptions. The validator setup decides who runs nodes, how they are chosen, and what happens when one misbehaves. The price feed must report the exchange rate accurately, because every mint and redemption depends on it.

You also need an audit, a monitoring setup and a plan for the first weeks of low liquidity. A new receipt token with thin trading will drift from its fair price, and users will notice.

See smart contract audit for what an audit should cover before launch.

For the wider build, DeFi development covers the contracts and operations around the platform.

What are the build steps for a liquid staking platform?

Build a liquid staking platform in stages, with the exit path working before you take real deposits. A platform that can take money in but cannot return it is not a platform.

  1. Choose the chain and the token design. Decide between a rebasing and a reward-bearing receipt token, and check how wallets and lending protocols handle each.
  2. Build the deposit and minting contracts. Deposits should mint the receipt token at the current exchange rate, with no rounding that favours the platform.
  3. Set up the validator set. Choose operators, set performance rules, and decide how stake is spread across them.
  4. Build the reward and fee logic. Rewards must flow to holders fairly, and fees must be visible and changeable only through governance.
  5. Build redemptions and the exit queue. Users should be able to burn the receipt token and join a queue to get their stake back.
  6. Add the oracle and monitoring. Track the exchange rate, validator performance and the gap between the receipt token price and its fair value.
  7. Audit, test on a testnet, then launch small. Cap deposits at first and raise the cap only after the exit path has been used in production.

Each step needs a test that proves it works under stress, not just on the happy path. A redemption queue that works for ten users may jam for ten thousand.

How do fees and rewards work?

Fees and rewards in liquid staking are simple in outline and easy to get wrong in detail. Users earn the chain's staking rewards minus the platform's fee, and the receipt token tracks that net value.

Most platforms take a fee as a share of the rewards, commonly around 5 to 10 percent, and split it between the node operators and the platform treasury. The fee must be visible on the site and in the contracts, because a hidden fee is the fastest way to lose trust.

Rewards arrive as new tokens from the chain, and the platform must account for them exactly. In a rebasing design the holder's balance grows; in a reward-bearing design the token price rises. Either way, the exchange rate between the receipt token and the staked token is the number users watch, and it must be published and verifiable.

Example: a small staking pool in its first month

Example (hypothetical): a new liquid staking platform opens with 1,000 users depositing 10 tokens each, for a total pool of 10,000 tokens. The platform takes a 10 percent fee on rewards and the chain pays rewards at a rate that works out to about 4 percent a year.

In the first month the pool earns roughly 33 tokens in rewards: 10,000 tokens at 4 percent a year is 400 tokens a year, or about 33 tokens a month. The platform keeps 10 percent, or about 3 tokens, and the holders share the other 30 tokens, so each 10-token deposit is worth about 10.03 tokens after a month.

In the same month, 40 users redeem. Each burns 10 receipt tokens and joins the exit queue, and the platform unstakes 400 tokens to pay them. The queue clears in 2 days, and the receipt token trades within 0.5 percent of its fair value on the open market. The team treats that small gap as a sign the liquidity plan needs work before it raises the deposit cap.

What are the common mistakes?

The most common liquid staking mistakes are launching without a working exit, trusting a single price feed, and letting one validator or operator hold too much stake.

  • No tested exit path. If redemptions have never run in production, the first rush to exit will expose the gap.
  • One oracle, one failure. A single price feed can be wrong or attacked; use more than one source and a sanity check.
  • Concentrated validators. A few operators holding most of the stake is a centralisation risk and a single point of failure.
  • Hidden fees. Fees that are hard to find in the contracts or the site destroy trust when users work them out.
  • Thin liquidity at launch. A receipt token that cannot be sold near its fair value is not liquid in practice.
  • Skipping the audit. Staking contracts hold user funds; an unaudited contract is a risk no launch date justifies.

Key takeaways

  • Liquid staking trades a locked stake for a tradable receipt token
  • The exit path must work before you take real deposits
  • Fees are a share of rewards and must be visible
  • A receipt token needs real liquidity to be liquid in practice
  • One oracle or one dominant validator is a single point of failure
  • Audit the contracts before launch, not after

Frequently asked questions

What is liquid staking?

Liquid staking lets you stake tokens on a proof-of-stake chain and receive a receipt token in return. Your stake earns rewards while the receipt token can be traded, lent or used as collateral elsewhere.

What is the difference between staking and liquid staking?

Plain staking locks your tokens until you withdraw them. Liquid staking also locks the tokens, but gives you a tradable receipt token that represents them, so you keep access to their value while they earn rewards.

Is a liquid staking receipt token worth the same as the staked token?

Roughly, yes, plus the rewards earned so far. The receipt token price can drift above or below its fair value when liquidity is thin or when many users rush to exit, so check the exchange rate and the exit queue.

Do I need to run my own validators?

No. Most platforms delegate to a set of operators. You need rules for choosing them, spreading stake across them, and removing operators that underperform or misbehave.

What fees do liquid staking platforms charge?

Most take a share of the staking rewards, commonly around 5 to 10 percent, split between node operators and the platform. The fee should be visible on the site and in the contracts before you deposit.

What is the biggest risk in liquid staking?

The biggest risks are smart contract bugs, a broken exit path, a wrong price feed, and concentration in a few validators. An audit, a tested redemption queue, more than one oracle and a spread validator set reduce all four.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a liquid staking platform and want it built right? Talk to Hertiv.

A senior engineer replies within one business day. Or see our DeFi Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call