VII Finance builds on top of the Euler v2 Protocol, extending its functionality to allow Uniswap V3 and V4 liquidity positions to be used as collateral in any Euler vault built with the Euler Vault Kit (EVK).
We have developed two collateral-only wrapper vaults:
- UniswapV3Wrapper
- UniswapV4Wrapper
These vaults enable users to wrap their Uniswap V3/V4 LP NFTs (which represent their liquidity positions) and receive ERC6909 tokens in return.
- Each ERC6909 token retains the original
tokenIdfrom the NFT. - Holding the full amount of ERC6909 tokens represents full ownership of the original LP NFT.
Once wrapped, users can enable specific tokenIds as collateral within any compatible Euler vault.
When a user borrows from an Euler vault that accepts our wrapper vault as collateral:
-
The Euler vault calls
balanceOfon our wrapper contract. -
The
balanceOffunction:- Iterates through all enabled
tokenIds - Calculates the value of each LP NFT
- Returns the aggregate value
- Iterates through all enabled
-
The Euler vault uses this returned value to:
- Verify that the collateral is sufficient based on the configured Loan-to-Value (LTV) ratio
If liquidation is triggered:
-
The Euler vault calls
transferon our wrapper vault, instructing a transfer from the violator to the liquidator -
Our wrapper contract:
- Iterates over all tokenIds enabled as collateral
- Transfers a proportional amount of ERC6909 tokens to the liquidator
-
The liquidator can unwrap the received ERC6909 tokens to claim the underlying LP NFTs