# Optimize

Optimize allows you to migrate your existing position from a supported protocol directly into NAVI — all in a single transaction.

Instead of manually repaying, withdrawing, and reopening positions, Optimize automates the entire process. This helps you:

* Move to NAVI seamlessly
* Benefit from better rates
* Save time and reduce manual steps

### How to Optimize a Position

<figure><img src="/files/LiEefPHrrXPN7Y1sxrvS" alt="" width="447"><figcaption></figcaption></figure>

* Go to the Optimize page.
* Select either the Supply or Borrow tab.
* Choose the position or asset you want to optimize.
* Review the recommended optimization option, based on APR and liquidity depth.
* Check the transaction details, including:
  * Price impact
  * Before/after position changes
  * Health Factor changes
  * Estimated fees
* Confirm the transaction. Your position will be migrated and optimized automatically.

### Is there a fee charged?

Optimize automates the migration of your positions in a single transaction. To do this efficiently, it uses flashloans, which allow NAVI to temporarily borrow funds to repay your existing positions and redeposit them into the optimized configuration—all automatically.

* To view the current flashloan fee, please visit [Flashloan](/navi-protocol-docs/protocol-mechanics/flash-loan.md).
* For borrowing positions, a 0.3% fee is applied to the borrowed amount.
* Standard gas fees may also apply.

### Which protocols are supported?

Currently, Optimize supports migrations from:

* NAVI
* Suilend

Support for additional Sui-based protocols will be added in near future.


---

# 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://naviprotocol.gitbook.io/navi-protocol-docs/tools-and-automation/optimize.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.
