Deposit to farm

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''defi farm deposit''' is a command that deposits Liquidity Provider (LP) tokens into a yield farm.  
+
'''deposit lp tokens''' is a command that allows you to deposit 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.
+
Use this command to start earning rewards on your LP tokens through yield farming in a specific farm.
 
+
== User Level ==
+
 
+
This command is exclusively available for enterprise users.
+
  
 
== Parameters ==
 
== Parameters ==
  
'''Farm:''' The yield farm where you want to deposit your LP tokens.
+
'''Farm:''' The yield farm where you want to deposit your LP tokens. The available farms will depend on the "FarmNames" list set in your environment.
  
'''Amount:''' The amount of LP tokens you want to deposit into the farm.
+
'''Amount:''' The amount of LP tokens that you want to deposit into the yield 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'.
+
'''Transaction Info Variable:''' (optional) The variable to store the transaction information after the deposit is made. The default is '#txinfo'.
  
 
== Example ==
 
== Example ==
  
 
<pre>
 
<pre>
defi farm deposit("PancakeSwap", "10", "#transactionInfo")
+
deposit lp tokens("PancakeSwap", "10", "#transaction")
ui text msg("Transaction Info: {#transactionInfo}")
+
alert(#transaction)
 
</pre>
 
</pre>
  
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.
+
The above script deposits 10 LP tokens into a yield farm on PancakeSwap. It then alerts the user to the details of the transaction.
 +
 
 +
Always remember to double-check your input values before depositing LP tokens, as all transactions on blockchain are irreversible. Ensure that the farm name and the amount you use in the command actually correspond to the existing farms and your holdings of LP tokens.

Revision as of 19:08, 4 July 2023

deposit lp tokens is a command that allows you to deposit Liquidity Provider (LP) tokens into a yield farm.

Use this command to start earning rewards on your LP tokens through yield farming in a specific farm.

Parameters

Farm: The yield farm where you want to deposit your LP tokens. The available farms will depend on the "FarmNames" list set in your environment.

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

Transaction Info Variable: (optional) The variable to store the transaction information after the deposit is made. The default is '#txinfo'.

Example

deposit lp tokens("PancakeSwap", "10", "#transaction")
alert(#transaction)

The above script deposits 10 LP tokens into a yield farm on PancakeSwap. It then alerts the user to the details of the transaction.

Always remember to double-check your input values before depositing LP tokens, as all transactions on blockchain are irreversible. Ensure that the farm name and the amount you use in the command actually correspond to the existing farms and your holdings of LP tokens.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox