---
description: Autocompound module
---

# Autocompound

The [Autocompound](autocompound) module allows users to automatically swap and reinvest fees that are sitting idle in the Uniswap v3 position.&#x20;

When in range, Uniswap v3 positions collect fees.&#x20;

These fees are not further earning trading fees as they are in a separate account. This module periodically reinvests these fees, sitting in the Uniswap v3 position. This operation is maintained by external bots (**keepers**) who frequently check whether fees need to be reinvested.

Advanced users can customize the **Fee/Liquidity threshold parameters**, the threshold after which Autocompound is triggered and refers to the amount of fees over position liquidity. For example, setting the threshold to 2% implies that Autocompound is triggered when accrued fees value exceeds 2% of the liquidity in the Uniswap position.

A numeric example follows:

This calculation was made by using 12 periods (can be weeks, days, or even years) with a $10.000 starting cap.

In the "_with Autocompund_" scenario, fees are reinvested every period. While in the "_without Autocompound_" scenario, fees are not reinvested.

<table><thead><tr><th width="221.311377245509">With Autocompound</th><th width="212.33333333333331">Without Autocompound</th><th>Additional Yield</th></tr></thead><tbody><tr><td>5,00%</td><td>4,89%</td><td><strong>0,11%</strong></td></tr><tr><td>10,00%</td><td>9,57%</td><td><strong>0,43%</strong></td></tr><tr><td>15,00%</td><td>14,06%</td><td><strong>0,94%</strong></td></tr><tr><td>20,00%</td><td>18,37%</td><td><strong>1,63%</strong></td></tr><tr><td>30,0% </td><td>26,50%</td><td><strong>3,5%</strong></td></tr><tr><td>40,0%</td><td>34,1%</td><td><strong>5,9%</strong></td></tr><tr><td>60,00% </td><td>47,93%</td><td><strong>12,07%</strong></td></tr></tbody></table>

