# Protocol Specification

Tinyman AMM V2 is a Constant Product Market Maker. It is mathematically similar to Tinyman V1 which in turn was modeled on Uniswap V2. The contract and protocol design for Tinyman AMM V2 is significantly different from V1 as it uses more recent features of the Algorand Virtual Machine.

{% content-ref url="/pages/pVna3G3NTPShGBCeoAZx" %}
[Pool](/protocol-specification/pool.md)
{% endcontent-ref %}

{% content-ref url="/pages/S0OxRQn6f19zMXQqTjoy" %}
[Swap](/protocol-specification/swap.md)
{% endcontent-ref %}

{% content-ref url="/pages/3ayJCioT4SAnBhcjo6kv" %}
[Fees](/protocol-specification/fees.md)
{% endcontent-ref %}

{% content-ref url="/pages/xvPYQRY3M8WXZMEtpygG" %}
[Flash Loan](/protocol-specification/flash-loan.md)
{% endcontent-ref %}

{% content-ref url="/pages/ylc9j1pHX69GiiCV5ZR8" %}
[Flash Swap](/protocol-specification/flash-swap.md)
{% endcontent-ref %}

{% content-ref url="/pages/slwrdmGbjPZhhrEF0lpD" %}
[Additional Notes](/protocol-specification/additional-notes.md)
{% endcontent-ref %}


---

# 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.tinyman.org/protocol-specification.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.
