The pieces
Follow the money
1
Lenders supply
A lender supplies USDC on Earn and receives vUSDC. The USDC sits in the pool, ready to be borrowed.
2
A trader deposits collateral
A trader opens a margin account and deposits collateral, for example SOL, USDC or TSLAx.
3
The trader borrows
The trader borrows USDC from the pool. The USDC moves into the trader’s margin account, not their wallet, and the account records the debt.
4
The loan goes to work
From the margin account the trader swaps, opens a perp, or moves into a Farm vault. Each result (tokens, kSOL, vbSOL, a Phoenix position) stays in the account and counts as collateral.
5
Interest flows back
Borrowers pay interest that accrues to the pool. Lenders’ vTokens are worth more underlying over time.
6
Unwind
The trader closes positions and repays (or uses Flash repay to do it all in one flow), then withdraws what’s left.

