Find farm by tokens

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
'''$find farm by tokens''' is a function that returns the name of the yield farm which uses a specific pair of tokens on a decentralized exchange.
 
'''$find farm by tokens''' is a function that returns the name of the yield farm which uses a specific pair of tokens on a decentralized exchange.
 +
 +
If the farm isn't already in the list of available farms for commands and functions that work with farms, the farm will be added.
  
 
== Parameters ==
 
== Parameters ==
Line 27: Line 29:
  
 
<blockquote>
 
<blockquote>
<p>The farm is: ETH-DAI Farm</p>
+
<p>The farm is: ETH_DAI_Farm</p>
 
</blockquote>
 
</blockquote>
  
Knowing the correct farm name is crucial to perform operations such as depositing or withdrawing from the farm. Always ensure that you have the correct token pair and exchange for the yield farm operations.
+
Note: The farm must actually exist on the platform for this function to work properly

Latest revision as of 23:50, 4 July 2023

$find farm by tokens is a function that returns the name of the yield farm which uses a specific pair of tokens on a decentralized exchange.

If the farm isn't already in the list of available farms for commands and functions that work with farms, the farm will be added.

[edit] Parameters

Exchange: The decentralized exchange where you want to find a yield farm.

Token A ID and Token B ID: The pair of tokens for which you want to find a yield farm.

[edit] Return Value

This function returns the name of the yield farm that uses the specified pair of tokens on the given exchange.

[edit] Example

config defi wallet("your private key")
log("The farm is: {$find farm by tokens("PancakeSwap", "ETH", "DAI")}")

Please replace "your private key" with your actual DeFi wallet's private key.

Be mindful when you are handling your private key. It's a sensitive piece of data that allows full control over your funds in your DeFi wallet. Therefore, never share this key publicly or with anyone.

In this example, the command will find and return the name of the yield farm that uses the ETH-DAI token pair on PancakeSwap.

Example Output:

The farm is: ETH_DAI_Farm

Note: The farm must actually exist on the platform for this function to work properly

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox