Withdraw from farm

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

Jump to: navigation, search

defi farm withdraw is a command that allows you to withdraw Liquidity Provider (LP) tokens from a yield farm.

This command is particularly useful for enterprise users who participate in yield farming activities and wish to retrieve their staked LP tokens.

User Level

This command is exclusively available for enterprise users.

Parameters

Farm: The yield farm from which you want to withdraw your LP tokens.

Amount: The amount of LP tokens you want to withdraw.

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 withdraw("PancakeSwap", "5", "#transactionInfo")
ui text msg("Transaction Info: {#transactionInfo}")

In this example, the script is withdrawing 5 LP tokens from the yield farm on PancakeSwap. It then displays the transaction info in the UI.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox