# Automated KWENTA Rewards - Live on Optimism

By [Synthetix Exchange](https://paragraph.com/@kwenta) · 2023-10-05

---

In our most recent update, we rolled out the UI additions for "Staking V2" which includes a staking delegate feature. Simply put, this allows one wallet to perform tasks for another. We've teamed up with Gelato, and because of this collaboration, if you're staking $KWENTA, you can automatically compound your staking rewards on Optimism. This is all thanks to the recently launched staking V2 contracts.

> It's important to note that Gelato bots only help you compound your rewards. They don't have access to manage your entire staking account, so there's less risk, when delegating to a hot wallet.

**Gelato Tutorial - Automated Claiming**
----------------------------------------

### Fund Your Gelato Account

![Deposit funds into your Gelato account](https://storage.googleapis.com/papyrus_images/f6ef938e615d2b7fcedc0d68769bd8b260f4fab863dcfd4adecceea2b4648886.png)

Deposit funds into your Gelato account

*   Connect your wallet with the staked Kwenta & deposit some ETH onto your Gelato account [https://app.gelato.network/funds](https://app.gelato.network/funds?ref=blog.synthetix.io)
    

> These funds will be used to pay for transactions to claim for you; recommend $15-$25 worth of ETH as transactions on Optimism costs an average $0.25.

### Putting in place necessary approvals

With a connected wallet, hit the settings wheel in the right corner

*   Find your Message Sender Address
    
*   Copy this address or leave the tab open to come back to at a later time
    

![Find your message sender address](https://storage.googleapis.com/papyrus_images/e03fb22610093cc5e2d9736a69b8e38041d466878079d0c3dd080cb2b639cf78.png)

Find your message sender address

Head to the Kwenta staking dashboard, connect the wallet which is currently staking $KWENTA, and find the `Delegate Tab`

![Delegate from your staking wallet to your message sender](https://storage.googleapis.com/papyrus_images/8c0bcf6b50d42e1417a7260032e047303348b7fd7bffb1275ce90eaed5ce6363.png)

Delegate from your staking wallet to your message sender

*   Paste your Message sender address into the delegate field and submit the transaction
    

> Delegates can be removed via the revoke feature in the `Manage` section.

### Setting up Auto-Compounding

Create a task on [app.gelato.network](https://app.gelato.network/?ref=blog.synthetix.io)

*   Enter the Kwenta `stakingRewardV2` contract address `0x61294940CE7cD1BDA10e349adC5B538B722CeB88`
    
*   Select the `compoundOnBehalf` function from the dropdown of choices
    
*   Enter the address which has the staked $KWENTA
    

> Note Gelato will prompt you to add your msg.sender address as an approved delegate if you haven’t already (we did)

![](https://storage.googleapis.com/papyrus_images/56fe0283cb3f662303aae46917ed9033032015c7e2608d8449dd4b48fe8b3270.png)

*   Click "Time" & enter how long from today the next time this transaction should execute
    

![Select an execution times](https://storage.googleapis.com/papyrus_images/aae320661c7c57bf03d709c6dcc90138f47a1f7450dd5ad6a1a97cf3679cac7c.png)

Select an execution times

*   Choose how to pay for the transaction (Gelato Balance)
    
*   Name the task & Create the task (execute the transaction)
    

![Name and create the task](https://storage.googleapis.com/papyrus_images/43fe2c54d714d84ead39168e6b0765867ba2f87ed98b9fa1712ffe0c29d96fc3.png)

Name and create the task

### **Join the Kwenta Community**

If you haven't already, join the Kwenta community on [Discord](https://discord.gg/kwentaio).

To be the first to learn about new updates to Kwenta, follow us on [Twitter](https://twitter.com/kwenta_io).

To trade synthetic assets and futures, visit [Kwenta](https://kwenta.eth.limo/).

---

*Originally published on [Synthetix Exchange](https://paragraph.com/@kwenta/automated-kwenta-rewards-live-on-optimism)*
