Knowing how add liquidity on BSC works is what separates a clean trade from a costly one. Adding liquidity through a PancakeSwap-style router ends in one call that matters: the pair's mint(). That call emits. Mint(sender, amount0, amount1) and then. Sync(reserve0, reserve1) in the same transaction, and the token movements arrive as Transfer events from both token contracts. The Sync values are the post-trade reserves, the single field that tells you what the pool looked like at the moment of execution.
Most bot logs record the intent and drop the snapshot. A line reading "add 0. 4 BNB" is unfalsifiable on its own, because nothing in it says what the pool held when the router priced the deposit. Open the transaction on BscScan, expand. Logs, and read. Mint and Sync in emission order. Then call eth_getTransactionReceipt over RPC and decode the pair address's logs yourself, since the explorer's decoded view is a convenience and the raw topics are the record.
Reconciliation is the test. Any log line that cannot be tied to a Mint or Sync under the same tx hash is unverified, and you should strike unverified lines from the audit rather than argue about them. This is a different failure story from the usual one about reverted swaps, and it is more common: the trade worked, and the log simply never captured the state it worked against.
Second-order check: a Mint whose amount0/amount1 do not match the two Transfer amounts into the pair is a token with a transfer fee or a rebase, not a bot bug. Read the pair's token0() and token1() to confirm which side is which before comparing, because a swapped decode produces a phantom mismatch. If the pair address in your log does not match the pair the router actually called, the log is describing a different pool entirely.
A revert burns gas and moves no balances. An execution at a poor price moves balances and emits. These demand opposite fixes, which is why the receipt's status field decides the diagnosis before you read anything else: 0x0 means the transaction failed, 0x1 means it landed, and a 0x0 receipt still carries a gasUsed you paid for.
Take a concrete case. A bot fires a swap, the log prints a filled position, and the wallet balance is lower by gas only. Call eth_getTransactionReceipt and read status first. If it returns 0x0, no Swap or Mint will exist in that receipt, and the log entry claiming a position is false no matter what the bot printed to its own database. Reconcile gasUsed multiplied by effectiveGasPrice against the signer's BNB delta, and the arithmetic should close to the wei.
Status 0x1 with a Swap present is the other branch. Here the bot did trade, and the question becomes price, not permission. Confirm the Swap event's amounts against the reserves in the nearest Sync, and only then start asking whether sizing or slippage settings were wrong. Skipping the status check sends operators to debug market depth when the real fault was a parameter.
Decision rule: if status is 0x0 and the log claims a fill, mark the row false and stop. If status is 0x1 and the Swap amounts exceed your slippage bound, the fault is in the router call's amountOutMin, not in the pool. If status is 0x1 and the amounts sit inside the bound, the loss is a market outcome and the code is exonerated.
A bot that approves the wrong spender never reaches the pool at all. The ERC-20. Approval(owner, spender, value) event and the allowance(owner, spender) view function expose this without touching market data, which makes the approval trail the cheapest place to find a logic bug. On YESswap, swaps and liquidity routing pass through the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d, so the spender in the Approval log must equal the contract in the transaction's to field.
A mismatch is a code bug, full stop. A stale or copied address produces a run of status 0x0 receipts while the log keeps printing positions, and the operator spends the afternoon reading pool depth instead of the approval. Call allowance on the token contract with the router as spender and compare it to the Approval log's spender field. For YES specifically, read the BEP-20 at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 and confirm the spender before trusting any log line about a position.
Verification of the addresses themselves comes before all of this. Check the router and token against the official site at https://yesswap. vip, and treat any address that differs as hostile until proven otherwise. A log built on a wrong contract is not evidence of anything.
Edge case worth naming: an infinite approval (type(uint256). max) hides a later spender change, because the allowance never decrements and the bot's own log shows a healthy balance. Re-read the Approval events in block order rather than trusting the current allowance alone. Two RPC endpoints that disagree on a receipt usually differ on finality, so pin both to the same block number before comparing.
Price impact scales with trade size against reserves, so the Sync pair around a Swap attributes the loss arithmetically. Reserves that barely move mean the pool was deep and the loss came from the bot's sizing, timing or fee assumptions. Thin reserves mean the same trade size produces a large move, and the loss is a market-depth effect the bot could not have avoided at that size.
Read the Sync immediately preceding and following the Swap, in the same or adjacent transactions on the pair contract. Compute the reserve ratio change and compare it to the executed amounts in the Swap event. The fee router's cut is a fixed, separate line item, so subtract it and subtract gas; any residual left over is bot-side error. This is where a missing pre-trade. Sync in the bot's own log becomes expensive, because without it the reviewer cannot run the subtraction at all and tends to misattribute a depth loss to code.
Cost and timing: the audit is cheap in BNB and slow in wall-clock. Each receipt fetch is one RPC call, and eth_getLogs over a block range is one call per range, so a few hundred rows cost a few hundred requests and no gas. The only BNB you spend is what the bot already burned on failed transactions, priced at gasUsed times effectiveGasPrice per 0x0 receipt. Budget the afternoon for the reconciliation, not the queries.
A row that stores tx hash, block number, signer, router address, pair address, pre- and post-Sync reserves, gasUsed and effectiveGasPrice is fully reconstructable from chain alone. A row that stores only a computed PnL is not, and when a receipt goes missing or a block reorgs there is no hash to re-verify against, which makes the entire row unauditable. Persist the inputs to the decision and the chain's outputs; never let a summary be the only record.
The checklist runs in this order. Pull the transaction list and confirm each hash resolves. Decode the logs and match every claimed action to a Mint, Swap, Transfer or Sync in that receipt. Check status, gasUsed and effectiveGasPrice against the signer's balance delta. Compare reserves across the trade and subtract the router fee and gas. Decide, on the residual, whether the loss was logic or depth, and mark anything unmatched as unverified. Re-run eth_getLogs filtered by pair address and block range to confirm stored fields against the chain.
Missing receipts are a real branch, not a footnote. If eth_getTransactionReceipt returns null for a hash your log claims, the transaction either never broadcast or was dropped from the mempool, and no amount of log reading recovers it. Treat the row as unproven and re-derive it from the signer's nonce sequence before writing any conclusion. 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 YESswapA status 0x0 receipt still reports gasUsed, and multiplying it by effectiveGasPrice gives the BNB you paid for a transaction that changed no balances.
The log recorded intent, not execution. Call eth_getTransactionReceipt and check status; if it is 0x0, no Mint exists and the position line is false regardless of what the bot printed.
Read the Approval event's spender field and compare it to 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d, then confirm with allowance(owner, spender) on the token contract.
Swap reports the amounts traded; Sync reports the reserves after the trade. Mint and Sync together describe a liquidity add, and the Sync values are the post-trade state you compare against.
Compare the address to 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 as published on https://yesswap. vip, and treat any other address in the log as unverified.
Every card below opens the live product with your own wallet — no signup, no custody.
Everything above is one page away: add liquidity on bsc.