Deposit to farm
Line 1: | Line 1: | ||
− | '''deposit | + | '''deposit to farm''' is a command that allows you to deposit LP (Liquidity Provider) tokens into a yield farm to earn rewards. |
− | + | Yield farming is a popular method in DeFi (Decentralized Finance) that allows holders to earn rewards on their cryptocurrency or token assets. | |
== Parameters == | == 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 that you want to deposit into the yield farm. | ||
− | '''Transaction Info Variable:''' ( | + | '''Transaction Info Variable:''' (Advanced, Optional) A variable to store the transaction details after the LP tokens are deposited. The default variable is '#txinfo'. |
== Example == | == Example == | ||
<pre> | <pre> | ||
− | deposit | + | config defi wallet("your private key") |
− | + | deposit to farm("PancakeSwap Farm", "10", '#txid') | |
+ | log object(#txid) | ||
</pre> | </pre> | ||
− | + | Please replace "your private key" with your actual DeFi wallet's private key. | |
− | + | Be mindful when you are handling your private key. It's a sensitive piece of data that allows full control over your funds in your DeFi wallet. Therefore, never share this key publicly or with anyone. | |
+ | |||
+ | The script above deposits 10 LP tokens into the designated yield farm on PancakeSwap and then logs the transaction details to the console. | ||
+ | |||
+ | Always ensure you have enough LP tokens and verify your input values before proceeding with the deposit, since all transactions on the blockchain are irreversible. Also consider potential network fees, as they may impact the overall profitability of your yield farming operation. |
Revision as of 20:04, 4 July 2023
deposit to farm is a command that allows you to deposit LP (Liquidity Provider) tokens into a yield farm to earn rewards.
Yield farming is a popular method in DeFi (Decentralized Finance) that allows holders to earn rewards on their cryptocurrency or token assets.
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: (Advanced, Optional) A variable to store the transaction details after the LP tokens are deposited. The default variable is '#txinfo'.
Example
config defi wallet("your private key") deposit to farm("PancakeSwap Farm", "10", '#txid') log object(#txid)
Please replace "your private key" with your actual DeFi wallet's private key.
Be mindful when you are handling your private key. It's a sensitive piece of data that allows full control over your funds in your DeFi wallet. Therefore, never share this key publicly or with anyone.
The script above deposits 10 LP tokens into the designated yield farm on PancakeSwap and then logs the transaction details to the console.
Always ensure you have enough LP tokens and verify your input values before proceeding with the deposit, since all transactions on the blockchain are irreversible. Also consider potential network fees, as they may impact the overall profitability of your yield farming operation.