When I buy or sell everyone is suddenly getting the error 'The transaction cannot succeed due to error: execution reverted: Pancake: K.', Show
Do I need to change something in call functions when connected to wallet to solve this? Imagine that you are trying to swap your coins on Pacakeswap but you are getting the same error message over and over again. {% tab title="Reason" %} This usually happens when trading tokens with low liquidity. That means there isn't enough of one of the tokens you're trying to swap in the Liquidity Pool: it's probably a small-cap token that few people are trading. However, there's also the chance that you're trying to trade a scam token which cannot be sold. In this case, PancakeSwap isn't able to block a token or return funds. {% endtab %} {% endtabs %} INSUFFICIENT_A_AMOUNT or INSUFFICIENT_B_AMOUNT
You're trying to add/remove liquidity from a liquidity pool (LP), but there isn't enough of one of the two tokens in the pair. {% tabs %} {% tab title="Solution" %} Refresh your page and try again, or try again later. Still doesn't work?
{% tab title="Reason" %} The error is caused by trying to add or remove liquidity for a liquidity pool (LP) with an insufficient amount of token A or token B (one of the tokens in the pair). It might be the case that prices are updating too fast when and your slippage tolerance is too low. {% endtab %}{% tab title="Solution for nerds" %} OK, so you're really determined to fix this. We really don't recommend doing this unless you know what you're doing. There currently isn't a simple way to solve this issue from the PancakeSwap website: you'll need to interact with the contract directly. You can add liquidity directly via the Router contract, while setting amountAMin to a small amount, then withdrawing all liquidity. Approve the LP contractHead to the contract of the LP token you're trying to approve.
Query "balanceOf"
Add or Remove LiquidityHead to the router contract: https://bscscan.com/address/0x05ff2b0db69458a0750badebc4f9e13add608c7f#writeContract
{% hint style="warning" %} This can cause very high slippage, and can cause the user to lose some funds if frontrun {% endhint %} {% endtab %} {% endtabs %} PancakeRouter: EXPIRED
Try again, but confirm (sign and broadcast) the transaction as soon as you generate it. This happened because you started making a transaction, but you didn't sign and broadcast it until it was past the deadline. That means you didn't hit "Confirm" quickly enough. Pancake: K
Try modifying the amount on “To” field. Therefore putting "(estimated)" symbol on “From”. Then initiate the swap immediately. This usually happen when you are trying to swap a token with its own fee. Pancake: TRANSFER_FAILED
Make sure you have 30% more tokens in your wallet than you intend to trade, or try to trade a lower amount. If you want to sell the maximum possible, try 70% or 69% instead of 100%. Another possible cause of this issue is the malicious token issuer just suspended the trading for their token. Or they made selling action only possible for selected wallet addresses. Please always do your own research to avoid any potential fraud. If the token you are trying to swap but failed with this error code is coming from an airdrop, that is most likely a scam. Please do not perform any token approval or follow any links, your fund may be at risk if you try to do so. Transaction cannot succeedTry trading a smaller amount, or increase slippage tolerance via the settings icon and try again. This is caused by low liquidity. Price Impact too HighTry trading a smaller amount, or increase slippage tolerance via the settings icon and try again. This is caused by low liquidity. estimateGas failed
{% tabs %} {% tab title="Solution" %} If you got this error while removing liquidity from a BNB pair: Please select "Receive WBNB" and retry. If you got this error while trying to swap: Please contact the project team of the token you're trying to swap. **** This issue must be resolved by the project team. {% endtab %} {% tab title="Reason" %} This issue (while swapping) is caused by tokens which have hard-coded the V1 PancakeSwap router into their contract. While this practice is ill-advised at best, the reason for these projects having done this appears to be due to their tokenomics, in which each purchase sends a % of the token to LPs. The projects affected will likely not work with the V2 router: they will most likely need to create new versions of their tokens pointing to our new router address, and migrate any existing token holders to their new token. We recommend that any projects which created such tokens should also make efforts to prevent their users from adding them to V2 LP. The up-to-date router address is https://bscscan.com/address/0x10ED43C718714eb63d5aA57B78B54704E256024E {% endtab %} {% endtabs %} Cannot read property 'toHexString' of undefined
When trying to swap tokens, the transaction fails and this error message is displayed. This error has been reported on mobile devices using Trust Wallet. {% tabs %} {% tab title="Solution" %}
{% tab title="Reason" %} This usually happens when trading tokens with insufficient slippage allowance on Trust Wallet. The exact details of the problem are still being investigated. {% endtab %} {% endtabs %} Execution reverted: TransferHelper: TRANSFER_FROM_FAILED.
When trying to swap tokens, the transaction fails and this error message is displayed. This error has been reported across platforms. {% tabs %} {% tab title="Solution" %}
{% tab title="Reason" %} This error happens when trading tokens with insufficient allowance, or when a wallet has insufficient funds. Issues with FarmsFail with error 'ds-math-sub-underflow'You've run out of allowance of your LP token allowance to the MasterChef contract. Use token approval manager like unrekt or BscScan to Issues with Syrup PoolsBEP20: burn amount exceeds balance
You don't have enough SYRUP in your wallet to unstake from the CAKE-CAKE pool. Get at least as much SYRUP as the amount of CAKE that you’re trying to unstake.
If that still fails, you can perform an “emergencyWithdraw” from the contract directly to unstake your staked tokens.
This will unstake your staked tokens and lose any uncollected CAKE yield. {% hint style="warning" %} This will lose any yield that you haven’t harvested yet. {% endhint %} To stop this happening again, don’t sell your SYRUP. You still need it to unstake from the “Stake CAKE Earn CAKE” pool. This error has happened because you have sold or transferred SYRUP tokens. SYRUP is minted in a 1:1 ratio to CAKE when you stake in the CAKE-CAKE Syrup Pool. SYRUP must be burned at a 1:1 ratio to CAKE when calling leaveStaking (unstaking your CAKE from the pool), so if you don't have enough, you can't unstake from the pool. {% embed url="https://dashboard.tenderly.co/tx/binance/0x754e18ceea82acac256b49c2b7a81260f7f86dd5e56ee2e3cc1b6ac864c29a8e" %} Out of Gas error
You have set a low gas limit when trying to make a transaction. {% tabs %} {% tab title="Solution" %} Try manually increasing the gas limit (not gas price!) in your wallet before signing the transaction. A limit of 200000 is usually enough. The above example is from Metamask; check your wallet's documentation if you aren't sure how to adjust the gas limit. {% endtab %} {% tab title="Reason" %} Basically, your wallet (Metamask, Trust Wallet, etc.) can't finish what it's trying to do. Your wallet estimates that the gas limit is too low, so the function call runs out of gas before the function call is finished. {% endtab %} {% endtabs %} BEP20: transfer amount exceeds allowance
{% tabs %} {% tab title="Solution" %}
{% tab title="Reason" %} This happens when you set a limit on your spend allowance when you first approved the contract, then try to swap more than the limit. {% endtab %} {% endtabs %} BEP20: transfer amount exceeds balance
You're probably trying to unstake from a Syrup Pool with low rewards in it. Solution below. If not, you may be trying to send tokens that you don't have in your wallet (for example, trying to send a token that is already assigned to a pending transaction). In this case, just make sure you have the tokens you're trying to use. {% tabs %} {% tab title="Solution" %} Firstly, let the team know which pool you're trying to unstake from, so they can top up the rewards. If you're in a hurry to unstake and you don't mind losing your pending yield, try an emergencyWithdraw: You can perform an “emergencyWithdraw” from the contract directly to unstake your staked tokens.
This will unstake your staked tokens and lose any uncollected yield. {% hint style="warning" %} This will lose any yield that you haven’t harvested yet. {% endhint %} {% endtab %} {% tab title="Reason" %} This error tends to appear when you're trying to unstake from an old Syrup Pool, but there aren't enough rewards in the pool left for you to harvest when withdrawing. This causes the transaction to fail. {% endtab %} {% endtabs %} Issues with PredictionCheck prediction-troubleshooting.md Other issuesProvider Error
This happens when you try to connect via a browser extension like MetaMask or Binance Chain Wallet, but you haven’t installed the extension. {% tabs %} {% tab title="Solution" %} Install the official browser extension to connect, or read our guide on how to connect a wallet to PancakeSwap. {% endtab %} {% endtabs %} Unsupported Chain IDSwitch your chain to BNB Smart Chain. Check your wallet's documentation for a guide if you need help. Already processing eth_requestAccounts. Please wait.Make sure you are signed in to your wallet app and it's connected to BNB Smart Chain. Issues buying SAFEMOON and similar tokensTo trade SAFEMOON, you must click on the settings icon and set your slippage tolerance to 12% or more.
This is also why you might not receive as much of the token as you expect when you purchase. Internal JSON-RPC errors
Happens when trying to remove liquidity on some tokens via Metamask. Root cause is still unknown. Try using an alternative wallet.
You don't have enough BNB to pay for the transaction fees. You need more BEP-20 network BNB in your wallet. Error: [ethjs-query]
Increase the gas limit for the transaction in your wallet. Check your wallet's documentation to learn how to increase gas limit.
|