# Migrations

## Yield Farm Migrations

When we choose to migrate from one farm to another all funds in one farm strategy and withdrawn and redeposited into the specified strategy.

## Lender Migrations

When we choose to migrate from one lender to another, all funds in the lender strategy are repaid using a flash loan and the position is moved to the new lender strategy.

High level steps are:

1. take flashloan
2. repay debt from old lender
3. withdraw collateral from old lender
4. deposit collateral with new lender
5. borrow from new lender
6. repay flash loan

{% hint style="info" %}
&#x20;Migration fees in the form of flash loan fees are distributed to users.
{% 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.altitude.fi/general/yield-generation-process/when-do-we-interact-with-yield-farms/migrations.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.
