A compound is a sequence of state changes, not a single action. The claim moves reward tokens from the staking contract into your wallet. The swap leg pushes them through an aggregator route toward YES. The stake leg deposits the result back. Each leg is signed and priced separately, and the swap leg sits in the public mempool between broadcast and inclusion, where anyone can read it.
Your wallet writes the slippage, not the interface you are looking at. The router call carries an amountOutMin field and a deadline, and those two values decide what happens next. A loose minOut lets a bot move the pool, take the gap and leave you with a worse fill. A tight minOut makes the swap revert, and you still pay gas for the failed leg.
Open the swap transaction on BscScan and read the Input Data tab. The router call shows amountOutMin and deadline in plain calldata. Compare amountOutMin against the amount actually transferred in the token Transfer logs of that same transaction. The difference is your realised slippage, and it is the only slippage number that counts. Position inside the block tells you whether a bot was involved. Two transactions touching the same pool in one block, with yours between them, is the sandwich pattern. Check the block's transaction list before you conclude the pool fee was your only cost.
BSC quotes gas in gwei against a block gas limit, and the cost of a compound is the sum of gasUsed across every leg multiplied by the effective gas price. A claim that writes storage costs more than a plain transfer. An aggregator swap crossing several pools costs more than a single-pool swap. Short block times mean the gas price you set decides inclusion speed, and a leg that lands several blocks after the claim leaves the reward idle in the wallet instead of compounding.
For any past compound, BscScan reports Gas Used by Transaction and Gas Price per leg. Sum them and multiply by the BNB price you choose. That gives the historical cost of that exact operation, not an estimate. To price the next one, call eth_gasPrice on a BSC RPC endpoint with chainId 56, then read eth_getBlockByNumber for the base fee of the latest block. Gas is fixed per transaction while reward scales with stake. That asymmetry is the whole argument. A large position compounds profitably at a reward size that would lose money for a small one, at the same gas price, in the same block.
Timing has a second cost the receipt hides. If the claim lands in one block and the swap leg lands in a later one, the reward is unprotected spot exposure in your wallet for that gap. A helper contract that bundles claim, swap and restake into one transaction removes the gap and the extra signatures. It also removes your chance to re-price the swap between legs. Decide which risk you prefer before you build the bundle.
The break-even is a comparison, not a magic number. Compound only when the pending reward's value exceeds claim gas plus swap gas plus stake gas plus expected swap cost. Expected swap cost is the pool fee tier plus the slippage you are willing to accept, applied to the notional being swapped. Read the pending reward from the staking contract's public view getter via eth_call. Read the pool fee from the swap pool contract. Convert both to the same unit, subtract the summed gas cost of your last comparable compound, and the sign of the result is your answer.
The staking and pool addresses are the ones published on yesswap. vip, and you verify them on BscScan before reading anything. Rising gas pushes the break-even reward up. A growing position pushes it down. Neither moves in a straight line, so re-run the comparison per claim rather than per habit.
Apply three rules literally. If the summed gas cost of all legs exceeds the pending reward's value, skip the compound and let the reward accrue. If the reward clears gas cost but the swap leg's expected cost exceeds a tenth of the notional, wait for a deeper pool or a larger reward. If a simulation of the exact router calldata reverts, do not sign the broadcast. Each rule is a subtraction, not a judgement call.
Every leg emits its own log, and the interface is not evidence. The claim emits a Transfer of the reward token from the staking contract to your address. The swap emits transfers into and out of the pool, plus a sync event on a standard constant-product pair. The restake emits a Transfer from your address back into the staking contract, usually alongside a staking or deposit event.
Filter the token contract's Transfer event by your address as recipient for the claim, then by your address as sender for the restake. Confirm the YES token address reads 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 character for character before you read anything else. The fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d is the reference for how fees route on this deployment. A missing leg means the compound did not complete, whatever the screen showed. Reconcile the wallet balance change against the sum of the Transfer logs. Any mismatch means a leg behaved differently from the plan.
Thin liquidity breaks the arithmetic before it breaks the transaction. On a shallow pool the quoted output moves with your own size, so the price you simulated is not the price the next block offers. Derive minOut from reserves read in the same eth_call that simulates the swap, not from a quote fetched minutes earlier. If the pool depth cannot absorb the notional without moving the price past your minOut, the correct action is to wait, not to widen the tolerance.
A missing receipt is a state, not an error. eth_getTransactionReceipt returning null means the transaction is pending or dropped, and you cannot know which from that call alone. Re-query by transaction hash until a receipt appears or the nonce is consumed by a later transaction from the same address. Never re-broadcast a replacement with the same nonce while the first is still pending, because both can land and double your exposure.
Two RPC endpoints disagreeing is normal near the chain head. Compare eth_blockNumber on both before trusting either. If they differ by more than a block or two, pin your reads to one endpoint and record which one produced the number you acted on. A reward figure read from a lagging node understates the pending amount and can push a profitable compound below your break-even line.
Batch when the marginal gas of an extra leg is small against the reward. Wait when the reward sits below break-even and the contract does not expire pending rewards. Skip when the swap leg's expected cost exceeds the reward's value outright.
Design around the partial compound, because it is the expensive failure. The claim succeeds, the swap reverts on a stale minOut, and the reward becomes unprotected spot exposure in your wallet with the gas already spent. A deadline and a minOut derived from current pool reserves, rather than a UI default, are what prevent that state.
Simulate before signing. Call eth_call against the router with the exact calldata you intend to broadcast. A revert in simulation predicts a revert on chain, and the simulation costs nothing. 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 YESswapIt requires one signature per leg. A claim, a swap and a restake are separate transactions, so a full compound is typically two or three signatures unless a helper contract bundles them.
Call the staking contract's public reward or earned-style getter with eth_call on a chainId 56 RPC, passing your address. The returned integer is in the reward token's smallest unit, so apply its decimals before comparing to gas cost.
Derive it from current pool reserves rather than accepting a default. A minOut close to the quoted output reduces the profit a sandwich bot can take, and a tight minOut that is still realistic avoids a revert that costs gas.
Yes, but the bot's upside shrinks. A tight minOut caps what the attacker can extract and makes the attack unprofitable in many cases, though it raises the chance your swap reverts and you pay gas for a failed leg.
Verify the YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 and the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d on BscScan, and take staking and pool addresses only from yesswap. A contract address copied from a third-party link can send your claim to a deployment that is not official.
Every card below opens the live product with your own wallet — no signup, no custody.
Everything above is one page away: ai quant trading bsc.