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
2
votes
0answers
367 views

Web3 - Buy token by code

i'm trying to buy $TRY token with my code. It's BSC token. The problem is when i send money to the contract i don't receive any token :/ The contract i'm trying to buy : https://bscscan.com/token/...
2
votes
1answer
219 views

How to distinguish buy and sell?

I'm building a smart contract to learn solidity and I'm wondering how I can distinguish buy and sell functionalities. I want the contract to do different functionalities on a buy and other ...
1
vote
1answer
652 views

getting reserve data of a pair of tokens in pancakeswap pools

I am trying to find the current and past reserves for a coin pair of a certain pool from the pancakeswap smart contract. I can't seem to find any smart contract that can return that. (can't get find ...
1
vote
1answer
124 views

How to embed restrictions on token transfers after pancakeswap sale?

I want to list a coin on pancakeswap (BEP20) that restricts people from selling for a period of time after purchasing. I don't want to restrict the pancakeswap address from being able to sell its ...
1
vote
0answers
626 views

What are the steps to launching a Safemoon clone on PancakeSwap? [closed]

I have created a contract on bsc mainnet and sent half the token supply to pancakeswap liquidity. What are the remaining steps, in detail, that need to be accomplished on my end in order to ensure a ...
2
votes
0answers
849 views

Unable to provide initial liquidity on PancakeSwap testnet

I'm trying to test transactions on my contract but I'm unable to add liquidity to PancakeSwap, using their interface doesn't even load metamask, and calling the contract fails. I set up the router and ...
0
votes
1answer
108 views

Pancake/Uniswap: tell inside contract if a transfer is a buy or sell

I have a token contract that will exclusively use Pancakeswap as trading platform. How can I tell in the contract if a transfer represents someone buying the token or someone selling it?
0
votes
0answers
63 views

Send LP tokens to a payable function using truffle console

I am trying to stake the LP tokens that I got after adding liquidity in pancakeswap contract function. I can see the LP tokens in my metamask wallet as well. Now I cant understand how will send some ...
2
votes
0answers
59 views

trouble understanding the usage and calculation of INIT_HASH and precompiled contracts

I am working with pancakeswap and I was following a tutorial which just said that we need to calculated the INIT_HASH and that we can follow this link enter link description here for guidance. The ...
2
votes
0answers
13k views

I can't approve and sell a token I bought on pancakeswap. I saw someone else sell it in the transaction list on bscscan

Okay, so obviously I bought a scamcoin, but theres this one guy who still managed to sell it, most likely by using a bot. I want to sell the token as well, the liquidity isn't pulled and I would make ...
1
vote
1answer
303 views

What are IBEP20 _lp and address _wbnb parameter in BnbStaking.sol [closed]

I am trying to deploy bnbstaking.sol for my own project by cloning pancakeswap-farm repository. The farm repository has other contracts of MasterChef, Souschef, CakeToken and SyrupBar. For farming all ...

1 2 3
4