Custody moves at stake time, not at lock time. The farm is a separate contract from the DEX pair, and when you stake it calls transferFrom on the LP token and takes the LP balance into its own address. The pair's balanceOf(farm) rises by exactly your staked amount. What the 50 day lock constrains is the farm's per-address staked-balance field: a deposit timestamp is written on stake, and the withdraw path requires that timestamp plus the lock duration to be in the past.
Rewards sit in a different accounting variable. Accrued YES is tracked separately from the staked LP balance, which is why claim and withdraw are two entry points rather than one. A claim does not touch the timestamp gate; a withdraw does not require you to claim first. Read both mappings with eth_call against the farm address, then compare the returned timestamp to the pair's balanceOf(farm) to confirm custody.
The staking transaction is verifiable without trusting the interface. On BscScan it carries an LP Transfer event from your address to the farm address. The unstake transaction carries the reverse Transfer. If you cannot find that pair of events, the farm did not take or return custody, whatever the UI displayed.
A thin pair changes the arithmetic, not the gate. If the pool's reserves are small, the burn's proportional payout can round to zero on one side even though the lock has expired and the approve is in place. Simulate burn with eth_call and read the returned amounts before signing. A zero in either field means the LP is worth redeeming later, not now.
Ordering is forced by state, not by preference. The farm's withdraw returns LP tokens to your wallet and decrements the internal staked balance. Until that transaction confirms, your wallet holds no LP to redeem, so a burn attempt before it fails on balance, not on logic.
The pair's burn pulls the LP amount to itself with an internal transferFrom. That means a separate approve on the LP token naming the pair address as spender must confirm before burn is called. Skipping it does not break burn's math; it breaks the transferFrom inside burn, and the revert reads as an allowance error rather than a burn error. This is the single most common ordering mistake in an exit.
Decode the receipts in sequence to confirm each step. The withdraw receipt should show an LP Transfer into your address. The approve transaction emits an Approval event on the LP token with the pair as spender. The burn receipt carries the pair's Burn event, whose two amount fields are the underlying tokens sent out, plus a Transfer of the LP to the zero address.
Decision rule: if the LP allowance to the pair is already non-zero from an earlier position, skip the approve and go straight from withdraw to burn. If you are unsure, call allowance(owner, pair) on the LP token first. A returned value at or above your LP balance means the approve is redundant. Never approve max "to be safe" on a pair you have not read.
Three signed transactions is the normal full exit; two if the LP allowance to the pair already exists from a previous position. Approve is cheapest because it writes one allowance slot. Withdraw sits in the middle: it clears a staked-balance slot, updates reward accounting, and performs one LP transfer. Burn is the expensive one, because it sends both underlying tokens out and updates the pair's reserves.
In the YESswap fee-router design the burn may also trigger a transfer to the router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d. That adds a token transfer and an event to the same transaction. Check the burn receipt's internal transactions tab for the router transfer, and read the pair's. Sync event for the post-burn reserves.
Absolute cost is gasUsed times effectiveGasPrice, per receipt, summed. Gas price dominates the total far more than the gasUsed differences between the three steps, so a cheap-gas window matters more than shaving the approve. Do not estimate from the UI's displayed fee; recompute from the receipts.
Timing follows block inclusion, not the interface's spinner. On BSC a transaction is final once it is included and enough blocks follow. The exit's wall-clock time is the sum of three inclusion waits, so a stuck approve delays the burn behind it. Decision rule: if the approve has not confirmed, do not sign the burn; the burn will revert on allowance and you will pay for the attempt.
Calling withdraw before the deposit timestamp plus the lock duration elapses reverts inside the farm's time check. No state changes, gas is consumed, and the staked balance is untouched. You paid for a no-op, and the position is exactly where it was.
Calling burn without a fresh LP approve to the pair reverts on the pair's transferFrom with an insufficient-allowance error. Calling withdraw twice in the same block reverts on the second call because the staked balance is already zero. Removing liquidity from a pair where one side has been fully drained reverts on the burn math, because the proportional output cannot be satisfied.
Pre-flight is free. Re-run the same function with eth_call at the current block; it returns the revert without spending gas. On a failed transaction page, expand the status field to read the revert string, then cross-check it against your eth_call result. A mismatch usually means state moved between your simulation and your signature.
Two RPC endpoints can disagree at the tip. If one node has not yet imported the block carrying your withdraw, an eth_call against it shows the pre-withdraw state and predicts a burn revert that will not happen. Decision rule: if two endpoints disagree, pin both calls to the same block number with the block tag parameter and compare again. Only then trust the simulation.
Lock duration should be a public state variable on the farm, readable with eth_call and convertible from seconds. Compare that number to the interface copy. The same read pattern applies to the reward rate and the reward token address.
The reward token must be the YES contract at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, character for character. A farm that pays a different token, or that does not expose a readable lock duration at all, is a reason to stop before signing. The only official domain is yesswap. vip, and the only official handles are @web3yesswap on Telegram and X. Any address, domain or handle that differs is not official, and a lookalike farm can hold your LP on different terms.
A missing receipt is not proof of failure. If the explorer has not indexed your transaction yet, fetch it by hash with eth_getTransactionReceipt from your own node and decode the logs there. Decision rule: if the receipt exists and shows status success with the expected. Transfer, the exit happened regardless of what any front end displays. 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 YESswapRewards are tracked in a different accounting variable from the staked LP balance, so claim and withdraw are distinct entry points. A withdraw does not require a prior claim, and a claim does not satisfy the lock gate.
The gate compares the deposit timestamp plus the lock duration to the current block timestamp, so check the timestamp the farm actually recorded rather than your memory of the stake date. If the timestamp is right, the revert is probably elsewhere: an existing zero staked balance, or a missing LP approve to the pair if you are already at the burn step.
It is a separate transaction and a separate cost, but only when no LP allowance to the pair already exists. The pair's burn pulls the LP with an internal transferFrom, so the allowance must be in place before burn is called. Reusing an existing allowance avoids the transaction entirely.
An LP Transfer event from the farm address to your address in the withdraw receipt, matched by a fall in the pair's balanceOf(farm). The internal staked-balance decrement alone proves nothing about custody.
Call the lock duration getter on the farm with eth_call, convert from seconds, and compare to the interface copy. BscScan's Read Contract tab exposes the same getter if you prefer a browser read.
Every card below opens the live product with your own wallet — no signup, no custody.
Everything above is one page away: yes token staking.