Knowing how grid trading bot BSC works is what separates a clean trade from a costly one. The pair contract is the oracle. A PancakeSwap-style pair exposes getReserves(), returning reserve0, reserve1 and blockTimestampLast, and the bot divides one reserve by the other after normalizing for token decimals. That ratio is the entire reference price. Nothing off-chain enters the calculation.
Grid bounds are set as multiples of that ratio rather than as absolute prices. Each level becomes a limit order the bot executes through the router once the ratio crosses it. The bot is therefore trusting the pool invariant, not a signed price feed, and the invariant holds only while the pool is honest about its own depth.
Verification takes one call. Paste the pair address into BscScan's. Read Contract tab, call getReserves(), and compare reserve1/reserve0 to the grid center the bot publishes. The same numbers appear in the pair's. Sync event at every liquidity change, so grid crossings can be replayed against. Sync history rather than taken on faith.
Two edge cases bite here. If getReserves() reverts or returns a blockTimestampLast far behind the current head, the ratio you read is not the ratio the bot traded on, so pin your read to a block number and re-query at that block through eth_call with an explicit block tag. If two RPC endpoints disagree on reserves at the same height, one is lagging a reorg; trust the endpoint whose block hash matches. BscScan's canonical hash for that height, and discard the other read entirely.
Decision rule: if the pair's reserves at your pinned block differ from the bot's published center by more than one grid spacing, do not deposit, because the bot is pricing off a state you cannot reproduce. If they match within a fraction of a spacing, the center is honest and the remaining risk is cost, not price.
A grid fill is a swap, and a swap pays two separate costs. The pool fee is charged on the trade itself. The fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d adds its own take during transfer, which means the amount debited from the sender is not the amount that reaches the pair. Break-even is the round trip: pool fee on entry, pool fee on exit, plus router take on both legs.
Spacing narrower than that sum is a losing machine. Every completed cycle nets negative even when the bot reports a profitable fill, because the bot is comparing against the raw reserve ratio and ignoring the transfer delta. The grid looks busy and the balance shrinks.
Trace it directly. Open the router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d and read its transfer logic, then pull a Transfer event from a YES token swap at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111. Compare the amount credited to the pair against the amount removed from the sender. That gap, doubled, is the floor your grid spacing must clear.
Timing matters as much as size. A round trip is two transactions, each waiting for inclusion, so your capital is exposed to ratio drift between the entry block and the exit block; a spacing that clears cost by a thin margin can still lose if the ratio moves against you while the second leg is pending. Decision rule: if your spacing barely exceeds the doubled transfer gap, widen it or accept that queue latency, not the fee, decides the cycle's sign.
Execution price lives in the pair's. Swap event. The event carries amount0In, amount1In, amount0Out and amount1Out, so the realized ratio is computable from the log alone with no reference to what the bot claims. A claimed fill price that drifts from amount1Out/amount0In by more than the pool fee means the bot is quoting a mid-price and calling it an execution.
Match the two logs by transaction hash. Open the YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 on BscScan, filter. Transfer events for the bot's address, and pair each one with the Swap event in the same hash. The two amounts give you the price the wallet actually paid.
One field deserves particular attention: the recipient on the Transfer event. A fill routed through an intermediate address before reaching the pair changes the effective entry cost without changing the Swap event's arithmetic, and the only place that detour shows up is the transfer path.
Missing receipts are the edge case that hides this. If a transaction hash has no receipt from your endpoint, do not assume failure; query eth_getTransactionReceipt against a second endpoint and cross-check the block number against. BscScan before concluding the fill never landed. If the receipt exists but the Swap log is absent, the transaction touched the token without touching the pair, which is itself the finding.
Thin reserves break the ratio. When one side of the pair is shallow, a single large swap displaces the ratio far beyond the grid spacing, and the bot re-centers on a number that is not a price. Levels placed at that center are wrong the instant the manipulator unwinds. Every transaction confirms; only the P&L reports the damage.
The defense is a depth gate. A bot should refuse to re-center when reserve depth falls below a threshold expressed relative to grid size, and it should expose that threshold so you can read it. Compare reserve0 and reserve1 before and after a large. Swap event in the same block. If the ratio moved past the spacing and reverted within a few blocks, you have found the vulnerable path.
Approval scope is the third failure. An unlimited allowance to the bot or router lets one bad re-center move the entire balance, and the loss is not bounded by the grid's nominal position size. A bounded allowance caps the damage at the number you signed.
Decision rule for depth: if the largest single. Swap in the pair's recent history moved the ratio by more than your spacing, treat every re-center in that window as suspect and skip the grid until depth recovers. Decision rule for approval: if the bot requests an unlimited allowance, set a finite ceiling equal to the position size you are willing to lose and re-approve only when you resize.
Start with the Approval events. On BscScan, open the YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, filter Approval events for your address, and read the allowance value against the bot contract. An unlimited figure is a decision, not a default, and it should be a deliberate one.
Cross-check the addresses themselves before signing anything. Confirm the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d and the pair against the official site https://yesswap. Any contract, domain or Telegram handle that differs from the published set is a substitution, and a substituted router takes whatever split it likes.
Cost and timing for the audit itself: three contract reads and one event filter, all free, each returning within a single RPC round trip. The only spend is the approval transaction you sign to set a bounded allowance, and the only wait is that transaction's inclusion. Nothing in the audit requires a deposit.
Spacing below round-trip cost is checkable arithmetic. Compute pool fee plus router take on both legs and compare it to the published grid spacing. If spacing is smaller, the bot cannot be profitable on a completed cycle regardless of how it reports.
Manipulated re-centering is checkable against history. Pull Sync events around each re-center and look for a reserve ratio that moved beyond spacing and snapped back. A bot that re-centered inside that window priced off a distorted number. 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 calls getReserves() on the pair, uses reserve1/reserve0 adjusted for decimals as the center, and spaces levels as multiples of that ratio.
0x0c9a2351e6e982b16559a68767003e7f4d02fb0d, per the official site https://yesswap.
The pair's Swap event, where amount0In and amount1Out give the realized ratio independent of what the bot reports.
Yes, when grid spacing is narrower than the pool fee plus the fee router's take on both legs of the round trip.
A bounded allowance rather than unlimited, so a single mispriced re-center cannot move the whole balance.
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.