How it works
High-level technical overview of Gearbox Protocol.
Gearbox protocol has two sides to it:
- Passive lenders - liquidity providers who seek passive yield and prefer lower risks. This can be seen similar to providing liquidity to Compound and getting cTokens back. LPs' assets are utilized by others, for which they get APY. Any one can be a liquidity provider on Gearbox.
- Borrowers - active traders, farmers, and even protocols who wish to increase their position by borrowing liquidity from the protocol at multiples of their collateral. The liquidity they borrow can be 10x of what their notional size is. This is the leverage power!
One of the key aspects which actually makes this DeFi primitive possible are Credit Accounts (and Credit Managers), which “bind” together lenders and borrowers in this equation. More specifically, a Credit Account is an isolated smart contract that holds user + borrowed funds, has liquidation thresholds, and has a list of allowed tokens and protocols (in order to avoid attack vectors from malicious actors, like borrowing leverage and buying a self-created ERC20 token; or sending an amount to a malicious smart contract).
Gearbox does not silo the assets within its protocol.
All trades and operations happen on third-party protocols: Uniswap, Curve, Yearn, etc. Your assets never end up in custody of any one person or company. As such, Gearbox Protocol is not a trading platform / protocol. The protocol does not have its own order books, or control the secondary market liquidity. Therefore, there are no funding rates.
Integrations possibilities are very broad, as Gearbox is built with composability at its core:
The positions which traders and farmers take should be liquidated by third-party liquidators before the assets of liquidity providers would start being exposed to the downside. As such, the protocol returns the liquidity providers’ assets to the pools if all functions correctly and liquidators do their job. This is how Gearbox is able to provide composable leverage.
The liquidations are based on the health factor and the threshold weighted value: