Get farm balance

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$get lp token balance is a function that returns the balance of Liquidity Provider (LP) tokens you have staked in a particular yield farm.

Yield farming, also known as liquidity mining, is a process that allows cryptocurrency holders to lock up their holdings, in return for rewards, typically in the form of additional cryptocurrency.

Parameters

Farm: The yield farm where you have staked your LP tokens.

Return Value

This function returns a string representing the quantity of staked LP tokens you have in the specified yield farm.

Example

log("LP Tokens Staked in Farm: {$get lp token balance("SushiSwap")}")

In the example above, the function retrieves the balance of LP tokens staked in the specified yield farm on the SushiSwap network and logs the balance.

    • Please note:**

This function will only show the balance of your LP tokens staked in the yield farm. It does not fetch the underlying assets or their value. For that, you will need to use additional functions like $get liquidity value and others.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox