In pancake swap, when we enter liquidity pool with any pair of tokens, i'm getting this error after confirming the transaction through connected wallet
Fail with error 'PancakeRouter: INSUFFICIENT_B_AMOUNT
I am just going to be more detailed, so people who are new to this maybe able to understand the full flow.. I am learning too, so people who are already an expert are welcome to correct me or give more details if required.
Firstly, Pancake is a Decentralized Exchange (DEX) that operates on Binance Smart Chain (BSC) Network where you can do Decentralized Financing (DeFi) like Staking or Liquidity Mining with BSC tokens or Token Pair that are supported/popular in Pancake DEX respectively.
When you try to enter into Pancake Liquidity Pool (LP) with a token pair (example: BNB/BMON or BMON/BUSD),
To avoid such errors, make sure to click/tap 'confirm' in Pancake DEX and subsequent authorize confirmation in your connected Wallet ASAP. So the transaction would end up giving you approximately the same no. of LP token and hence the transaction will be able to finish successfully.
If you still see the same issue, try 2 or 3 more times, then it will succeed.
Thanks!