Claim farm rewards

From UBot Studio
Revision as of 20:22, 4 July 2023 by LillyT (Talk | contribs)

Jump to: navigation, search

claim farm rewards is a command that allows you to claim earned rewards from staking LP (Liquidity Provider) tokens in a yield farm.

Parameters

Farm: The yield farm from where you want to claim your rewards.

Transaction Info Variable: (Optional) A variable to store the transaction details after the rewards are claimed. The default variable is '#txinfo'.

Example

ui console view
config defi wallet("your private key")
claim farm rewards("PancakeSwap Farm", '#txinfo')
log object(#txinfo)

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 claims rewards from the designated yield farm on PancakeSwap and logs the transaction details to the console.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox