In anticipation of the roadmap dropping, I thought I’d start a product discussion around a feature I think we should build (obviously not in the next 6 months). Maybe Christmas will come early and it will be in the roadmap already.
Summary
The Algofi core developer team should implement a lending market where liquidity providers can use
their LP tokens as collateral to borrow the tokens in that same pair. A DeFi platform on Ethereum, Impermax, has already been succesful with this functionality.
- LP lending can be leveraged at higher multiples than normal tokens while still being over colateralized
- To see an example of this live, check out Impermax on EVM chains
- Here is their whitepaper to get into the technicals of how it works
- An LP lending market would bring users, demand, and therefore higher TVL
- An LP lending market can be the basis of further products, such as a decentralized ICO
Proposal to Discuss
Implement an LP token lending market
Motivation
The sustainable way to grow the platform is to increase demand for loans. More demand for loans increases interest rates, which leads to more people puttin up collateral (increasing TVL) in order to get the juicy yields. Launching products that encourage borrowing is the sustainable way to do this. Currently the lend product serves users who would like to bet on or against the price of an asset (longing vs shorting). An LP lending market would open up a new bet, betting on the price of two assets to stay correlated.
LP lending markets are special because they can facilitate loans above 1X leverage while still being overcollateralized. That means users can borrow more than they have in collateral without lenders being at risk of unpaid loans. The loans can only be made against the same pair. For example, if I have STBL2<>USDC LP tokens as collateral, I can only borrow STBL2<>USDC LP tokens. I would also not be allowed to remove those borrowed tokens from Algofi. Consider the following example:
- Right now the STBL2<>USDC LP is yielding around a 3.2% return
- I have $10 worth of LP tokens
- I borrow $1000 worth of LP tokens (500 STBL2 and 500USDC), with my $10 as collateral.
- I am now earning 3.2% on the $1000 on top of the 3.2% on my original $10, minus whatever borrowing interest I’ve incurred.
- I cannot withdraw or sell the LP tokens I borrowed, only earn fees from swaps
- I will be liquidated if the balance of tokens in the AMM drifts too much (essentially a large price swing in the pair). Let’s say in this example STBL2 depegs and is now worth $0.98.
- The value of what I borrowed is now around $990 but the value of my collateral has fallen below $10. So right as those values cross, my collateral would be liquidated and sold to make borrowers whole. This is why I can put up $10 of collateral but borrow $1000
This can be composed in such a way that borrowers are actually borrowing from the STBL2 and USDC2 lending markets and the smart contracts compose zapping into LP tokens. That means that people can supply liquidity to Algofi lend and now also be exposed to yields of AMM swaps without taking on Impermant Loss (IL) risks. Those that are very confident in their ability to manage the IL can leverage their position for extremely lucrative yields. All of this deepens liquidity on the DEX as more of the collateral on the platform gets utilized for swaps.
Further Discussion
Oracle Risks
Impermax uses Time Weighted Average Price (TWAP) to handle liquidations. There have been concerns before ( Lending Pool Collateral Factor Adjustments ) about the risks of manipulation with LP tokens. One of the things that is nice about an LP lending market is that the collateral is the same set of assets as what is borrowed, so there is no market selling that needs to happen during liqiudation.
Out of Scope for Algofi
There is argument that this could be a seperate product (like Impermax is) with a seperate DAO entirely. Personally I think there are benefits to vertically integrating this functionality into Algofi the same way the DEX was.
Decentralized ICO
I believe an LP lending market could be the foundation of a decentralized ICO functionality. Right now a huge problem in the space is rug pulls. Lack of a desire for devs to dox themselves, lack of credible backers, and liquidity are all barriers to credible tokens being launched. I believe an LP lending functionality could be composed into something grander, I’m imagining something like:
- A team with a project but no token wants to launch a token (think NFD, etc)
- Team goes to Algofi and uses the decentralized ICO functionality
- They enter a few parameters (collateral in STBL2, token supply, initial price, vesting schedule, leverage, etc) and execute a contract
- Algofi mints a new token and creates an AMM with the team’s collateral and their new token as the pair
- The team’s LP is instantly leveraged (to the multipier they specified) with STBL2 borrowed from the lending market and the newly minted token coming from an emissions wallet created with the token.
- The emissions wallet is only for lending into LP or for preconfigured fair launch emissions related to the project
- The team regains control of their collateral on a schedule according to the vesting schedule they created
- Users can now feel assured the token won’t instantly rug because the project would lose their STBL2 collateral if the price moves aginst them too much.
- Projects can tap the STBL2 lending market for liquidity and the trust of Algofi for a token launch without dealing with a centralized entity
- Algofi earns interest on the tokens it minted for the project in the emissions wallet, by lending to the project’s leveraged LP position. This earns the Algofi treasury a piece of the ICO.
Prioritization
We’re about to see the Roadmap so it will be interesting to see how much this aligns or diverges from the developer’s priorities. There are things like Ranged LP pairs that could be arguable as signifigant of product enhancements, so quite open to a debate on where this falls.
Exit Poll
- Yes
- No
- Undecided
- Don’t Care
0 voters