Knowing how bep20 token approval works is what separates a clean trade from a costly one. Approving an LP token does not move anything. It writes a number into the LP token contract's own storage, keyed by owner and spender, and that number is a ceiling on transferFrom calls the spender may make later. No tokens change hands at approval time. The Approval event (owner, spender, value) is the only trace, and the token emits it, not the staking contract.
The spender for a stake is normally the staking or farming contract, not the DEX router. That distinction matters because the router has no reason to hold your LP tokens and no legitimate path to call transferFrom on them. Approving the router grants a right nobody asked for. If the wallet confirmation screen names an address you cannot match to the staking contract published on yesswap. vip, reject the signature and re-read the interface.
Staking does not consume the allowance. The contract pulls the LP tokens with transferFrom, holds them as its own balance, and the allowance stays at whatever you set. A full-balance approval therefore leaves a standing spending right after the position closes. Read allowance(owner, spender) under. Read Contract on the LP token before and after staking. The figure will usually be identical.
Decision rule: if the allowance after staking equals the allowance before, treat the residual as live risk and schedule a revoke in the same session. If it dropped to zero, the contract consumed it and no revoke is needed. Cost is one extra transaction; timing is the next block. A revoke is cheap relative to the exposure it closes, and the exposure lasts until you send it.
A staking contract's own event is a claim about itself. The LP token's Transfer log is a claim about the token's ledger, and the token contract is the only party that can emit it. When the two disagree, the Transfer wins. A farm that reports a position with no matching Transfer into its address has taken no custody.
Filter the LP token's. Logs tab with the staking contract as the 'to' field for deposits and as the 'from' field for withdrawals. Match the block number and transaction hash against the farm's own event in the same transaction. Deposits and withdrawals are separate. Transfer directions; a claim is usually a third. Transfer of a different token entirely. If the receipt is missing from your node, query the same block range on a second RPC endpoint and compare the transaction hash and log index. Two endpoints that disagree on a log mean one is lagging or pruned, not that the transfer failed.
One worked failure story. A farm emits. Deposit for a user's LP amount while the LP token shows no Transfer to the farm address in that transaction. The position exists only in the farm's internal mapping. Unstaking then depends on the farm's solvency rather than on tokens it holds, and the user discovers this at withdrawal time, not deposit time. Thin liquidity makes this worse: a farm holding little of the LP token cannot return what its mapping promises, and the shortfall surfaces only when several users unstake in the same block.
Decision rule: if the deposit transaction shows a farm. Deposit event but no matching LP. Transfer to the farm, treat the position as unsecured and do not add more. If both appear in the same transaction hash, custody is proven for that deposit and only that deposit.
Unstaking returns tokens and changes nothing about the allowance. The farm has no reason to call approve on your behalf, so the ceiling you set stays in place. A contract later upgraded, exploited, or repointed at new logic can still pull up to that amount. The risk window opens after you close the position, which is the part most guides omit.
The remedy is a second transaction: approve(spender, 0), which most interfaces label revoke. It writes a fresh. Approval event with value 0 into the LP token's logs. Confirm the spender address has not changed by comparing it to the 'to' field of your original deposit transaction. A revoke against the wrong address revokes nothing. If your wallet shows a pending revoke and a pending unstake at once, wait for the unstake to mine first; a revoke mined ahead of it can leave the farm unable to pull on a path that expects the allowance.
Test the whole path with a partial approval first. Approve a fraction of the balance, stake it, unstake it, then re-read allowance. If the number is unchanged, you have reproduced the standing-right behaviour on your own position with your own funds rather than trusting a description of it. Cost is the gas of two extra transactions; timing is two blocks. That is the cheapest audit available to a retail reader.
The approval goes to whichever contract calls transferFrom, and on a stake that is the staking contract. The fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d handles fee routing on swaps and is not the spender for an LP stake unless an interface names it explicitly. The YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 keeps its own separate allowance mapping, so an LP approval never touches it.
Read the spender field on the wallet confirmation screen before signing. On BscScan, the transaction's 'to' address is the contract being called, while the Approval event's spender field is the address receiving the right. Both should match the staking contract address published on yesswap. Any address that differs is unverified until matched on chain. If the two disagree with each other, stop: the interface is calling one contract while granting a right to another.
Lookalike contracts copied from unofficial sources are the practical attack here. An approval to a lookalike grants a spending right to a contract that never needed it and never will. Cross-check the domain too: yesswap. vip is the only official one, with @web3yesswap on Telegram and X. Decision rule: if any address, handle, or domain differs from that set, treat the approval as hostile and revoke before doing anything else.
A claim transfers the reward token from the farm's balance to you and updates internal accounting, typically a rewardDebt field or a per-user accumulator. The dashboard figure is computed off chain from those fields plus the current block. The transaction settles at the block it is mined in. Accrual keeps moving between the two, so the numbers differ by design rather than by error.
In the claim transaction, look for a Transfer of the reward token to your address in the Logs tab. Read the farm's user info function, commonly userInfo or an equivalent mapping, before and after the claim to see the accounting change. Compare the claim's block number to the block at which the dashboard number was rendered. That gap explains the difference.
A claim that emits no reward-token. Transfer has only moved accounting. Treat it as a bookkeeping update, not a payout, and check whether the farm's reward token balance can cover the figure it reports. If the receipt is unavailable, re-query the block by hash on a second endpoint before concluding the payout is missing. Decision rule: if the userInfo debt field moved but no Transfer to your address exists in the same transaction, the claim paid nothing.
First, confirm the spender is the staking contract and not a router or a lookalike. Second, confirm the LP token's Transfer log shows your deposit landing in the farm's address. Third, plan the revoke before you stake, not after you unstake. Each check is a read, not a trust decision.
Run the checks in that order because each one gates the next. A wrong spender makes the custody check irrelevant, since the tokens never reach the farm. A missing Transfer makes the revoke pointless, since there is nothing to revoke against. Cost is three reads and one signature; timing is minutes, not days. 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 YESswapThe farm pulls tokens with transferFrom and the allowance stays at the value you set. Re-read allowance(owner, spender) after staking and it will usually be unchanged.
Send approve(spender, 0) to the LP token contract. It writes a new Approval event with value 0, and most interfaces expose it as a revoke button.
The staking contract that will call transferFrom.
Yes, up to the remaining allowance. Unstaking returns tokens but does not reset the ceiling, so revoke explicitly.
Filter the LP token's Logs tab for Transfers with the farm as the 'to' field. A farm event with no matching Transfer means the position is bookkeeping only.
Every card below opens the live product with your own wallet — no signup, no custody.
Everything above is one page away: token approval checker bsc.