Find farm by tokens

From UBot Studio
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.

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

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

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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox