YESswap
English简体中文繁體中文日本語한국어РусскийالعربيةEspañolPortuguêsFrançaisDeutschTiếng ViệtBahasa IndonesiaTürkçe

V3 Concentrated Liquidity BSC: How to read a staked LP position on BNB Smart Chain

Updated 2026-12-02 · YESswap

Short answer. A staking dashboard is a rendering of contract calls, and every field it shows can be rebuilt from state you read yourself. Here is the call order, the integer decoding, and the failure points where the read goes wrong.
Best match for this articleStake and mineLock YES for 50/100/200 day cycles and check your level and yield.

The protocol holds an NFT, not a balance

Knowing how v3 concentrated liquidity BSC works is what separates a clean trade from a costly one. In a v3-style pool, liquidity is not a fungible token you can hold in a wallet. Each position is a record keyed by owner and tick range, and the pool tracks it under an ERC-721 token ID. That design choice is why staking is a transfer, not a deposit: you move the NFT to the staking contract, and the pool's ownerOf(tokenId) changes hands. A balance-based mental model breaks immediately here, because there is no amount to approve.

The position record itself carries a liquidity scalar plus two fee-growth checkpoints that are rewritten every time the range is touched. Call positions(tokenId) on the pool and read liquidity, tickLower, tickUpper, and feeGrowthInside0Last and feeGrowthInside1Last. Before staking, ownerOf(tokenId) returns your wallet. After the transfer is included, it returns the staking contract address. That single field is the cleanest staked/unstaked test you have.

Fee growth matters because those two checkpoint fields are not decoration. When the pool swaps through your range, the global fee-growth accumulators advance, and your position's checkpoints lag until someone touches it. The difference between the global accumulator and your checkpoint, scaled by liquidity, is the fee you have earned but not yet collected. A position that has never been touched since a busy trading day shows a large gap. That gap is real money.

Verification is one call. Read feeGrowthGlobal0X128 from the pool, read your position's feeGrowthInside0Last, subtract, multiply by liquidity, and shift right by 128 bits. If the result is nonzero and you have not collected, the position owes you fees regardless of what any interface prints. The same subtraction on the token1 side uses feeGrowthGlobal1X128 and the matching checkpoint.

The read order that rebuilds a position

Order is not stylistic. The staking contract's per-account record gives you the token ID, and only the pool knows what that token ID points at. Read the staking contract first, the pool second, and token decimals last, because every raw integer is uninterpretable until you know the scale. Reverse the order and you will decode a tick range against the wrong token pair.

On the staking contract, call the user-facing position getter for your address and read the reward-per-token accumulator alongside it. On the pool, call slot0 for the current tick and the position record for the bounds. Then pull decimals() from both pool tokens. Cross-check the whole chain of reads against the Transfer event that moved the NFT into the staking contract; if the event exists and ownerOf disagrees, you are reading across a reorg or before inclusion, not looking at a bug.

Read Contract tab runs these as eth_call against the latest block, which means you get a snapshot with no pending state. That is a feature for reconciliation and a trap for confirmation. A read taken at the latest block will not show a transfer that is still in the mempool, no matter how many times you refresh.

Two endpoints disagreeing is a timing problem, not a correctness problem. Pin both reads to the same block number with the block tag parameter instead of latest, then compare. If the results still differ at an identical block height, one endpoint is serving stale or pruned state, and you should discard it rather than average the two.

Ticks are exponential, and decimals decide the answer

Tick and price are related by an exponential, not a linear scale, and the pool stores the square root of the price ratio rather than the ratio itself. The conversion is price = 1. Skip the decimal adjustment and your range is off by orders of magnitude, which is exactly how a healthy in-range position gets mistaken for a dead one.

Work it in that order every time. Compute 1. The position is in range precisely when the current tick sits strictly between the two bounds. One tick outside and the position holds a single token and earns nothing on the other side.

Liquidity deserves its own caution. The liquidity field is a scalar in the pool's internal units, not a token amount, and converting it to human amounts requires the square-root price at each bound. If you only need to know whether the position is live, read liquidity directly: zero means the range has been fully exited and the NFT is a receipt for nothing.

Thin liquidity is the edge case that breaks naive decoding. A position with a liquidity scalar of a few hundred units still returns valid bounds and a valid owner, so every field looks healthy while the token amounts round to dust at 18 decimals. If your computed amount0 and amount1 both round to zero at the token's decimal scale, the position is live but economically empty, and no dashboard will tell you which.

Rewards accrue globally, not per account

The stored per-account reward figure is a snapshot, not a live balance. The contract keeps a global accumulator that rises as reward tokens are funded, and your account stores the accumulator value at the moment it was last touched. Displayed rewards are the difference between the two, scaled by your staked liquidity. Stake, unstake, or claim, and the snapshot is rewritten; between those events the stored number is frozen by design.

To reconcile, read the global accumulator and your account's snapshot field, subtract, multiply by staked liquidity, and compare against the dashboard. Then read the timestamp of the last update to confirm when the snapshot was taken. A stored figure that has not moved for days is expected behavior, not a paused contract, provided the global accumulator is still advancing.

Test that last condition directly. Read the accumulator at one block, wait, read it again at a later block, and compare. If it advances, rewards are accruing and the flat per-account number is just an untouched snapshot. If it does not advance across separated blocks, funding has stopped and the dashboard's rising number is a projection that will never settle.

A missing receipt is the quiet failure. If the Transfer log that should have moved the NFT into the staking contract is absent from the block range you scanned, widen the range before concluding the stake never happened. Logs are indexed by address and topic, so a query filtered on the wrong token ID topic returns an empty set that looks identical to a failed stake.

Three states where the chain outranks the dashboard

The second is a range the price has passed entirely. Liquidity on one side is zero, the position holds a single token, and the token ID still exists and still has an owner. Reading the token ID's existence as proof of an active position is the mistake. Read the liquidity field, not the ownership.

The third is a reward token whose funding has stopped. The accumulator no longer advances, the per-account snapshot never updates, and the displayed figure is a number that will never be claimable in full. Confirm by reading the accumulator twice across separate blocks. All three states share a shape: the chain is correct and the interface is describing something else.

Decision rules follow from those states. If ownerOf returns your wallet and a transfer is pending, wait for inclusion before acting. If liquidity is zero but the token ID persists, treat the position as a single-token receipt and withdraw rather than wait for fees. If the accumulator is flat across separated blocks, stop counting unclaimed rewards as an asset.

Cost and timing are bounded by gas, not by the read. Every eth_call above is free and returns at the latest block within one block time. The only paid step is the transaction that moves or claims, and its cost is whatever BNB gas the network quotes at signing; the contract address you approve against should match the official YES token 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 and router 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d published at https://yesswap. Every claim above is checkable on BscScan for 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 on BNB Smart Chain (chain id 56); treat https://yesswap.vip and @web3yesswap as the only official channels.

Open YESswap

Frequently asked questions

Does the staking contract hold the NFT, or does the pool hold it on the staking contract's behalf?

The pool holds the position record and the ERC-721 ownership; the staking contract is simply the owner of record once the transfer is included. Confirm with ownerOf(tokenId) on the pool.

Why does my position show zero liquidity while the token ID still exists?

The current tick has moved past both bounds and the range is fully exited. The NFT persists as a receipt, but the liquidity scalar is zero and the position holds a single token.

Can I read my accrued rewards without connecting a wallet?

No signature is required for a read.

What happens to my tick range if the pool's current tick moves past both bounds?

The bounds do not move. The position stops earning fees on the exited side and holds one token until price returns inside the range or you withdraw.

How do I confirm the staking contract address is the official one before approving anything?

Cross-check against https://yesswap. vip and @web3yesswap on Telegram and X, then verify the contract on BscScan. Never approve an address sourced from a dashboard link alone.

Keep reading

Where do you want to go?

Every card below opens the live product with your own wallet — no signup, no custody.

Go straight to the tool

Everything above is one page away: add liquidity on bsc.

Stake and mineSwap tokens on BSCYour wallet signs every step. Nothing is custodied.