Deposit to farm

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

Jump to: navigation, search

defi farm deposit is a command that deposits Liquidity Provider (LP) tokens into a yield farm.

This command is especially useful for enterprise users who participate in yield farming activities and want to deposit LP tokens to earn farming rewards.

User Level

This command is exclusively available for enterprise users.

Parameters

Farm: The yield farm where you want to deposit your LP tokens.

Amount: The amount of LP tokens you want to deposit into the farm.

Transaction Info Variable: (Optional) This advanced parameter is the variable to which the transaction details will be stored. If not specified, it will default to a variable named '#txinfo'.

Example

defi farm deposit("PancakeSwap", "10", "#transactionInfo")
ui text msg("Transaction Info: {#transactionInfo}")

In the script example, we are depositing 10 LP tokens into the yield farm on PancakeSwap, and then displaying the transaction info in the UI.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox