Deposit to farm
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 generating rewards from cryptocurrency capital. It involves lending your funds to others through the magic of computer programs called smart contracts.
Parameters
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.
Transaction Info Variable: (Optional, advanced) The variable name where the transaction information will be stored. The default value is '#txinfo'.
Example
deposit lp tokens("SushiSwap", "10")
The above script deposits 10 LP tokens into the specified yield farm on SushiSwap network.
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.