read.cash Log in
@carisdaneym2 edited

How to retrieve and split your LP on Beachswap

~~Beach~~swap 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:** 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. **PATIENCE** Retrieve your LP >Open **Eth95.Dev** in your browser and connect Metamask https://eth95.dev/ >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. https://github.com/sVNT-Token/beachswapFarmABI/blob/main/farm.json

>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)**

**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)** https://www.epochconverter.com/ 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** **Helpme.cash** https://helpme.cash/ **How to setup smartBCH Network on Metamask and smartBCH-CoinFLEX Bridge** https://read.cash/@carisdaneym2/how-to-set-up-smartbch-network-on-metamask-and-smartbch-coinflex-bridge-7f64c443 **Staking on BenSwap** https://read.cash/@carisdaneym2/staking-on-benswap-the-first-dex-on-smartbch-c7a19a92 **$CATS and swapping tokens on Benswap** https://read.cash/@carisdaneym2/i-got-free-1-million-cats-worth-03-bch-did-i-swapped-them-all-or-not-d9dac806#swapping-cats-to-bch-vice-versa-besnswap-smartbch **BCH Argentina on smartBCH** https://read.cash/@carisdaneym2/bch-argentina-token-on-the-smartbch-network-35425ae9 **CandyMan token on smartBCH** https://read.cash/@carisdaneym2/candyman-token-on-smartbch-network-d4d6ba81 **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!💜** https://read.cash/@carisdaneym2/torum-a-social-media-platform-that-connects-crypto-enthusiasts-across-the-world-7176ed9a#find-me-on-my-socials ****Noise.cash**** **|** ****Twitter**** **|** ****Torum**** **|** ****Reddit**** **|** ****PublishOx**** **|** ****medium******| Facebook| memo.cash |** ****Telegram******|** https://noise.cash/u/Carisdaneym https://twitter.com/carisdaneym?s=09 https://www.torum.com/u/carisdaneym https://www.reddit.com/u/carisdaneym?utm_medium=android_app&utm_source=share https://www.publish0x.com/settings https://medium.com/@carisdaneym2 https://t.me/cutiecaris **My Communities** Noiseristificationism Channel: **Let's write it up and make some noise** https://noise.cash/c/noiseristificationism-x3lzmr71 Juunglers: **Talks about Juungle NFT Marketplace** https://noise.cash/c/juunglers-8xl8kn14 Read.cash Channel: **read.cash community** https://noise.cash/c/read-cash-community-301vjw18 **Club1BCH:** ****Hodl, spend, replace and spread Bitcoin Cash!**** https://noise.cash/c/club1bch-9x107x5l Facebook page by Yen **Bitcoin cash Nueva Ecija** https://web.facebook.com/BCHNE Facebook group by bmjc  **Bitcoin cash Earn and** **learn** https://web.facebook.com/groups/237769798056371

94¢

4 comments

Log in to join in Reading is open to everyone. Replying needs an account.