Skip to content

Commit

Permalink
Update TIP-70.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelthales authored Sep 13, 2022
1 parent b69338b commit db7f1b7
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions TIPs/TIP-70.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,44 @@
| TIP-68 | Thales vaults| Draft | Danijel (@danijelthales) | Introduce Thales Vaults | https://discord.gg/8bzFdpGTrp | 2022-07-18

## Simple Summary

Vaults will be a suite of automated trading strategies, where users can deposit funds that trade against Thales AMM.

## Motivation
Structured products are very popular in DeFi space. Thales unique offering allows for many interesting automated strategies to be implemented. Furthermore, the concept can be reused by external contributors to create their own automated stategies and allow users to deposit into those (similar to dhedge).

With the addition of AMM discounts, Vaults can be leveraged to balance the AMM, while offering longterm profitable returns to users depositing into vaults (as math says that with discounts the vault should be winning given enough time and sample, assuming BlackScholes pricing is correct). Depositing in such vaults is an almost an equivalent to providing liquidity into AMM.

This TIP is to establish general concepts of vaults, where specific vaults will be added ad hoc.
Due to complexity of managing vaults and its many parameters, I am asking to give pDAO freedom to add new vaults and adapt vault parameters ad hoc until the product matures and most popular vaults are establish and don't require continuous tuning.

## Specification
Base vault contract will be created that establish the following framework for vaults:
- Vaults run in rounds, e.g. 1 week
- Users can deposit for a round prior to the round start
- All trading that the vault does is permissionless (anyone can call the method to make a trade)
- A trade can only go through if it meets the generic and specific criteria of the vault itself and if there are enough unutilized funds in the vault
- All vaults will be diversified to not focus only on single assets with exact thresholds subject to change on specific vaults. Default values ensure that a specific vault during a trading round does not expose itself to more than 30% BTC options, 30% ETH options and no more than 10% of any other asset.
- Vault trades can only be made on markets that mature prior to the end of the round so that the vault PnL in a round can be calculated
- At any time prior to a new round starting, users that have deposited into existing round can signal that they want to leave the vault. If they don't, their funds are reused in the next round.
- All vaults will have a cap of how much can be deposited into them and a utilization rate variable that control how much of the funds can be utilized for trading

All protocol ran vaults will have keeper bots that check if a trade can be made and execute it, but anyone can call those methods.

The product will initially have two vaults:
- Deep in the money vault that buys only options above 80 cents that have 0 or negative skew impact (discounted)
- Discount chaser vault that only buys options at a discount higher than 2%

Variables values above are tentative and will be further refined.

Other vaults that are planned and will be supported in the future:
- Crab vault that buys IN tokens if the asset price is no more than 5% away from the middle of the IN range
- High volatility markets (buying OUT options close to current price outside the range)
- Max degen vault (only buying options with a max price of 15 cents and no skew impact)

## Specification
Vaults allow the community to get very creative and there is potential to create a UI where anyone will be ablle to run an automated strategy.

## Implementation
https://github.com/thales-markets/contracts/tree/feat/trading-vaults

## Copyright

Expand Down

0 comments on commit db7f1b7

Please sign in to comment.