Infrastructure596 words3 min decode

BNB Chain Devnet Fee Rule Could Raise Same PancakeSwap Swap 27%

The same PancakeSwap v3 swap would cost 27% more under BNB Chain's new devnet fee rules, which charge transactions for their full declared gas limit rather than the gas used.

BNB Chain’s new blockchain could make the same PancakeSwap trade 27% more expensive
WitnessBNB Chain’s new blockchain could make the same PancakeSwap trade 27% more expensiveblickpixel / pixabay

Outputs

  1. A June 26 PancakeSwap v3 swap used 129,397 gas and paid 0.00000646985 BNB on BSC; the devnet rule would charge 0.00000819785 BNB, 27% more.

  2. At a 200,000-gas limit, the modeled devnet fee is 0.00001 BNB, about 55% above the observed BSC fee.

  3. Preconfirmation updates stream in roughly 20 milliseconds, per the devnet documentation.

  4. BNB Smart Chain recorded $484.13 million in 24-hour DEX volume in DefiLlama's Nov. 27 snapshot.

A swap that costs 0.00000646985 BNB on BNB Smart Chain today would pay 0.00000819785 BNB under the new BNB Chain devnet's fee rules — a 27% increase for the identical trade, according to on-chain data analyzed on June 26.

The transaction in question routed through PancakeSwap's v3 router and consumed 129,397 gas at 0.05 gwei per unit. The devnet's ordering rules charge a transaction for its full declared gas limit rather than the gas it actually uses, provided the transaction carries a valid sequence number and sufficient funds at execution.

Why the declared limit changes the fee?

A gas limit sets the maximum computing work a transaction may consume. On current BNB Smart Chain, an ordinary transaction pays only for the gas it burns. The new devnet orders transactions before execution and uses the declared limit to allocate space in the block, so unused capacity carries a cost.

At the observed 163,957-gas limit, the 34,560 units of unused capacity would add 0.000001728 BNB to that single swap's fee. The sensitivity is steep. A 150,000-gas limit would produce a modeled fee of 0.0000075 BNB, about 16% above the observed BSC fee. A 200,000-gas limit would cost 0.00001 BNB, roughly 55% higher.

Routers face a trade-off. Lowering the declared limit saves money on transactions that fit inside it, but the same transaction still pays the full limit if it reverts or runs out of gas under the devnet rules. An invalid sequence number at execution incurs no charge, while insufficient funds can limit what the network collects.

How do protected lanes work?

The devnet reserves a portion of block capacity for transactions sent to governance-approved contract addresses. A swap sent to an unregistered router cannot borrow the reservation of a contract the router calls. Declared limits count against a lane's quota, so a larger gas buffer leaves less room for other eligible transactions, which still compete for space within the lane.

The devnet's preconfirmation documentation lists roughly 20 milliseconds for the block producer to stream a signed update showing a transaction's intended position. Finality follows a two-step sequence: a transaction's result becomes final after execution is committed and the block carrying that commitment has finalized. An application settling a trade needs a successful receipt and must confirm the receipt's block sits on the canonical chain at or below the execution-finalized height.

When could the extra fee pay off?

A market maker could delay a quote update after seeing that a swap likely to move its reference price has provisional placement in the block. If that signal prevents costly stale quotes often enough, the savings could cover the recurring charge for unused gas. The calculus breaks if the signal is withdrawn, forcing the market maker to reassess, and a router that needs a swap's outcome before its next move still waits for execution.

The stakes are measured in hundreds of millions. BNB Smart Chain recorded $484.13 million in 24-hour decentralized exchange volume in DefiLlama's Nov. 27 snapshot. For any of that activity to migrate, the proposed network would have to make economic sense for traders at real gas prices rather than the 0.05 gwei observed in this test.

Public testing will determine whether the model holds. The next signals to watch are which lanes open, how often placement signals get withdrawn, and how much spare gas different routing paths require before routers commit to the new chain.

via cryptonews.net (Source)

More from Tom Whitfield

Tom Whitfield

Show full bio

News editor covering technology and product news in crypto and web3 industry at Mempool Brief.

1,874 articles