PenguinSwap
  • 🐧PenguinSwap Intro
  • Get Started
    • Create a Wallet
    • Get URC-20 Tokens
    • Using PenguinSwap without Centralized Exchanges
    • Connect Your Wallet to PenguinSwap
  • Click Here for Help
    • Troubleshooting Errors
    • General FAQ
    • Fixing Stuck Pending Transactions on BaseMeta
  • Contact Us
    • Business Partnerships
    • NFT Market Applications
    • Customer Support
    • Social Accounts & Communities
  • Roadmap
  • Brand & Logos
  • Products
    • 🔄Exchange
      • 🔃Token Swaps
      • How to Trade
      • Liquidity Pools
      • How to Add/Remove Liquidity
      • 📝Limit Orders
        • Limit Orders FAQ
      • ☮️Perpetual Trading
        • Perpetuals Glossary
        • What is Perpetual Trading?
        • How can I use it?
        • Perpetual Trading FAQ
    • ❄️Igloo Icing
      • How to use Igloo
      • How to use Igloo with UltronScan
    • 🍢Seafood Pools
      • How to Stake in Seafood Pools
      • Auto EGG Seafood Pool
      • Seafood Pool FAQ & Troubleshooting
    • 🌟Lottery
      • How to Play Lottery v2
      • Lottery FAQ
    • 📈Prediction
      • How to Use Prediction
      • Prediction FAQ
      • Prediction Troubleshooting
    • 🎃NFT Market
    • 🖼️NFT Profile System
      • How to Set Up an NFT Profile
      • Teams
    • ⛄IIO (Initial Igloo Offering)
      • How to Participate in an IIO
      • How to Participate in an IIO with UltronScan
      • Contract Details
    • Analytics (Info)
    • Voting
      • How to Vote
      • How to Vote with SafePal Wallet
    • Coming Soon
  • Tokenomics
    • 🥚EGG
      • EGG Tokenomics
      • Controlling EGG supply
  • Developers
    • Migration
      • Migrate Your Stakings
      • EGG Seafood Pool
    • Contributing
      • Codebase Overview
    • Bug Bounty
    • Smart Contracts
      • PenguinSwap v2
      • Router v2
      • Main Staking/Seafood Pool Contract
      • Prediction V2
      • Lottery v2
      • Auto EGG Seafood Pool (EggVault)
  • Hiring
    • Become a PEPE
      • Solidity Engineer
      • DevOps Engineer
      • Social Media Marketing Manager
      • Frontend Engineer
      • Blockchain QA Engineer
      • Communications/Public Relations Manager
      • Business Development Manager
Powered by GitBook
On this page
  • Finding Igloo process identifier
  • Depositing LP Tokens through UltronScan
  • Getting the Main Staking Contract address
  • Open the contract for your LP Token
  • From the source code
  • 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. Igloo Icing

How to use Igloo with UltronScan

PreviousHow to use IglooNextSeafood Pools

Last updated 3 years ago

Since it requires several steps, using Igloos with PenguinSwap can seem intimidating at first. This guide will walk you through using the Igloos contract directly through UltronScan.

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

Finding Igloo process identifier

To interact correctly with the farming smart contract, you’ll need the matching process identifier (PID) for your LP pair. For now, the easiest way to locate this is to check GitHub.

1. Open the PenguinSwap website’s Igloos code on GitHub.

2. Control/command + F and search for your pair by ticker (not project name). For example, 'EGG-USDT'.

3. Write down or copy the PID number—in this case 389—somewhere you can access it easily. You'll need this later.

Depositing LP Tokens through UltronScan

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

Getting the Main Staking Contract address

The address for the main staking contract is:

ux

But assuming you'd like to confirm that, visit the . 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 LP Token

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

From the source code

1. First, open Igloo.ts on GitHub.

2. Control/command + F and search for your pair by ticker (not project name). For example, 'EGG-UTG'

3. When you have the code for the LP pair you're looking for up, find the address after "56:". This will be your contract address.

From the UI

1. First, visit the PenguinSwap Igloos page and search for your chosen pair using the "SEARCH" field in the top right. We're using EGG-USDT for this example.

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

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

Giving permission to the LP Token contract

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

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

2. Click Connect to Web3 to connect BaseMeta.

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.

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. Here we'll use 5 EGG-USDT LP Tokens.

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 BaseMeta wallet. You’re now able to commit LP Tokens to the Igloo up to the amount you’ve approved.

Deposit LP Tokens with the Main Staking Contract smart contract

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

2. Click Connect to Web3 to connect BaseMeta.

3. Scroll to function 2, "deposit", and type your PID into the "_pid" field.

If you didn't copy down your PID earlier, you can learn how to get it in the Finding Farm process identifier section higher up this page.

4. Underneath _pid you'll see "_amount". Enter the amount for the LP contract to spend that you approved earlier.

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

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 PenguinSwap: Main Staking Contract UltronScan page, go to Contract, and then Write Contract.

2. Click Connect to Web3 to connect BaseMeta.

3. Scroll all the way down to function 15, "withdraw", and type your PID into the "_pid" field.

If you didn't copy down your PID earlier, you can learn how to get it in the Finding Igloo process identifier section higher up this page.

4. Underneath _pid you'll see "_amount". Enter the amount of LP you'd like to withdraw from the Pool.

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

6. 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 EGG rewards!

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

‌1. On the PenguinSwap: Main Staking Contract UltronScan page, go to Contract, and then Write Contract.

2. Click Connect to Web3 to connect BaseMeta.

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

If you didn't copy down your PID earlier, you can learn how to get it in the Finding Igloo process identifier section higher up this page.

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

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

1. Back on the , go to Contract, and then Write Contract.

❄️
How to Use Igloos guide
PenguinSwap: Main Staking Contract UltronScan page
PenguinSwap: Main Staking Contract UltronScan page