Find farm by tokens

From UBot Studio
Revision as of 20:06, 4 July 2023 by LillyT (Talk | contribs)

Jump to: navigation, search

$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.

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.

Return Value

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

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

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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox