How to retrieve and split your LP on Beachswap

4 159
Avatar for carisdaneym2
3 years ago
Topics: BCH, SmartBCH, Blockchain, BeachSwap, Rugg, ...

Beachswap is the new decentralized exchange launched on SmartBCH and the first DEX that scammed the investors after the first day of a successful launch. The way how the developer executes the presale that makes us doubt to invest but somehow influenced by whales or the big names and the influential investors rather who also invested huge amount and how the dev answer the question in a wise way that outsmarts most of us. Well, in the world of DeFi or in the whole crypto, there is always a risk. We are always advised to do our own research and invest at our own risk. Invest what you can afford to lose, you have to remember that, always.

Acknowledgment

A big thank you especially to @blockparty-sh for the backup contract code that we used to retrieve our funds and to @Rhyker as well, to the Chinese tutorial provided on docs (whoever made that please let me know so I can give proper credit) and to @MyHero for the smooth explanation.

Letโ€™s get started

In this article, allow me to share how I got my BLP back on my wallet and how we split it successfully.

What you need:

  1. PC or Mobile phone (as long as you can connect the metamask account) If you are using I suggest using metamask, kiwi or yandex browser.

  2. PATIENCE

Retrieve your LP

>Open Eth95.Dev in your browser and connect Metamask

>Paste this Contract address to custom 0xA5050b152D80219e0Cc7c3519C8c909aA3A2c364

>Open the contract code of BeachswapFarmABI copy the code and paste it in the ABI tab on Eth95.exe -> Create a file name -> click the add contract.

>Click the contract name (Candycutie BLP) and go to the Functions (arity) -> click emergency withdraw(1)

>In the call Function, input the designated number for the farm _pid (check the list below) ->click Submit Button ->Confirm the transaction on Metamask.

  • WBCH

    CA: 0x3743eC0673453E5009310C727Ba4eaF7b3a1cc04

    PID- 0

  • FlexUSD

    CA: 0x7b2B3C5308ab5b2a1d9a94d20D35CCDf61e05b72

    PID- 1

  • WBCH-BEACH

    CA: 0x7a799c853ac30D38d673f068065B5795f0aafD5C

    PID - 2

  • BEACH-flexUSD

    0x789ec79353EaF0d987a6727dA56d0E1d56F0fddb

    PID - 3

  • WBCH-flexUSD

    0xE47B093646631A2F68088175ea15257EdfCf028A

    PID - 4

  • flexUSD-FLEX

    0x838063e7FB494bd631C46Cdb5b07936ee7F3cBd3

    PID - 5

  • $CATS-WBCH

    0xf60fa70844fAc2310E3cDe44a04A9cD1961Cb3D5

    PID - 6

  • WBCH-$KITTEN

    0x06B4FC318dacE5332f438450e81c3e52Dc6a0396

    PID - 7

  • Shiba-WBCH

    0x42e0588394205D7d5e10A7A1DE9662e14D639312

    PID - 8

  • WBCH-BPAD

    0x1C36fCD1DF20009a8711738f8f632E896f965EA1

    PID - 9

  • CandyMan-WBCH

    0xCa42645B1216bD43D4B4e6CFBe1Cb1987c3F3b6e

    PID - 10

"NOTE: If there is only a single asset in the farm pool, the token is retrieved. If it is an LP, we need to do more steps to split the two. Read further."

Authorize LP to Beachswap routing address

Step 1: Open the site https://remix.ethereum.org/ and create a new file.

Step 2: Create a file name (Anything will do)

Step 3: This is for BeachPair (dual assets on pool) Patiently copy the contract code for BLP here -> https://github.com/blockparty-sh/beachswap-contracts-backup/blob/main/Beachswap-Contracts/flatten/beachswap/BeachPair.sol

Then paste it to remix.ethereum.org

Step 4: Follow the given data below. (1)Go to 2nd tab, (2)Change your compiler to 0.6.12+commit.27d51765 you can use the drop down to see the choices.(3) Enable optimization(4) then compile.

Step 5: (1)Go to third tab, (2) choose Injected Web3, (3) Make sure you connected the wallet (4) Choose BeachPair as a contract.(5) Input the Contract of your BeachPair (I used the CA of Candyman-WBCH because that is my LP) (6) Click the "At address" (7)

The correct address for number 5 is the contract address of your BLP. Kindly check the 10 CA's I provided above. I accidentally input the wrong photo.
Correction: My address should be like this CandyMan- WBCH

Step 6: Check if you have the same deployed contracts (1) -> click the approve(2) input the corresponding data below (3) then click transact (4)

  • spender: 0x367b37741BB22Da8f9992b7122DDd2931c098f72

  • value:999999999999999999999999999999999999999 (as many as you can)

Step 7: Allow remix to spend your BLP (if you got some error and asking for a higher fee, do not confirm the transaction.) the gas fee must be lower, see image below.

Dismantle LP

Step 8: Like what we did earlier, create a new file, copy the new contract code for Beachrouter02 https://github.com/blockparty-sh/beachswap-contracts-backup/blob/main/Beachswap-Contracts/flatten/beachswap/BeachRouter02.sol

paste the new code on remix, compile and connect your wallet.

Step 9: Check the image below you got the same input of data. The number 5 is the router address which is the 0x367b37741BB22Da8f9992b7122DDd2931c098f72

Step 10: Third tab third line, remove liquidity, input the correct data and then transact.

  • Token A: WBCH 0x3743eC0673453E5009310C727Ba4eaF7b3a1cc04

  • Token B: CandyMan's CA: 0x0D8b355f9CEDeB612f2df4B39CdD87059A244567

  • liquidity converted into wei. (Formula: original LP multiply by 1000000000000000000)

  • The 4th and 5th is just 0

  • to: In the 6th textbox input the receiving address.

  • deadline: to get the deadline, go to epoch converter copy the update number and add a few hundred (+500 will do)

    for example current epoch + 500 = N (your deadline)

    1600000000 + 500 = 1600000500 (the total amount is your deadline)

Import your WBCH token if you still don't have it in your wallet.

Note: Your actual LP might change due to impairment loss. It's either you loss some BCH and gain more on the paired token or you gain more BCH and loss some of the paired tokens.

ALL DONE! Congratulations for reaching the end.

(if you have more question to ask, you can find me tru my socials)

More links and articles of mine about smartBCH


Author's Note:

Articleย #105ย (October 28, 2021)ย ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ

Hi! Welcome to my humble abode. Thank you for sincerely reading my content and I really appreciate your visits, likes, upvotes, comments, and subscriptions so thank you so much. I hope this article helps you in a little way. Any violent reaction is open to the comment section.

I was overwhelmed when the dex offered a farm for my lovely CandyMan. Unfortunately, CandyMan doesn't have a farm on the other dexes like BenSwap and Mistswap because of having low liquidity that's why having a farm on beachswap was a great opportunity for us but it turned out it was not at all.

๐Ÿ’œFind me on my Socials!๐Ÿ’œ

Noise.cashย |ย Twitterย |ย Torumย |ย Redditย |ย PublishOxย |ย medium|ย Facebook| memo.cash |ย Telegram|

My Communities


13
$ 26.77
$ 25.82 from @TheRandomRewarder
$ 0.50 from @Ruffa
$ 0.10 from @Phace
+ 7
Sponsors of carisdaneym2
empty
empty
empty
Avatar for carisdaneym2
3 years ago
Topics: BCH, SmartBCH, Blockchain, BeachSwap, Rugg, ...
Enjoyed this article?  Earn Bitcoin Cash by sharing it! Explain
...and you will also help the author collect more tips.

Comments

Sa step 3 ako hndi natatama Car . Yung sa pag authorize ng LP.. Yung contract code b na icocopy at yung kung saan mo ipupull out yung token? Example sa farm, vault? Ganun? Lage kc may error ako jan. Yung farm kinocopy ko

$ 0.00
3 years ago

Anong pair mo ate jane? Pag wbch/token iyan ang contract code po na gagamitin if hindi single assets

$ 0.00
3 years ago

Gusto ko sanang itry to kaso ang daming process. At talaga po bang pwede ito sa phone ate?

$ 0.00
3 years ago

Thank you for writing this. I will share it wherever I can and hope as mny people as possible will get their money back.

And I hope the scammer can be identified and the stolen money can be returned. And if not, I hope karma will get to him.

$ 0.00
3 years ago