# Tax Token

### Token Description:&#x20;

The `TaxToken` is a plain tax token that applies a buy or sell tax when a transfer is made to or from a dex. The tax is taken in tokens, and sold on every sale, a dex swap is automatically executed to trade the taxes for Ether. Ownership is split between "owner" and "treasury," allowing the power to change taxes to be relinquished without losing the ability to change where taxes are sent or change the dex on which taxes are sold.

### Token Interface for Maintenance:&#x20;

* `transferTreasury(address _newTreasury)` - Allows the owner or treasury to change the treasury address.
* `changeDex(address _dexAddress)` - Allows the owner or treasury to change the address of the dex where taxes should be sold.
* `setTaxes(address _dex, uint256 _buyTax, uint256 _sellTax)` - Allows the owner to set buy and sell taxes on the dex.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://goattrading.gitbook.io/goat/technical/tokens/tax-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
