YESswap
English简体中文繁體中文日本語한국어РусскийالعربيةEspañolPortuguêsFrançaisDeutschTiếng ViệtBahasa IndonesiaTürkçe

BSC Gas Fee Explained: Exchange-style order flow on a DEX

Updated 2026-12-02 · YESswap

Short answer. A limit order on a BSC DEX is not a resting book entry. It is a conditional transaction that some signer must pay gas to broadcast, and that distinction explains most unfilled orders.
Best match for this articleProvide liquidityAdd or remove liquidity and see the pool you would trade against.

Why a pool cannot hold a resting order

Knowing how BSC gas fee explained works is what separates a clean trade from a costly one. An AMM pool stores two token balances and a pricing formula. It has no queue of bids and asks, no order-id mapping, and no cancel function. Whatever a front end calls a "limit order" resolves to one of two on-chain realities.

Case one is a swap submitted with a minimum-output threshold. The router call carries amountOutMin, and the pair reverts if reserves have moved the price past that floor. The order lives inside a single transaction and dies with it. Case two is a conditional job held off-chain by a keeper, which broadcasts a real swap when an oracle read or a reserve snapshot crosses the trigger. Until that broadcast, the order is a database row.

The matching layer is off-chain. Settlement is a normal swap. Open the pair contract on BscScan and read the Swap event: every fill is one transaction with one sender, and the event carries no order-id field. That absence is the proof. Call getReserves() on the pair address via eth_call to see the state the swap actually acted on.

Thin liquidity turns the threshold into a trap. When reserves on one side are small, a single fill moves the ratio further than the amountOutMin was quoted against, so the swap reverts instead of filling partially. There is no partial fill and no resting remainder. If a route spans several pairs, the aggregator's split is fixed at quote time, and one thin hop reverting kills the whole call. Rule: if the pair's reserve on the output side is small relative to your size, split the order into several transactions with fresh quotes rather than widening slippage.

How the BSC gas fee decides whether a trigger fires

BSC charges gas in BNB at a base fee plus a priority fee, and the base fee tracks block demand. A keeper that priced profitability at one gas price can watch the fill turn negative when the base fee climbs, and skip the block. The arithmetic is expected output minus pool fee minus gas cost. Below zero, a rational keeper waits.

Your trigger price can be touched and the order still not execute. Execution is a separate paid transaction, never an automatic consequence of price. This is the single most common source of "the chart hit my level and nothing happened."

On any fill, read gasUsed and effectiveGasPrice from the receipt returned by eth_getTransactionReceipt. Multiply them to get the BNB paid, then compare against the value moved. BscScan shows the same two numbers under Gas Limit & Usage and Gas Price.

Timing follows block production, so a keeper's decision is made per block, not per tick. A trigger that fires and un-fires inside one block interval is invisible to a keeper that samples once per block. Decision rule: if the order is small enough that gas is a large share of expected output, assume the keeper deprioritizes it and place the trigger further inside the move. If gas is a small share, the order competes normally.

Which call executes the trade, and which event proves it

Settlement runs through a router call in the swapExactTokensForTokens family. The router pulls tokens in, calls the pair's swap function, and pushes output out. The pair emits Swap with amount0In, amount1In, amount0Out, amount1Out and both reserve snapshots.

A bare transfer that never touches the pair emits only Transfer. That is the whole verification. If no Swap event from the pair address appears in the transaction, no pool trade happened, regardless of what the UI reported.

Decode the logs on BscScan's Logs tab, filter by the pair address, and look for the Swap topic. Cross-check the router in the transaction's To field against the pair address in the internal calls. Two addresses, one event, no ambiguity.

Missing receipts are a real failure mode. An RPC node that has pruned old blocks, or one that is still syncing, returns null from eth_getTransactionReceipt for a transaction that did execute. Do not read null as failure. Re-query a second endpoint and confirm the block number exists before drawing a conclusion. If two endpoints disagree on a receipt, trust the one whose block hash matches the canonical chain at that height.

Where the YESswap fee router sits

What changes is the transfer count and the gas used. More transfers means more gas, which feeds straight back into the keeper profitability question above. A routed fill can therefore be the one a marginal keeper declines to send.

Compare a routed swap and a direct swap on BscScan. Same Swap event shape, different gasUsed. Confirm the fee router address in the internal calls matches the published one before treating a fill as canonical. Any other address claiming that role is not the official path.

Edge case: a fill that touches the router but never reaches the pair. The router can move the fee in its own. Transfer logs while the swap leg reverts, and the transaction status tells you which happened. If status is 0x1 but no Swap topic from the pair appears, the fee leg ran and the trade did not. Read the internal call trace, not just the top-level To field.

Failure paths and the checks that catch them

Slippage revert is the loud one. Reserves move between quote and broadcast, the minimum-output check fails, and the transaction reverts with status 0x0. The trader pays gas and receives nothing. Detect it by reading the receipt status directly.

Keeper abandonment is silent. The job is dropped, or the signer runs out of BNB for gas, so no transaction is ever broadcast. Nothing appears on-chain and the order expires without a trace. Detect it by scanning the signer's nonce sequence for gaps and checking its BNB balance on BscScan.

Stale trigger is the subtle one. The keeper acts on a lagging oracle or reserve read, so the fill lands past your intended limit or never fires. Compare the reserves recorded in the fill's Swap event against getReserves() at the trigger block. A mismatch tells you which read the keeper trusted.

Two endpoints disagreeing is the quiet fourth path. One reports the swap as pending, another as mined, and a third returns a receipt with a different gasUsed. Hash the block at the transaction's block number on both endpoints. If the hashes match, the receipts should match; if they differ, one endpoint is on a fork and its numbers are worthless for accounting. Decision rule: if the block hashes disagree, wait for confirmations before treating any gas figure as final.

Sizing a position around these limits

Treat the trigger price as a request, not a guarantee. Size the position so that a fill several blocks late, at a worse reserve ratio, still fits your thesis. Budget the gas cost of the fill as part of the entry, not as an afterthought.

Verify the YES token contract at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 and the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d before signing anything. The only official domain is https://yesswap. vip, and the only official handles are @web3yesswap on Telegram and X. All transactions are signed in your wallet; the site never asks for a private key or seed phrase.

Cost accounting has two lines the UI often merges. The pool fee is charged inside the swap and shows up as the gap between the quoted rate and the executed rate. The gas is charged in BNB on top and appears only in the receipt. Rule: if the combined cost of fee plus gas exceeds the edge you expect from the limit price, the order is not worth placing at that size. 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 YESswap

Frequently asked questions

Does YESswap hold my limit order on-chain, or off-chain until a keeper fires it?

Off-chain until broadcast. The pool holds reserves and a formula, not an order queue, so a conditional order is a keeper job until a signer pays gas to submit the swap.

Why did my order not fill when the price crossed my trigger on BSC?

Execution is a separate paid transaction. If the base fee rose and the fill turned unprofitable, the keeper skipped the block even though the trigger was touched.

How do I read the gas cost of a specific swap from the BscScan receipt?

Multiply gasUsed by effectiveGasPrice from eth_getTransactionReceipt. The same two fields appear on BscScan under Gas Limit & Usage and Gas Price.

What is the difference between a Swap event and a Transfer event when verifying a fill?

Swap is emitted by the pair and carries amount0In, amount1In, amount0Out, amount1Out and reserve snapshots. Transfer alone means no pool trade occurred.

What does a reverted swap cost me?

The gas, and nothing else. Status 0x0 means no state change, so the input tokens stay in your wallet while the BNB spent on gas is gone.

Keep reading

Where do you want to go?

Every card below opens the live product with your own wallet — no signup, no custody.

Go straight to the tool

Everything above is one page away: swap tokens on bsc.

Provide liquidityStake and mineYour wallet signs every step. Nothing is custodied.