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