Claim farm rewards

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''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 fo...")
 
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
'''defi farm exit''' is a command that allows you to fully withdraw the Liquidity Provider (LP) tokens you have staked in a yield farm.
+
'''claim farm rewards''' is a command that allows you to claim earned rewards from staking LP (Liquidity Provider) tokens 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 ==
 
== Parameters ==
  
'''Farm:''' The yield farm from which you want to fully withdraw your LP tokens.
+
'''Farm:''' The yield farm from where you want to claim your rewards. If the farm you want isn't in the list, you can find it and get it added to the list via the '''$find farm by tokens''' function.
  
'''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'.
+
'''Transaction Info Variable:''' (Optional) A variable to store the transaction details after the rewards are claimed. The default variable is '''#txinfo'''.
  
 
== Example ==
 
== Example ==
  
 
<pre>
 
<pre>
defi farm exit("PancakeSwap", "#transactionInfo")
+
ui console view
ui text msg("Transaction Info: {#transactionInfo}")
+
config defi wallet("your private key")
 +
claim farm rewards("DOGE_WBNB_Farm", '#txinfo')
 +
log object(#txinfo)
 
</pre>
 
</pre>
  
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.
+
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.
 +
 
 +
The script above claims rewards from the designated yield farm on PancakeSwap and logs the transaction details to the console.

Latest revision as of 00:46, 5 July 2023

claim farm rewards is a command that allows you to claim earned rewards from staking LP (Liquidity Provider) tokens in a yield farm.

[edit] Parameters

Farm: The yield farm from where you want to claim your rewards. If the farm you want isn't in the list, you can find it and get it added to the list via the $find farm by tokens function.

Transaction Info Variable: (Optional) A variable to store the transaction details after the rewards are claimed. The default variable is #txinfo.

[edit] Example

ui console view
config defi wallet("your private key")
claim farm rewards("DOGE_WBNB_Farm", '#txinfo')
log object(#txinfo)

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.

The script above claims rewards from the designated yield farm on PancakeSwap and logs the transaction details to the console.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox