We're going back to basics with pJar 0.88, allowing users to deposit base-currencies such as DAI, USDT, USDC, etc. The first pJar 0.88a will support DAI, and will be launched with a leveraged COMP mining strategy.
Using the deposited base-currency tokens, pJar 0.88 receives and re-invests COMP for you so you end up having more of the underlying base currency.
Leveraging mining COMP is achieved by recursively supplying and borrowing a single asset. Note that the act of supplying or borrowing assets on compound will yield us COMP tokens.
For example, if DAI has a collateral factor of 0.75, and we have supplied 100 DAI, we can borrow out a maximum of 75 DAI. We can resupply our borrowed 75 DAI, giving us a total of 175 supplied DAI and 75 borrowed DAI. We can now borrow an additional 56.25 DAI (175 * 0.75 - 75) and resupply it. We can keep repeating this supply and borrow loop until we hit a certain threshold.
The formula for calculating the maximum amount of leverage we can achieve is
Which can be expressed as an infinite geometric series:
However, leverage mining COMP at max leverage is incredibly dangerous due to the difference in the supply/borrow interest rates. As such, the strategies launched will be employing an initial safety buffer of 0.10 collateral factor. Meaning the maximum safe leverage will be rougly 2.86.