How to Use WigoFarm with FTMScan

The steps involved in using WigoFarm through FTMScan is a little more complicated compared with interacting with the WigoFarm directly. Therefore, this type of interaction is recommended to expert users.

Finding Farm PID

Utilizing the farming smart contracts requires the Process Identifier (PID) that corresponds to your LP pair. You can easily check WigoSwap's GitHub to access the PID. To do so, you can follow the steps below:

1. Open the farms list on GitHub.

2. Use โ€˜control/command + Fโ€™ to search for a certain pair of tokens, e. g. โ€˜FTM-WIGOโ€™.

3. You can then see the PID number which you should keep somewhere so that you can use it afterwards.

Depositing LP Tokens via FTMScan

In order to deposit Wigo-LP tokens using FTMScan, you need to follow the steps mentioned here:

First, you have to obtain the address related to the MasterFarmer Contract. The address is 0xA1a938855735C0651A6CfE2E93a32A28A236d0E9. If you ever need to check the address you can visit MasterFarmer Contract in FTMScan. The address is shown on top of the page and you can easily copy the address by clicking on the copy icon.

Then, in order to approve the smart contract that is related to the Wigo-LP token you want to deposit in a farm, follow the steps below:

From the source code;

  • Open the farms list on GitHub.

  • Use โ€˜control/command + Fโ€™ to search for the desired pair of tokens, e. g. โ€˜FTM-WIGOโ€™.

  • You can then find the address written after โ€™250:โ€™.

From the UI;

  • Open the WigoFarm page, and find your desired pair using the search box on top of the page.

  • Click on Details to view more information regarding your pair.

  • In order to see the smart contract on FTMScan, click on the View Contract button.

Granting Permission to the Wigo-LP Token Contract

Having done the above steps to find your chosen Wigo-LP token contract on FTMScan, you now have to confirm the use of your LP tokens in the WigoFarm.

  • From the Wigo-LP tokenโ€™s contract page, choose the Contract tab and select Write Contract from the subcategories.

  • Connect your wallet and confirm the connection in your wallet.

  • In the Approve section, enter the MasterFarmer Contractโ€™s address youโ€™ve copied in the previous step into the Spender (address) field.

  • In order to determine the amount of Wigo-LP tokens the contract is allowed to spend, you should also enter the desired amount in the Value field.

  • Finally, you are ready to deposit Wigo-LP tokens to the WigoFarm by clicking on the Write button and confirming the operation in your wallet. Needless to say, the amount of Wigo-LP tokens you can use in the WigoFarm is limited to that youโ€™ve already approved in this stage.

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.

Depositing Wigo-LP Tokens Using the MasterFarmer Smart Contract

Now that youโ€™ve gone through the prerequisite of depositing your Wigo-LP tokens, you are ready to do so following the steps below:

  • Open MasterFarmer Contract in FTMScan. Select the Contract tab and choose Write Contract from the subcategories.

  • Connect your MetaMask wallet by clicking on the Connect to Web3 button.

  • Move on to the Deposit section, and enter the PID youโ€™ve copied in the first stage. (You can find the necessary information on how to find the PID by reading Finding Farm PID section on this page.)

  • In the Amount field below the PID, you also need to enter the amount you have approved for your Wigo-LP token to spend in the previous section.

  • Confirm the operation in your wallet by clicking on the Write button.

  • You are now able to view the details of your transaction by clicking on the View your transaction button.

Withdrawal from a Farm

In case you decide to withdraw your Wigo-LP tokens from a farm, the steps you need to follow are not different from those of depositing. However, the function you interact with is different;

  • Open MasterFarmer Contract in FTMScan. Select the Contract tab and choose Write Contract from the subcategories.

  • Connect the MetaMask wallet by clicking on the Connect to Web3 button.

  • Scroll down to the Withdraw section, and enter your PID number in the related box. (You might need to read Finding Farm PID section on this page to find out how you can find the PID.)

  • After entering the PID number, you also have to enter the amount of Wigo-LP tokens you decide to withdraw in the Amount box.

  • Confirm the operation in your wallet by clicking on the Write button.

  • You can see your transaction details by clicking on the View your transaction button.

Emergency Withdrawal

As the name suggests, this method should only be used when there is no other possible way for the withdrawal operation. It is worth mentioning that using the emergency withdrawal function leads to the loss of your WIGO rewards. Therefore, We recommend you not to use this operation unless there is a special situation involved, or you are an expert in understanding smart contracts and the codes involved.

  • Open MasterFarmer Contract in FTMScan. Select the Contract tab and choose Write Contract from the subcategories.

  • Connect the MetaMask wallet by clicking on the Connect to Web3 button.

  • Scroll down to the Emergency Withdraw section, and enter your PID number in the related box. (You can find the necessary information on how to find the PID by reading Finding Farm PID section on this page.)

  • Confirm the operation in your wallet by clicking on the Write button.

  • You are now able to view the details of your transaction by clicking on the View your transaction button.

Last updated