> For the complete documentation index, see [llms.txt](https://docs.sensei.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sensei.win/defi-trading-features/auto-avoidance.md).

# Auto-Avoidance

## Auto Deadblock and High Tax Avoidance

<figure><img src="https://883624693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP7UYZ0UffB9oMC5gwuyH%2Fuploads%2F2pGDV8o429pDkrcZSIYR%2FScreenshot%202023-06-15%20at%202.39.26%20PM.png?alt=media&amp;token=ee0e99c4-2d10-4c77-805c-beb9455dd5be" alt=""><figcaption></figcaption></figure>

### Auto Deadblock Avoidance

* When setting up a [Snipe Task](broken://pages/O5yU9aYLRjUb4NjJEbVu) click <img src="https://883624693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP7UYZ0UffB9oMC5gwuyH%2Fuploads%2F6lu8ObadoTfNJQ7A5RSH%2Fimage.png?alt=media&amp;token=48ddfa6e-ed18-4dcd-b2ec-7e824ea7fcd5" alt="" data-size="line"> on Defi Threshold to activate auto deadblock avoidance

{% hint style="info" %}
The task will simulate the latest block for deadblocks and auto-trigger your task when the deadblocks have passed&#x20;
{% endhint %}

<figure><img src="https://883624693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP7UYZ0UffB9oMC5gwuyH%2Fuploads%2FgQ22rnXtLxKquOmYUnG9%2Fimage.png?alt=media&amp;token=f392c372-dad9-40ba-8b99-3bda18e57301" alt=""><figcaption></figcaption></figure>

### Auto Tax Avoidance

* To set custom tax thresholds click <img src="https://883624693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP7UYZ0UffB9oMC5gwuyH%2Fuploads%2FZIK1quhnaewkoFHXhI8f%2Fedit.png?alt=media&amp;token=fc4f299e-e7c4-4801-bc6b-d1b2872a2a67" alt="" data-size="line"> on Defi Threshold and input the max tax % you are comfortable with&#x20;
* When the task detects taxes under your threshold, your task will fire

{% hint style="info" %}
Tax trigger can be used for buy tasks to avoid high tax on early blocks and on sell tasks to auto-sell when sales tax is lifted&#x20;
{% endhint %}
