Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix leverage page #120

Merged
merged 39 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a5bff00
TinaCMS content update
tina-cloud-app[bot] May 17, 2024
c1c0c10
Update from TinaCMS
tina-cloud-app[bot] Jun 4, 2024
977d7ff
TinaCMS content update
tina-cloud-app[bot] Jun 4, 2024
07e1794
fix protocol fees image
jahabeebs Jun 4, 2024
d20c908
Update from TinaCMS
tina-cloud-app[bot] Jun 28, 2024
815f53e
Update from TinaCMS
tina-cloud-app[bot] Jun 28, 2024
dfed2f4
TinaCMS content update
tina-cloud-app[bot] Jun 28, 2024
c64e941
TinaCMS content update
tina-cloud-app[bot] Jun 28, 2024
414d243
TinaCMS content update
tina-cloud-app[bot] Jun 28, 2024
6b6f6f9
TinaCMS content update
tina-cloud-app[bot] Jun 28, 2024
443d493
TinaCMS content update
tina-cloud-app[bot] Jul 3, 2024
78c550c
Issue #112: Fix docs issues, add instructions for editing/publishing …
jahabeebs Jul 3, 2024
0e8e498
Merge remote-tracking branch 'refs/remotes/origin/main' into dev
jahabeebs Jul 3, 2024
99759a4
TinaCMS content update
tina-cloud-app[bot] Jul 5, 2024
3e748f0
TinaCMS content update
tina-cloud-app[bot] Jul 5, 2024
eb9a626
TinaCMS content update
tina-cloud-app[bot] Jul 5, 2024
5556faf
TinaCMS content update
tina-cloud-app[bot] Jul 5, 2024
6610239
Update `docs/-NFT-Vaults-.mdx`
Jul 9, 2024
1f4d0a4
Update `docs/api/api-endpoints.mdx`
Jul 9, 2024
174d534
TinaCMS content update
tina-cloud-app[bot] Jul 9, 2024
97d892c
TinaCMS content update
tina-cloud-app[bot] Jul 9, 2024
f0d6a73
TinaCMS content update
tina-cloud-app[bot] Jul 9, 2024
d233318
TinaCMS content update
tina-cloud-app[bot] Jul 9, 2024
804d1d0
Merge branch 'main' into dev
jahabeebs Jul 9, 2024
3358abb
Update `docs/-Open-Dollar-Introduction-.mdx`
Jul 10, 2024
4f06b59
Update `docs/-Governance-.mdx`
Jul 10, 2024
74aa895
Update `docs/PID-Controller.mdx`
Jul 10, 2024
1231198
Update `docs/Who-is-Open-Dollar-built-for.mdx`
Jul 10, 2024
1579f4f
Update `docs/How-OD-Stays-Stable.mdx`
Jul 10, 2024
b975b20
TinaCMS content update
tina-cloud-app[bot] Jul 11, 2024
9844308
TinaCMS content update
tina-cloud-app[bot] Jul 11, 2024
c3ecbb4
TinaCMS content update
tina-cloud-app[bot] Jul 11, 2024
e8877ac
TinaCMS content update
tina-cloud-app[bot] Jul 11, 2024
5bb0f3e
TinaCMS content update
tina-cloud-app[bot] Jul 17, 2024
0130ebd
add governance simulator
jahabeebs Jul 17, 2024
3b50d5c
Merge branch 'main' into dev
jahabeebs Jul 19, 2024
684556a
Update Leverage.mdx
TimKingery Jul 22, 2024
11caee4
add slashes
jahabeebs Jul 22, 2024
a0a118f
Merge branch 'main' into dev
jahabeebs Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 32 additions & 31 deletions docs/Leverage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ description: A case study on leveraging a vault with Open Dollar

Leveraging a vault position involves using borrowed funds to purchase more of the collateral asset with the goal of increasing yields. This process can be repeated a number of times until the desired values are reached. With each step of leverage, a number of key values change, usually in the same direction after step 1.

Below is a case study of the leverage process using a position of wstETH on Open Dollar, the recent average value of wstETH at the time of writing ($4,000) and its [historical](https://dune.com/queries/570874/4069098) average APY, both of which fluctuate. The user’s objective in this scenario is to maximize their yield while maintaining a collateralization ratio of at least 140%.
Below is a case study of the leverage process using a position of wstETH on Open Dollar, the recent average value of wstETH at the time of writing (\$4,000) and its [historical](https://dune.com/queries/570874/4069098) average APY, both of which fluctuate. The user’s objective in this scenario is to maximize their yield while maintaining a collateralization ratio of at least 140%.

**Disclaimer:** This is not financial advice.

Initial Funds: 10 wstETH ($40,000)
Initial Funds: 10 wstETH (\$40,000)

Net APY: $1,520 (10 wstETH x 3.8% APY)
Net APY: \$1,520 (10 wstETH x 3.8% APY)

Example vault parameters for wstETH:

Expand All @@ -25,33 +25,33 @@ Example vault parameters for wstETH:

User deposits the full amount of collateral, 10 wstETH, and borrows the maximum amount of OD, which they then use to purchase the maximum amount of wstETH and deposit it into the vault.

* Current Collateral Value (Before Borrowing): 10.00 wstETH ($40,000)
* OD Borrowed: $32,000
* Total Borrowed Value (OD): $32,000
* Current Collateral Value (Before Borrowing): 10.00 wstETH (\$40,000)
* OD Borrowed: \$32,000
* Total Borrowed Value (OD): \$32,000
* wstETH Purchased: 8.00
* New Collateral Value: 18.00 wstETH ($72,000)
* New Collateral Value: 18.00 wstETH (\$72,000)
* New Collateralization Ratio: 225.00%
* Leverage Multiple: 1.80x
* Liquidation Threshold: $1,481.48 per wstETH
* Net APY: 5.36% ($2,144)
* Liquidation Threshold: \$1,481.48 per wstETH
* Net APY: 5.36% (\$2,144)

Upon the first step of leverage, the user has nearly doubled their deposited collateral value and built a position with a very high collateralization ratio, very low liquidation threshold relative to the current price of wstETH, and increased their net APY by 41.05% compared to their original yield. While leveraging a position typically carries more risk, the collateral ratio upon this step is relatively safe compared to un-levered CDPs.

## Step 2

In the second step of leverage, the same process is repeated: The user borrows the maximum amount of OD after depositing the newly purchased wstETH collateral.

* Current Collateral Value (Before Borrowing): 18.00 wstETH ($72,000)
* OD Borrowed: $25,600
* Total Borrowed Value (OD): $57,600
* Current Collateral Value (Before Borrowing): 18.00 wstETH (\$72,000)
* OD Borrowed: \$25,600
* Total Borrowed Value (OD): \$57,600
* wstETH Purchased: 6.40
* New Collateral Value: 24.40 wstETH ($97,600)
* New Collateral Value: 24.40 wstETH (\$97,600)
* New Collateralization Ratio: 169.44%
* Leverage Multiple: 2.44x
* Liquidation Threshold: $1,967.21 per wstETH
* Net APY: 6.61% ($2,644)
* Liquidation Threshold: \$1,967.21 per wstETH
* Net APY: 6.61% (\$2,644)

With the position now leveraged to a multiple of 2.44x, the net APY of 6.61%(\$2,644) is an increase of 73.95% of the original of 3.8%($1,520), inclusive of borrowing fees. Note that the liquidation threshold has also risen and the collateralization ratio has dropped relative to the previous step.
With the position now leveraged to a multiple of 2.44x, the net APY of 6.61%(\$2,644) is an increase of 73.95% of the original of 3.8%(\$1,520), inclusive of borrowing fees. Note that the liquidation threshold has also risen and the collateralization ratio has dropped relative to the previous step.


## The Trend
Expand Down Expand Up @@ -79,31 +79,32 @@ As more collateral is purchased from additional borrowing, the net yield, liquid

In the third step of leverage, the same process is repeated: 

* Current Collateral Value (Before Borrowing): 24.40 wstETH ($97,600)
* OD Borrowed: $20,480
* Total Borrowed Value (OD): $78,080.00
* Current Collateral Value (Before Borrowing): 24.40 wstETH (\$97,600)
* OD Borrowed: \$20,480
* Total Borrowed Value (OD): \$78,080.00
* wstETH Purchased: 5.12
* New Collateral Value: 29.52 wstETH ($118,080)
* New Collateral Value: 29.52 wstETH (\$118,080)
* New Collateralization Ratio: 151.23%
* Leverage Multiple: 2.95x
* Liquidation Threshold: $2,204.16 per wstETH
* Net APY: 7.61% ($3,044)
* Liquidation Threshold: \$2,204.16 per wstETH
* Net APY: 7.61% (\$3,044)

## Step 4 - Target Reached

* Current Collateral Value (Before Borrowing): 29.52 wstETH ($118,080)
* OD Borrowed: $18,816
* Total Borrowed Value (OD): $94,464
* Current Collateral Value (Before Borrowing): 29.52 wstETH (\$118,080)
* OD Borrowed: \$18,816
* Total Borrowed Value (OD): \$94,464
* wstETH Purchased: 4.10
* New Collateral Value: 33.62 wstETH ($134,464)
* New Collateral Value: 33.62 wstETH (\$134,464)
* New Collateralization Ratio: 142.34%
* Leverage Multiple: 3.36x
* Liquidation Threshold: $2,341.74 per wstETH
* Net APY: 8.41% ($3,364)
* Liquidation Threshold: \$2,341.74 per wstETH
* Net APY: 8.41% (\$3,364)

In the final step, the user reaches their target collateralization ratio with a leveraged position of 3.36x more wstETH collateral than their original amount of 10 wstETH. They now have nearly \$118,080 in wstETH and a 121.32% greater net yield of 8.41% ($3,364) versus their original yield of only 3.8% (\$1,520), inclusive of the 1.85% APR borrowing fees.

In the final step, the user reaches their target collateralization ratio with a leveraged position of 3.36x more wstETH collateral than their original amount of 10 wstETH. They now have nearly \$118,080 in wstETH and a 121.32% greater net yield of 8.41% (\$3,364) versus their original yield of only 3.8% (\$1,520), inclusive of the 1.85% APR borrowing fees.

The liquidation threshold is now at $2,341.74, or roughly 41.5% less than the market price of wstETH when they began. Depending on the risk tolerance and yield goals of the user, they could continue, but in this scenario, they have reached their target and are comfortable with these values.

We hope you enjoyed this case study on leveraging your vault. As reflected on our [Roadmap](https://www.notion.so/opendollar/d276e9d464d6478cacf86c2d75e21982?v=24d2ad15c92c4a3895c6066bfac2e303\&pvs=4), a selectable leverage slider is planned for release that will automatically loop your vault to the desired leverage value without repeating this process manually. If you have any questions, feel free to ask us in our[ Discord](https://discord.com/invite/UbTUfuGBrS)!
The liquidation threshold is now at \$2,341.74, or roughly 41.5% less than the market price of wstETH when they began. Depending on the risk tolerance and yield goals of the user, they could continue, but in this scenario, they have reached their target and are comfortable with these values.

We hope you enjoyed this case study on leveraging your vault. As reflected on our [Roadmap](https://www.notion.so/opendollar/d276e9d464d6478cacf86c2d75e21982?v=24d2ad15c92c4a3895c6066bfac2e303&pvs=4), a selectable leverage slider is planned for release that will automatically loop your vault to the desired leverage value without repeating this process manually. If you have any questions, feel free to ask us in our[ Discord](https://discord.com/invite/UbTUfuGBrS)!
Loading