Manual Smart-Contract Interaction
Last updated
Last updated
In the rare case something happens to Snowball's website, you can always interact with our contracts through a block explorer. This guide will cover how to deposit funds into our contracts, claim your SNOB rewards and withdraw from our contracts without relying on our beautiful web interfaces.
If you're planning on interact with deprecated contracts, all the addresses you'll need can be found here instead of our usual compounding contracts page.
1) If depositing LP tokens, first supply liquidity to a pool on Pangolin or Trader Joe that receives rewards.
2) Find the contract address for the pool you deposited into and open it on a C-Chain block explorer. On Pangolin, this can be found on their analytics page. On Trader Joe, this can be found through their pools page.
3) Once you have found it, click on Contract and Write Contract.
4) If not already connected, connect your MetaMask wallet to the block explorer.
5) Find the Approve method. In the first box - spender(address) - you will need to input Snowball's compounding deposit contract for the token pair you'd like to compound. This can be found on our Compounding Contracts page. In the second box - value(uint256) - add the amount of LP tokens you would like to approve or a slightly larger amount. If you are unsure, you may simply input an arbitrarily large number such as 999999999999999999999999999
. This value simply needs to be equal to or larger than the amount you wish to transfer in the next steps.
6) Click Write. You will be asked to approve the transaction through your wallet.
7) Navigate to the Snowball's compounding deposit contract through the block explorer and click on Contract and Write Contract. This is the same address that you entered on step 5.
8) Find the depositAll method.
Never deposit tokens directly into a compounding gauge contract. Doing so will lead to a loss of funds. Steps 9 and 14 are to deposit into the compounding deposit contract and compounding gauge contract respectively. These need to be followed in order.
9) Click Write. You will be asked to approve the transaction through your wallet.
10) On the same page, find the Approve method. In the first box - spender(address) - you will need to input Snowball's compounding gauge contract for the token pair you'd like to compound. This can be found on our Compounding Contracts page. In the second box - value(uint256) - add an arbitrarily large number, such as 999999999999999999999999999
.
11) Click Write. You will be asked to approve the transaction through your wallet.
12) Navigate to the Snowball's compounding gauge contract through the block explorer and click on Write Contract. This is the same address that you entered on step 10.
13) Find the depositAll method.
14) Click Write. You will be asked to approve the transaction through your wallet.
Congratulations! Your tokens have now been deposited in Snowball's compounding pool, and if there are SNOB rewards allocated to the pool you've chosen, you will gain SNOB tokens over time.
1) Find the compounding gauge contract address for the pool you want to claim rewards from and open it on a C-Chain block explorer. This can be found on our Compounding Contracts page.
2) Once you have found it, click on Contract and Write Contract.
3) If not already connected, connect your MetaMask wallet to the block explorer.
4) Find the getReward method.
5) Click Write. You will be asked to approve the transaction through your wallet.
Congratulations! Once the transaction is confirmed, any SNOB rewards in that pool will have been transferred to your wallet.
1) Find the compounding gauge contract address for the pool you want to withdraw from and open it on a C-Chain block explorer. This can be found on our Compounding Contracts page.
2) Once you have found it, click on Contract and Write Contract.
3) Find the withdrawAll method.
4) Click Write. You will be asked to approve the transaction through your wallet.
5) Find the compounding deposit contract address for the pool you want to withdraw from and open it on the block explorer. This can be found on our Compounding Contracts page.
6) Once you have found it, click on Contract and Write Contract.
7) Find the withdrawAll method.
8) Click Write. You will be asked to approve the transaction through your wallet.
Congratulations! Once the transaction is confirmed, any tokens you had previously deposited in that pool will have been transferred to your wallet.