# How to Use Pools with BscScan

Since it requires several steps, using Pools with SavvyDex can seem intimidating at first. This guide will walk you through using the Pools contract directly through BscScan.

{% hint style="warning" %}
Please understand that using BscScan to interact with contracts is not recommended for beginners. If you're not feeling confident, we suggest using the [How to Use Pools guide](https://savvycom.gitbook.io/savvydex/products/pools-stake-svc/how-to-use-pool) instead.
{% endhint %}

## Finding Pool process identifier

To interact correctly with the staking smart contract, you’ll need the matching process identifier (PID) for your SVC.

1\. Open the farming on [Savvydex's Farming contract on BSC Scan](https://bscscan.com/address/0x564C03d7AC6687D53B2053b69696Cb761A2c046e#writeContract).

## EnterStaking SVC through BscScan

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

### Getting the Main Contract address

The address for the main staking contract is: **0x4D5Dd8B0Ab74E83B4c8e60Efd46ABD66782e910f**

But assuming you'd like to confirm that, visit the [Savvydex: Main Contract BscScan page](https://bscscan.com/address/0x4D5Dd8B0Ab74E83B4c8e60Efd46ABD66782e910f#code). You'll see the address in the top-left. Click the **pages icon** to copy this to clipboard. You'll need it soon.

### Open the contract for your SVC

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

<figure><img src="/files/6wTMxsO28dzddNQJ5Sp9" alt=""><figcaption></figcaption></figure>

### From the UI

1\. First, visit the [Savvydex Pools page](https://dex.savvycom.ai/pools). We're using SVC for this example.

![](/files/O8CkoxNBeiy3SBXHNdFe)

2\. Click **View Contract** to open the smart contract on BscScan.

![](/files/Qg1ZF5oU4Fh0QLbrOgJS)

### Giving permission to the SVC contract

Now that you have your SVC's contract open on BscScan, you're going to approve the spending of your SVC into the Pool.

1\. On the SVC's contract page, go to **Contract**, and then **Write Contract**.

![](/files/PTkK4wQ2fJcpWWpOdunj)

2\. Click **Connect to Web3** to connect MetaMask.

![](/files/Nz86Aqg3mMscIfKHbjio)

Confirm the connection.

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

![](/files/tBX7gI8wRR3fLokHgsaA)

4\. You’re also going to need to approve the amount of SVC the contract can spend. In the value field, you’ll need to enter the amount in Wei. You can use the [BscScan Unit Converter](https://www.bscscan.com/unitconverter) to easily change your amount into Wei. Here we'll use 5 SVC.

![](/files/OHX11B7trDlSc5hTZ2vn)

{% hint style="warning" %}
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.
{% endhint %}

5\. Click **Write** and accept the action in your MetaMask wallet. You’re now able to commit SVC to the Farm up to the amount you’ve approved.

### Stake SVC with the Main Contract smart contract

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

1\. Back on the [Savvydex: Main Contract BscScan page](https://bscscan.com/address/0x4D5Dd8B0Ab74E83B4c8e60Efd46ABD66782e910f#code), go to **Contract**, and then **Write Contract**.

![](/files/sXTtHNhXNMcPPeh1FU9z)

2\. Click **Connect to Web3** to connect MetaMask.

3\. Scroll to function 5, "enterStaking", and type your amount into the "\_amount" field.

![](/files/Hem1VlvTMUuCzveWgzep)

4\. Check the information and click **Write**. Confirm your action in MetaMask.

![](/files/l334mbBxjtySWcEN9tsj)

5\. You can confirm your deposit worked by clicking **View your transaction**.

## ![](/files/pTNsklzsvf3CTDalGfnp)

## Withdrawing from a Pool

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

1\. Back on the [Savvydex: Main Contract BscScan page](https://bscscan.com/address/0x4D5Dd8B0Ab74E83B4c8e60Efd46ABD66782e910f#code), go to **Contract**, and then **Write Contract**.

## Withdrawing from a Pool

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

1\. Back on the [Savvydex: Main Contract BscScan page](https://bscscan.com/address/0x4D5Dd8B0Ab74E83B4c8e60Efd46ABD66782e910f#code), go to **Contract**, and then **Write Contract**.

![](/files/NiOEbYU9oMjVUHDpNLAQ)

2\. Click **Connect to Web3** to connect MetaMask.

3\. Scroll all the way down to function 6, "leaveStaking", and type your amount into the "\_amount" field.

![](/files/N40zu3v5K2mcVVuvROwc)

4\. Check the information and click **Write**. Confirm your action in MetaMask.

![](/files/sIzagGYa4nVncnjxkPcZ)

5\. You can confirm your withdrawal worked by clicking **View your transaction**.

![](/files/FgR8ILuHDPYNB7axZkiK)

## **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.

{% hint style="danger" %}
**Using the emergency withdraw function will forfeit your SVC rewards!**

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

‌1. On the [Savvydex: Main Contract BscScan page](https://bscscan.com/address/0x4D5Dd8B0Ab74E83B4c8e60Efd46ABD66782e910f#code), go to **Contract**, and then **Write Contract**.

![](/files/iE4jKbFaj30Y8oz37GJt)

2\. Click **Connect to Web3** to connect MetaMask.

‌3. Scroll down to function 4, "emergencyWithdraw", and type your PID = 0 into the "\_pid" field.

![](/files/MSKUgAN2swcCv32RqcKd)

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

![](/files/7zCwCiboUgaAqNsfoCwC)

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

![](/files/plb0M8fQlzeRF6OdAAXk)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://savvycom.gitbook.io/savvydex/products/pools-stake-svc/how-to-use-pools-with-bscscan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
