Loop Mechanics
A Loop works as follows, using a JupSOL / SOL Loop as an example:- Loopscale borrows SOL with no collateral via a flash loan
- SOL is swapped for more JupSOL
- JupSOL is deposited as collateral in Loopscale
- SOL is borrowed against the JupSOL collateral
- Borrowed SOL repays the initial flash loan
- Flash borrows the amount needed to repay the fixed-rate loan
- Repays the fixed-rate loan to unlock the yield token collateral
- Sells enough of the yield token to repay the flash loan
- Returns the remaining collateral to your wallet