What providing liquidity is
The idea under everything else: you put two tokens in a pool, traders swap against it, and you earn part of every swap.
A pool holds two tokens, say a token and HYPE. Traders swap one for the other against the pool instead of against another person, and the pool's math sets the price from what it holds. Liquidity providers (LPs) are the people who put those tokens in.
When you deposit, you get a position: your share of the pool, recorded to your wallet. Every swap pays a small fee, and the fee goes to the LPs whose liquidity the swap used. You can add more, claim fees or take your tokens out whenever you like, unless you choose to lock the position.
- You keep custody
- Your position belongs to your wallet and only you can withdraw it. NEBULA never holds your funds, and every transaction is signed in your wallet.
- Your mix of tokens changes
- When traders buy the token, the pool pays it out and takes in HYPE; when they sell, the reverse. So a position's mix follows the price.
Two things decide how an LP does: the fees it earns, and how the value of what it holds changes as the price moves. The next two lessons take each in turn.