# Technical Architecture

We are offering these technicals to help our DEX secured and transparency

* Slippage logic

A = A - (A \* % Slippage)

Example: User swap 100 GIL tokens, slippage is 5% at the moment

So we have 100 - (100 \* 5%) = 95&#x20;

\=> Minimum GIL tokens received = 95&#x20;

* LP token by adding by Liquidity Provider with a pair token

User adds a pair token A and token B to our pool.&#x20;

So LP token = sqrt(A\*B)

Example: add liquid 100 token A và 200 token B (1 A = 2 B)&#x20;

LP token = sqrt(100\*200) = 141,42

* AI BOT to recalculate the price of token

X\*Y = K

K is a constant

X and Y are a pair token

Example: X = $80 , Y = $100

So K= $80 \* $100 = $8000

When X is down to $60 → Y value is $133,33

* DEX fee

We assign a constant value is 0,3%

Whenever a user complete a transaction, the fee of DEX is: amount \* constant value

Example: user would like swap 100 GIL tokens → fee of DEX = 100\*0,3% = 0,3 GIL token.

<br>


---

# 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://global-interlink.gitbook.io/gil/explore/dex-minadex/technical-architecture.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.
