How to Use Pools with BscScan
Last updated
Last updated
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.
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 instead.
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.
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.
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.
You'll need to approve the smart contract for the SVC you wish to commit to a farm before you can spend it.
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.
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.
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.
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.
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 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 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.
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 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.
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.