Please describe your proposed solution.
We propose extending the Sundae v3 protocol with a new type of liquidity pool. This type of liquidity pool will allow users to trade on margin, tapping into the liquidity in the pool itself to satisfy the loan.
The results of the swap will be held in smart-contract escrow, and can be liquidated if the risk of the debt gets too high. However, if the price moves favorably for the user, they can “unwind” the position to pay off the debt to the pool, and pocket the difference.
In return, the user pays an interest rate for the length of time the pool liquidity was borrowed.
For example, someone with 1000 ADA can swap against the ADA/RBERRY pool with 10x leverage, and the pool will calculate the swap as if it were 10,000 ADA. The resulting RBERRY will be held in a smart contract, accruing ADA interest. If the price of RBERRY goes down, the position can be liquidated, resulting in a net of 1000 ADA paid to the liquidity providers. If the price of RBERRY goes up, it can be sold back to the pool, and the user keeps the difference in ADA or RBERRY.
We have built a simple prototype of the solution, which can be found here: