Deposit to farm

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''deposit lp tokens''' is a command that allows you to deposit Liquidity Provider (LP) tokens into a yield farm. Yield farming (also known as liquidity mining) is a way of g...")
 
Line 1: Line 1:
'''deposit lp tokens''' is a command that allows you to deposit Liquidity Provider (LP) tokens into a yield farm.
+
'''defi farm deposit''' is a command that deposits Liquidity Provider (LP) tokens into a yield farm.  
  
Yield farming (also known as liquidity mining) is a way of generating rewards from cryptocurrency capital. It involves lending your funds to others through the magic of computer programs called smart contracts.
+
This command is especially useful for enterprise users who participate in yield farming activities and want to deposit LP tokens to earn farming rewards.
  
== Parameters ==  
+
== User Level ==
 +
 
 +
This command is exclusively available for enterprise users.
 +
 
 +
== 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.
  
'''Amount:''' The amount of LP tokens that you want to deposit into the yield farm.
+
'''Amount:''' The amount of LP tokens you want to deposit into the farm.
  
'''Transaction Info Variable:''' (Optional, advanced) The variable name where the transaction information will be stored. The default value is '#txinfo'.
+
'''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 ==
 
== Example ==
  
 
<pre>
 
<pre>
deposit lp tokens("SushiSwap", "10")
+
defi farm deposit("PancakeSwap", "10", "#transactionInfo")
 +
ui text msg("Transaction Info: {#transactionInfo}")
 
</pre>
 
</pre>
  
The above script deposits 10 LP tokens into the specified yield farm on SushiSwap network.
+
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.
 
+
== Post-Run ==
+
 
+
After running this command, '''RecordTxData''' will be executed to record transaction data.
+
 
+
**Please note:**
+
 
+
Before you deposit LP tokens, ensure you have the required number of LP tokens, you have approved the yield farm to interact with your LP tokens, and you have enough balance of the native token (to cover transaction fees). Always be aware of the potential risk and rewards associated with yield farming. It's advised to only farm on platforms you trust and with funds you are willing to risk.
+

Revision as of 18:31, 4 July 2023

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