# Arbitrage Bot

![](/files/-MfLNZtbKLKq7KmFpBpp)

In order to control any price discrepancy between AFI and wAFI, the AQUA Finance team will implement an Arbitrage Bot that connects to the dev wallet which is the only wallet that will not be affected by the reflective mechanism.

This arbitrage bot will execute buy/sell orders only when either one of the tokens has 15-20% price discrepancy. For instance,

If wAFI price is higher than 20% of AFI price, the bot will send AFI to wrap smart contract without any fee then execute sell order to sell the wAFI to open market which will cause wAFI price to drop while at the same time execute AFI buy order to increase the price of AFI

If wAFI price is lower than 20% of AFI price, the bot will execute sell order to sell AFI to market without any fee which will cause price of AFI to drop while at the same time execute wAFI buy order to increase the price of wAFI.

The arbitrage bot executes buy/sell orders at random times but will work continuously to ensure that there is very minimal price discrepancy between AFI and wAFI.

**As of now, the arbitrage bot has not been implemented, all arbitrage happens manually.**\ <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://aquafinance-dolph.gitbook.io/aqua-finance/untitled-1/arbitrage-bot.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.
