> For the complete documentation index, see [llms.txt](https://docs.altitude.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.altitude.fi/general/yield-generation-process/when-do-we-interact-with-yield-farms/migrations.md).

# 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 %}
