Withdraw from farm
(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 | + | '''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 == | |
− | '''Transaction Info Variable:''' (Optional | + | '''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 | + | defi farm withdraw("PancakeSwap", "5", "#transactionInfo") |
+ | ui text msg("Transaction Info: {#transactionInfo}") | ||
</pre> | </pre> | ||
− | In | + | 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. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
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.