# Auction contract

In time of each [***swap***](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract/entrypoints-overview/dex-entrypoints/swap) or [***flash\_swap***](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract/entrypoints-overview/dex-entrypoints/swap) operation [DexCore](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract) contract collects ***auction\_fee***. Anyone can call a method to send this fee to this Auction contract ([***withdraw\_auction\_fee***](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract/entrypoints-overview/dex-entrypoints/withdraw_auction_fee) entrypoint on [DexCore](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract) contract) and earn a percentage of the money sent.

All the money that comes to this Auction contract is distributed into two funds: dev, which can be withdrawn by the administrator at any time, and public.

There are two types of tokens: some are whitelisted, others are not. All money of whitelisted tokens from the public fund can be withdrawn by the administrator of the contract.

All money of **NON** whitelisted tokens from the public fund can be bought at the auction. Anyone can start an auction with a fixed minimum bid in QUIPU tokens and try to buy any amount of any available token. A small percentage is removed from each bet and stored on the contract. The bid of the winner of the auction is burned, and he receives the tokens he staked on. The administrator can burn the accumulated QUIPU tokens from bets at any time.

Burning means that all QUIPU tokens are transferred to the `zero_address`.

{% hint style="info" %}
`zero_address` is the account address that no one has access to: [`tz1ZZZZZZZZZZZZZZZZZZZZZZZZZZZZNkiRg`](https://tzkt.io/tz1ZZZZZZZZZZZZZZZZZZZZZZZZZZZZNkiRg/operations/)
{% endhint %}


---

# 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://docs.quipuswap.com/smart-contracts/dex-2.0/auction-contract.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.
