Claim farm rewards

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

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

defi farm exit is a command that allows you to fully withdraw the Liquidity Provider (LP) tokens you have staked in a yield farm.

This command is particularly useful for enterprise users who have staked in a yield farm and want to retrieve all their staked LP tokens at once.

User Level

This command is exclusively available for enterprise users.

Parameters

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

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

In this example, the script is fully exiting the yield farm on PancakeSwap by withdrawing all staked LP tokens. It then displays the transaction info in the UI.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox