'pancakeswap swapExactTokensForETH how to transfer wbnb to bnb

I use contract function swapExactTokensForETHto swap some tokens to bnb, but the result is I only got wbnb instead of bnb.

I look up the transaction in the browser, and I found the difference between my code and pancakeswap:

Here is what my code did:

enter image description here

Here is what pancakeswap did: here is what pancakeswap did

How to fix my code to transfer wbnb to bnb?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source