BabyDoge Docs
  • BabyDogeSwap Intro
  • Get Started
    • Creating a Wallet
    • Get BEP20 Tokens
    • Using BabyDogeSwap without Centralized Exchanges
    • Connect Your Wallet to BabyDogeSwap
  • Help
    • Troubleshooting Errors
    • General FAQ
    • Fixing Stuck Pending Transactions on MetaMask
  • Contact Us
    • Communities
    • Customer Support
  • Products
    • 🔄Swap
      • Token Swaps V2
      • Token Swaps V3
      • How to Swap
      • How to Add/Remove Liquidity
      • Liquidity Pools
      • Analytics (Info)
        • Baby Doge Swap Analytics
    • 🔥Burn Portal
      • How to use the Burn Portal
      • Smart contract
    • 🚜Farming as a Service
      • How to Create a Farm / Pool
      • Farms
        • How to Use Farms
        • How Zaps Work
        • How to Use Farms with BscScan
      • Pools
        • How to join in Pools
        • Troubleshooting
        • How to Stake in Pools with BscScan
    • 🖼️NFT Marketplace
      • Explore Collections
      • Buy NFTs
      • Sell NFTs
    • 🎨AI NFT Creator
      • Get Started
      • Get Credits
      • Generate Images
      • History and Minting
      • Gallery
      • Your Minted NFTs
      • Pricing
    • 🔏Token Locker
      • Token locker UI overview
      • How to Create Your Lock
    • ⛓️Multichain
      • How to switch chain
      • Supported chains
      • Configuring chains to your wallet
    • Widget
    • 📩Voting
      • Baby Doge Voting
    • 💌Forum
      • Baby Doge Forum
    • ♟️Chess
      • Welcome to BabyDoge Chess
      • Testnet Video Tutorial
      • How to Connect Your Wallet
      • How to Deposit/Withdraw
      • How to Play
      • Fees
  • Ecosystem & Partnerships
    • 💼Business Partnerships
      • ☑️Farm KYC and Token Inquiry
      • 🖼️NFT Marketplace
      • 🔐Token Locker
  • Developers
    • Smart Contracts
      • BabyDogeSwap
        • Factory
        • Router
  • Improvements
  • Bugs
Powered by GitBook
On this page
  • Finding Farm process identifier
  • Depositing LP Tokens through BscScan
  • Open the contract for your LP Token
  • From the UI
  • Giving permission to the LP Token contract
  • Deposit LP Tokens with the Main Staking Contract smart contract
  • Withdrawing from a Pool
  • Making an emergency withdrawal
  1. Products
  2. Farming as a Service
  3. Farms

How to Use Farms with BscScan

PreviousHow Zaps WorkNextPools

This guide will walk you through using the Farms contract directly through BscScan.

Please understand that using BscScan to interact with contracts is not recommended for beginners. If you're not feeling confident, we suggest using the instead.

Finding Farm process identifier

To interact correctly with the farming smart contract, you’ll need to find the farm/pool address. They can be found from the farm deployer contract or on the front-end.

1. Open

2. Look for the farm that was deployed.

3. Click on the farm address.

Depositing LP Tokens through BscScan

There are a few things involved in depositing LP Tokens using BscScan. We've broken it down into steps to make it easier to follow along.

Open the contract for your LP Token

You'll need to approve the smart contract for the LP Token you wish to commit to a farm before you can spend it.

From the UI

1. First, visit the BabyDogeSwap Farms page and search for your chosen pair using the "SEARCH" field in the top right or find the farm on bscscan. We're using BabyDoge-BUSD for this example.

2. Click Details to expand the row to show more information.

3. Click View Contract to open the smart contract on BscScan.

Giving permission to the LP Token contract

Now that you have your LP Token's contract open on BscScan, you're going to approve the spending of your LP Tokens into the Farm.

1. On the LP Token's contract page, go to Contract, and then Write Contract.

2. Click Connect to Web3 to connect MetaMask.

Confirm the connection.

3. Under function 1, “approve”, you’ll see “spender:address”. Paste in the farm contract address you copied to clipboard earlier.

You can also use -1 as the value to give unlimited spend approval. This does not mean you will spend everything by default, but only that a transaction of any size using this contract will be allowed by your wallet.

6. Click Write and accept the action in your MetaMask wallet. You’re now able to commit LP Tokens to the Farm up to the amount you’ve approved.

Deposit LP Tokens with the Main Staking Contract smart contract

With the Contract now approved to spend your LP Tokens, it's time to make a deposit.

1. Back on the farm contract BscScan page, go to Contract, and then Write Contract.

2. Click Connect to Web3 to connect MetaMask.

3. Scroll to function, "deposit",

4. Enter the amount for the LP contract to spend that you approved earlier.

5. Check the information and click Write. Confirm your action in MetaMask.

6. You can confirm your deposit worked by clicking View your transaction.

Withdrawing from a Pool

Withdrawing your LP Tokens from a Pool is very similar to making a deposit. The difference is which function you'll interact with.

1. Back on the Farm Contract BscScan page, go to Contract, and then Read Contract.

2. Click Connect to Web3 to connect MetaMask.

3. Scroll all the way down to function 20, "userInfo", and type your address to get the amount of shares.

Copy the amount of shares.

5. Go to Write Contract.

6. Scroll all the way down to function 16 "withdraw" and enter paste the shares amount

7. You can confirm your withdrawal worked by clicking View your transaction.

Making an emergency withdrawal

‌Using the emergency withdraw function allows you to draw all your funds out of a pool when no other way is working.

Using the emergency withdraw function will forfeit your BabyDoge rewards!

The BabyDogeSwap team strongly suggests avoiding this function unless advised to do so officially by the BabyDogeSwap team, or if you are very comfortable interacting with smart contracts and understand the underlying code.

‌1. On the farming Contract BscScan page, go to Contract, and then Write Contract.

2. Click Connect to Web3 to connect MetaMask.

‌3. Scroll down to function 3, "emergencyWithdraw"

5. Check the information and click Write. Confirm your action in MetaMask.

6. You can confirm your withdrawal worked by clicking View your transaction.

5. You’re also going to need to approve the amount of LP Tokens the contract can spend. In the value field, you’ll need to enter the amount in Wei. You can use the to easily change your amount into Wei. Here we'll use 5 BabyDoge-BUSD LP Tokens.

🚜
BscScan Unit Converter
How to Use Farms guide
https://bscscan.com/address/0x210dbf538ef70750e0eb6149005bf2d40d49d5b2#events