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.

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.

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

From the UI

1. First, visit the Savvydex Pools page. We're using SVC for this example.

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

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.

2. Click Connect to Web3 to connect MetaMask.

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.

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 to easily change your amount into Wei. Here we'll use 5 SVC.

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, go to Contract, and then Write Contract.

2. Click Connect to Web3 to connect MetaMask.

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

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

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

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, 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, go to Contract, and then Write Contract.

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.

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

5. 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.

‌1. On the Savvydex: Main Contract BscScan page, go to Contract, and then Write Contract.

2. Click Connect to Web3 to connect MetaMask.

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

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

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

Last updated