Hello. I have created a token(around 7 days ago), added liquidity on PancakeSwap and it was trading, everything was working fine. 23 April morning I withdrew liquidity and added it on PancakeSwap V2. Then, it was announced to withdraw liquidity from V2 PancakeSwap because there was a bug and when I tried to do it nothing happened. PancakeSwap developers said that there is a problem with Hardcode and that my token is linked with PancakeSwapRouter1. What can I do to withdraw liquidity?
Liquidity pair contract: 0x6d4d749c8763bcf4690a10f5e0297194059bb98a
Token contract: 0x1771ad5b28549467ad5fe68e9f271667a5930a2e

Apr 26, 2021, 12:48 PM
Sorry to say Mark but this question can really only be addressed by the PancakeSwap developers.
Apr 26, 2021, 12:51 PM
But they told me that they can't help me and the problem is in my token's contract
Apr 26, 2021, 12:58 PM
Hey guys how can I add liquidity on pancakeswap swap to swap my token?
Apr 26, 2021, 1:00 PM
really? did they tell you specifically why they believe the problem isn't on their end considering they are asking people to withdraw from their LP because of a bug
Apr 26, 2021, 1:00 PM
PancakeSwap developers said that there is a problem with Hardcode and that my token is linked with PancakeSwapRouter1
Apr 26, 2021, 1:01 PM
pancakeswap dev can't help you ?
I checked fastly the Router code and I can't figure out the right function
Apr 26, 2021, 1:06 PM
what so you mean by the right function?
Apr 26, 2021, 1:07 PM
I checked your transaction and I saw an addLiquidity function
so there should be something like "removeLiquidity"
https://bscscan.com/address/0x05ff2b0db69458a0750badebc4f9e13add608c7f#writeContract
here you can find "removeLiquidty" function
Apr 26, 2021, 1:17 PM
You hardcoded pancake v1 routers address in your contract
Line 683
Apr 26, 2021, 1:22 PM
i know, how can i fix that?
Apr 26, 2021, 1:23 PM
you didn't deploy ad upgradable contract right?
Apr 26, 2021, 1:30 PM
sorry, but i don't know
Apr 26, 2021, 1:30 PM
It is hardcoded, you must create a new contract
Is it a safemoon fork?
Apr 26, 2021, 1:30 PM
yes
Apr 26, 2021, 1:30 PM
@here, please visit, like and subscribe to this Rumble channel. I have a video showing how to create smart contracts using the Truffle framework. Hopefully this will help others to start. Leave a comment and I will be happy to help. https://rumble.com/vbtngl-create-simple-smart-contract-and-interface-with-it-using-truffle.html
Apr 26, 2021, 1:30 PM
Use v1 contract itself
Or deploy a new one with v2 router. That would be better
Apr 26, 2021, 1:31 PM
+++
Apr 26, 2021, 1:31 PM
But I need to get back tokens from liquidity
Apr 26, 2021, 1:32 PM
did you read my messages?
Apr 26, 2021, 1:32 PM
but my LPs are on V2
Apr 26, 2021, 1:32 PM
Somebody else had the same issue yesterday
@Mikato_sama did you figured it out?
Apr 26, 2021, 1:33 PM
yeah, when I try to remove liquidity through bscscan it doesn't work
i'm talking to him right now about it
Apr 26, 2021, 1:34 PM
which error do you get?
Apr 26, 2021, 1:34 PM
Yeah, I've been chatting with him but to be fair I don't actually know what fixed the issue
Apr 26, 2021, 1:58 PM
which is the best way to generate random number in solidity?
Apr 26, 2021, 3:01 PM
someone can send me some source about how can I add liquidity on pcs and become possible trade my token?
Apr 26, 2021, 3:12 PM
Oracles
Apr 26, 2021, 3:14 PM
yes I was looking to Chainlink but is doesn't support BSC right?
Apr 26, 2021, 3:15 PM
It doesn't atm
Apr 26, 2021, 3:15 PM
just go to add liquidity on pancakeswap
Apr 26, 2021, 3:15 PM
Idk where is It but I'll Google It It seems not difficult
I thought It was on my solidity contract
Some interface
Apr 26, 2021, 3:17 PM
I've created a token using SafeMoon's code and now it is stuck in PancakeSwap V2 Discontinued. I hardcoded PancakeSwapRouter1 in my code and now I can't withdraw liquidity. What can i do to withdraw it?
Apr 26, 2021, 4:26 PM
try exclude lp pair from fees, and then execute the call to remove liquidity directly from the router contract
Apr 26, 2021, 4:30 PM
How do I exclude it from fee? I don't have such function on BSCScan
Apr 26, 2021, 4:32 PM
safemoon has a function called excludeFromFee
Apr 26, 2021, 4:34 PM
I know, but how do I add address that is excluded from fees after I deployed contract
Apr 26, 2021, 4:35 PM
what router did you use the address ?
Apr 26, 2021, 4:35 PM
PancakeSwapRouter1 0x05ff2b0db69458a0750badebc4f9e13add608c7f
here is my token 0x1771ad5b28549467ad5fe68e9f271667a5930a2e
Apr 26, 2021, 4:36 PM
you are missing some functions compared to the original one
Apr 26, 2021, 4:41 PM
Yeah, now I see
So is there anything I can do to withdraw liquidity?
Apr 26, 2021, 4:43 PM
try this function on pancakeRouter
Apr 26, 2021, 4:44 PM
V2 Discounted?
Apr 26, 2021, 4:44 PM
the one you used, yes
Apr 26, 2021, 4:44 PM
But I have SAFEKITTEN-BUSD liquidity
Apr 26, 2021, 4:45 PM
try removeLiquidity then
Apr 26, 2021, 4:46 PM
Any other suggestions on this? Token contract is 0x1771ad5b28549467ad5fe68e9f271667a5930a2e
Apr 26, 2021, 5:57 PM
Is possible a smart contract get a % from a swap and send It to other address?
Apr 26, 2021, 7:23 PM
Like some tokens doing recently on pcs? Some % to add liquidty, some % to donation wallet etc
Apr 26, 2021, 7:24 PM
yeh I want get some % and send It to a donation wallet
Apr 26, 2021, 7:25 PM
Am also looking for it. Not sure if its part of token contract or pcs liquidity contract.
Apr 26, 2021, 7:26 PM
anyone here knows what Metamask means when you get an alert of "Transaction Error. Exception thrown in contract code"?
I'm interfacing with Uniswap's router v2 addLiquidityETH
Apr 26, 2021, 7:30 PM
Can i dm you?
Apr 26, 2021, 7:38 PM
sure
Apr 26, 2021, 7:39 PM

© 2024 Draquery.com All rights reserved.