Deposit to farm
(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 | + | '''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. | |
− | == 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 | + | '''Amount:''' The amount of LP tokens you want to deposit into the farm. |
− | '''Transaction Info Variable:''' (Optional | + | '''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 | + | defi farm deposit("PancakeSwap", "10", "#transactionInfo") |
+ | ui text msg("Transaction Info: {#transactionInfo}") | ||
</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. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
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.