Withdraw from farm

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''withdraw lp tokens''' is a command that enables you to withdraw Liquidity Provider (LP) tokens from a yield farm. Yield farming is a method of earning more cryptocurrency ...")
 
Line 1: Line 1:
'''withdraw lp tokens''' is a command that enables you to withdraw Liquidity Provider (LP) tokens from a yield farm.
+
'''defi farm withdraw''' is a command that allows you to withdraw Liquidity Provider (LP) tokens from a yield farm.
  
Yield farming is a method of earning more cryptocurrency using existing cryptocurrency. When you participate in yield farming, you provide liquidity by adding assets to a liquidity pool. The pool then provides you with LP tokens, representing your share in the pool.
+
This command is particularly useful for enterprise users who participate in yield farming activities and wish to retrieve their staked LP tokens.
  
== Parameters ==  
+
== User Level ==
  
'''Farm:''' The yield farm from which you wish to withdraw your LP tokens.
+
This command is exclusively available for enterprise users.
  
'''Amount:''' The amount of LP tokens that you wish to withdraw from the yield farm.
+
== Parameters ==
  
'''Transaction Info Variable:''' (Optional, advanced) The variable name where the transaction information will be stored. The default value is '#txinfo'.
+
'''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 ==
 
== Example ==
  
 
<pre>
 
<pre>
withdraw lp tokens("SushiSwap", "10")
+
defi farm withdraw("PancakeSwap", "5", "#transactionInfo")
 +
ui text msg("Transaction Info: {#transactionInfo}")
 
</pre>
 
</pre>
  
In the script example above, the 'withdraw lp tokens' command withdraws 10 LP tokens from the specified yield farm on the SushiSwap network.
+
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.
 
+
== Post-Run ==
+
 
+
After running this command, '''RecordTxData''' is executed to record transaction data.
+
 
+
**Please note:**
+
 
+
Before withdrawing LP tokens, ensure you have the required number of LP tokens in the yield farm, and you have enough balance of native token (for transaction fees). It's advised to only farm on platforms you trust with funds you can afford to risk, as DeFi involves potential risks.
+

Revision as of 18:32, 4 July 2023

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