Questions tagged [pancakeswap]

PancakeSwap is a Binance Smart Chain-based DEX launched by anonymous devs with a penchant for breakfast foods and rabbits. It looks a bit like Ethereum's SushiSwap (community governance, the ability to farm liquidity provider tokens), but also incorporates many other features that let you earn rewards.

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 views

Swapped from Cake to Catamoto on Pancakeswap and lost my tokens

Here is the transaction.. I lost Anyone know how I can get them back/ From: 0x2440B5b7cF4619FD98cd43CeCa9039E3d9E6b0c5 Interacted With (To): 0x13f4EA83D0bd40E75C8222255bc855a974568Dd4 (PancakeSwap: ...
JGL's user avatar
  • 1
0 votes
0 answers
22 views

addLiquidityETH reverts even after token approval

I am trying to deploy liquidity on a testnet using this code. However, it reverts with no explanation given other than that error. According to the UniswapV2 docs, I am using the correct router (...
Bobby Bee's user avatar
0 votes
1 answer
22 views

Having trouble adding liquidity to Pancakeswap

I've added tokens to pancakeswap before, and it was easy, but now it doesnt work anymore... perhaps I am doing something really dumb, but I can't seem to figure it out and could use a little help. I ...
Adjam's user avatar
  • 137
0 votes
0 answers
17 views

Does removing liquidity from a staked pancakeswap lp unstake it?

If I remove all the liquidity from a PancakeSwap V3 LP, I know it also collect the fees earned. But if that LP is staked in a farm, will removing the liquidity automatically unstake it and harvest the ...
sharip's user avatar
  • 1
1 vote
0 answers
19 views

Not getting every transaction and unable to parse data

The following JS code uses a basic BNB Smart Chain endpoint from QuickNode and ethers.js v6.3.0 to parse all transactions' data that is sent to PancakeSwap address. const address = '...
PancakeBot's user avatar
0 votes
0 answers
44 views

Swap on Pancake swap V3 using web3.py

How can I programatically swap this transaction (https://bscscan.com/tx/0xeb82366f808d194bcae4ede724bb0dbaeebc431fe492ff70b1c3c7a5d5762d47) using web3.py? When swapped from their official webgui they ...
LLDimup's user avatar
0 votes
1 answer
21 views

Transaction fees too high for swapExactETHForTokens

I've written a script to buy tokens in javascript. The issue is I keep getting an error showing abnormally high transaction fees. This is my script const buyFunction = this.pancakeContract.methods....
ahabsy's user avatar
  • 1
0 votes
0 answers
25 views

Swapping tokens with code

how do I swap tokens using java script in pancake swap v3 I'm looking for source code but not finding it anywhere
RichMond's user avatar
1 vote
1 answer
67 views

Fail with errors 'Pancake: TRANSFER_FAILED'

https://bscscan.com/tx/0x41fcd1893c7500ae2ace0ab195bb0c9bbfcfefd05ad794707a65749d358da3df. I don't undestand why my transaction is failed. I fixed my fee limit at 1.500.000 and only 10% was used. If ...
Yanis HERY's user avatar
0 votes
0 answers
26 views

Get historical price data from dex on new chain

I need to get historical price data from a uniswap clone on a brand new blockchain. I cant use bitquery or similar api as it doesnt support this chain. How could I go about it getting it directly from ...
koukotsu's user avatar
  • 361
1 vote
1 answer
38 views

I'm having trouble sending token1 to a pair address and receiving token0

I am trying to make a swap directly via the pair address without a router. I'm trying to get token0 by sending token1. The amount of token0 I will receive does not matter, but when I run the node.js ...
Jack Suelman's user avatar
0 votes
1 answer
218 views

Getting pancake swap's v3 price via eth_call

I need to get price of PCS v3 pairs. I see that Pancakeswap makes call to https://nodes.pancakeswap.info/ [ { "data": "...", "to": "..." }, "....
LLDimup's user avatar
0 votes
1 answer
49 views

Getting EVM error when trying to call a basic contract using Javascript

I am a complete beginner when it comes to writing javascript so bear with me. I want to write a basic .js file that I can run that will be able to sell something for BNB (in this case a very small ...
Jewbacca79's user avatar
0 votes
1 answer
81 views

Swap BNB for CAKE using web3.js on pancakeswap

I'm trying to implement token swap in nodejs using web3 library on the pancakeswap router. I'm able to perform this swap using the pancakeswap webpage but unable to do this programmatically. I'm using ...
DeveloperTheBeginer's user avatar
0 votes
0 answers
76 views

Pancake swap v3 exactInputSingle fails without reason

Im trying to make swap on PancakeSwapRouterV3(0x13f4EA83D0bd40E75C8222255bc855a974568Dd4) with web3js using method exactInputSingle. With v2 version i could do this with swapExactTokensForETH method ...
Szedou's user avatar
  • 1
0 votes
0 answers
38 views

Pancakeswap V3 flash loan, receiving F0 error even though the flash loan has been repaid

I'm trying to finish up the callback function for a pancake swap flash loan. Everything is now working however for some reason the flash function fails due to an F0 error (ie. not paid the loan back). ...
Alexander Hunter's user avatar
0 votes
1 answer
51 views

I have a few questions about my token

Recently I have created a meme token based on the Gotta Lock In meme. When I deployed it to PancakeSwap, I deposited 19.000.000 $LOCKIN alongside with ~15$ of BNB into the liquidity pool. However once ...
Bùi Bảo Hoàng's user avatar
0 votes
0 answers
60 views

PancakeSwapV2 router "getAmountsOut" function returns wrong value

I'm struggling with "getAmountsOut" function, which works kinda fine for BNB/CAKE or CAKE/BNB. But it in some cases it just returns straight wrong values. Code: public async Task<decimal&...
Danik Logan's user avatar
0 votes
1 answer
40 views

Place a Bear Bet via Pancakeswap Predictions

I'm pretty new to using Python to interact with smart contracts. I've been trying to make a short and simple python script that will interact with Pancakeswap's prediction market contract and place a ...
dbakathaillist's user avatar
1 vote
2 answers
188 views

Nethereum: any pancakeswap contract function call results in "execution_reverted", all transactions fail with same error

I'm completely new to web3, and I do realise that there is small portion of information on the web3 for developers, especially when it comes to debugging and issue solving. My main goal is just to ...
Danik Logan's user avatar
0 votes
1 answer
63 views

Transaction on BSC gets reverted due to Fail with error 'TransferHelper: TRANSFER_FROM_FAILED'

I'm not able to make a swap using the contract for some reason (I'm sure that I'm missing something fundamental). Here is the code. https://bscscan.com/address/...
somaito's user avatar
0 votes
0 answers
114 views

How to swap tonkens in pancakeSwap using nodeJS

I need to write a script to swap tokens in PancakeSwap using NodeJS. I'm new to web3 development, so maybe I'm misunderstanding some of what I'm seeing in the various docs. I know PancakeSwap doesn't ...
Oleh's user avatar
  • 1
0 votes
0 answers
38 views

Mainnet-fork has different result than mainnet

I'm currently forking Binance Smart Chain using Brownie and Python. The idea is to use the forked network to test if new BEP20 tokens can be traded (buy and sell) using pancakeswap, and check if the ...
BJ2M's user avatar
  • 11
0 votes
0 answers
26 views

getting reverted with reason string 'SWAP_CALL_FAILED' while trying back sell unitymeta Token

const unityMeta = '0xca861e289f04cB9C67fd6b87ca7EAFa59192f164'; const WBNB = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'; const params = { sellToken: unityMeta, buyToken: WBNB, ...
usama musa's user avatar
0 votes
1 answer
137 views

getAmountIn equivalent of uniswapV3 or how to calculate it?

I was exploring uniswap V3 router, quoter and factory contracts, but it doesn't have getAmountIn function to calculate the minimum amount I must input to get the desired amount. On some thread, I ...
Biruk Damte's user avatar
2 votes
0 answers
24 views

Uniswap/PancakeSwap automatically manage tokens with different amount of decimals (swap)?

I'm getting number results that do not make sense for me, when executing swap functions with USDT (in Uniswap V2 and PancakeSwap V2), and I noticed that USDT Token has only 6 decimals, instead of 18 (...
Alexander Herranz's user avatar
0 votes
0 answers
42 views

Tips for creating a liquidity pool in Pancake Swap

dear friends I need the advice of my dear professional friends on this site in several areas, please advise and guide me in all areas. The first part is, what is the best strategy for financing a ...
Ali's user avatar
  • 63
0 votes
0 answers
46 views

Can you tell me, why addLiquidityETH is not working?

Can you tell me, why addLiquidityETH is not working? I'm trying to call her through etherscan. // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/...
user125862's user avatar
1 vote
0 answers
390 views

How to programmatically auto-add liquidity on transaction (ERC20, BEP20), (Uniswap Pancakeswap), (V2, V3)

I've perused the liquidity docs on the relevant DEXes Uniswap and Pancakeswap, as well as on Github. I've found no good tutorials outlining how to add liquidity by code. It's like trying to complete a ...
Ashraile's user avatar
  • 125
0 votes
2 answers
94 views

How to fetch tokens amountOut on different DEXes on BSC?

guys! I am new in DEX trading robots development and I ask you for help in understanding/explaining pretty basic and simple things to me. First of all, I want to do the most basic thing we can imagine:...
Kind_Man's user avatar
0 votes
1 answer
335 views

pancakeswap v2 flash loan arbitrage real output amount is not as expected

when i monitor a profitable trade. The difference in profit calculated by my own method and the result of getAmoutsOut is not significant. Before sending the transaction, I would use the getAmoutsOut ...
DOGGODCoder's user avatar
1 vote
0 answers
295 views

How can I make a multicall transaction using web3.py and pancakeswap router?

I need to do a multihop swap. For example : BNB->USDT->TOKEN. I am trying to do this swap using pancakeswap roter v2 swapExactETHForTokens method. But I get execution reverted swap_path = [...
NIKITA's user avatar
  • 25
1 vote
0 answers
81 views

0x protocol swap api not fetching liquidity from pancakeswap

I created a liquidity pool on pancakeswap for an asset pair for goerli network. I get this error when i try and fetch the price. here is the api request https://goerli.api.0x.org/swap/v1/price?...
ShisukeUrahara's user avatar
1 vote
1 answer
341 views

Deploying with hardhat : ProviderError: INTERNAL_ERROR: could not replace existing tx

I am trying to deploy pancakeSwapv3 contracts on goerli network. I have been able to do it successfully on hardhat network and also on BSCtestnet, using the pre existing deploy script provided in the ...
Yann's user avatar
  • 56
0 votes
0 answers
467 views

how to buy tokens with python web3 in pancakeswap v3

can someone give me an example of how to buy tokens in python web3 with the v3 version of pancakeswap? I don't understand what parameters I have to pass to the multicall() function.
juan carlos's user avatar
1 vote
0 answers
247 views

Pancake swap hack

I have been recently victim of a pancake swap by buying some custom token. My Ledger and my Metamask were connected to pancake swap while i tried for the 1st time a Crypto Pump found on Telegram (a ...
soleshoe's user avatar
  • 111
0 votes
0 answers
29 views

Token fee in my contract error in pancakeswap

I have created a logic in my contract by modifying the transfer function, so that it debits from the total amount arriving the taxes I need, then those taxes are sent to the same contract and ...
LouiLou's user avatar
0 votes
2 answers
131 views

I bought a token the amount appear in bscscan but not in pancakeswap

0 I bought a token; the token amount appears on bscscan.com but not in the pancakeswap. The token has a 100/100 rate on the token sniffer website. this link is the token contract: https://bscscan.com/...
mrcoet's user avatar
  • 15
0 votes
1 answer
409 views

Lost tokens on pancakeswap

I did a small swap on pancakeswap (metamask wallet) in order to understand how the whole stuff work, so i swapped 2 usdt into ONPAY coin, i did import it in my wallet, then i checked and it was in the ...
S AG's user avatar
  • 11
0 votes
0 answers
86 views

removeLiqudityWithPermit: Invalid Signature

So, I am trying to remove liquidity from a pancake v2 pair and I do not understand why this is not working. I am looking at the code, and I've triple checked every value, I don' think I am doing ...
Chev_603's user avatar
  • 157
1 vote
0 answers
85 views

How can I make a flashloan bot

How Can I make a flash loan bot which can operate on Aave, uniswap, sushiswap etc? I know a furucombo, but this is too complicated for me. My Idea is the bot will keep an eye on certain tokens & ...
Saikat Karmakar's user avatar
0 votes
0 answers
35 views

Why a Uniswap/PancakeSwap emits same event multiple times

does someone know why Uniswap/PancakeSwap pairs occasionally emit the same Swap event multiple times? There is it an example on dexscreener on WBNB/USDT: I happen to also catch it in my script that I ...
Melardev's user avatar
  • 101
1 vote
0 answers
179 views

web3.py is not routing properly as pancakeswap finance GUI

I have a script in python in order to execute a multicall using pancakeswap V3 router contract. Muticall sells some tokens using "swapExactTokensForTokens" from the contract. The path ...
jglrmm's user avatar
  • 11
0 votes
0 answers
668 views

Error INSUFFICIENT_INPUT_AMOUNT when trading pancake

A newly created token contract is normally traded on the testnet, Published to the main network, this error occurs when selling coins INSUFFICIENT_INPUT_AMOUNT; https://pancakeswap.finance/swap?...
AdinZ's user avatar
  • 1
0 votes
1 answer
53 views

Pancakeswap swap fails with INSUFFICIENT_OUTPUT_AMOUNT error

I'm trying to make a swap on the Binance testnet using Pancakeswap. I keep getting an INSUFFICIENT_OUTPUT_AMOUNT error and I have no idea why. Here is my code: const ethers = require('ethers'); const ...
Sayaki's user avatar
  • 139
0 votes
0 answers
47 views

Can't SWAP on Pancake Rooter with web3.py

I try to make a function that calls swapExactTokensForTokens on pacakeswap v2 rooter. The approval is mined, so is the swap. But when i check on bscscan, the contract execution fails for the swap (not ...
Newly Sama's user avatar
0 votes
0 answers
233 views

swapExactTokensForETH / swapExactETHForTokens on pancake swap doesnt swap

I need to convert some eth to another token in my unit test. I work on alchemy fork and ethers.js. I am trying to do it using pancake swap: it("should use pancake swap to get some tokens&...
Chris's user avatar
  • 101
0 votes
0 answers
85 views

Cannot get info about position in liquid pool

I tried to get my position info in PancakeSwap liquid pool. I want to know how much token0 and token1 I added and how much uncollected fees exist. I found this field in PancakeV3Pool contract: mapping(...
Vladimir Kashitsyn's user avatar
0 votes
0 answers
101 views

Why can't I swap the token using swapExactTokensForETHSupportingFeeOnTransferTokens?

i use the function swapExactTokensForETHSupportingFeeOnTransferTokens web3 py for swap MATIC to WBNB, but always get errors what is wrong with my code? input_token_address = web3.toChecksumAddress('...
NIKITA's user avatar
  • 25
0 votes
0 answers
51 views

Why can't read the transaction using web3.py?

I'm trying to decode transaction input using the web3py but I'm getting an error. ABI i got here: https://bscscan.com/address/0x10ED43C718714eb63d5aA57B78B54704E256024E#code pancakeaddr = '...
NIKITA's user avatar
  • 25

1
2 3 4 5
7