In the background, we move the user's position from vault1 (Lending) to vault2 (Borrowing). That operation can also happen cross-chain.
Ex.: Alice deposited in the past some WETH in a Lending Vault to earn a yield on Ethereum. She now needs USDC to participate in a farm on Arbitrum. Fuji moves the WETH to a borrowing vault, where it gets deposited as collateral, and we borrow the required USDC and hand it over to Alice on Arbitrum.
Alice can choose the borrowing vault where Fuji her collateral:
deposit+borrow from a vault on Ethereum and transfer the borrowed amount to Arbitrum
or
transfer WETH from Ethereum to Arbitrum and deposit+borrow on Arbitrum
This operation is similar to #239 in a way that we switch one vault for another.
In the background, we move the user's position from vault1 (Lending) to vault2 (Borrowing). That operation can also happen cross-chain.
Ex.: Alice deposited in the past some WETH in a Lending Vault to earn a yield on Ethereum. She now needs USDC to participate in a farm on Arbitrum. Fuji moves the WETH to a borrowing vault, where it gets deposited as collateral, and we borrow the required USDC and hand it over to Alice on Arbitrum. Alice can choose the borrowing vault where Fuji her collateral:
This operation is similar to #239 in a way that we switch one vault for another.
@Markoyw