From 7eba8a3d4f5c4ac4d121e9791fceea7bc438af29 Mon Sep 17 00:00:00 2001 From: saml33 Date: Mon, 2 Oct 2023 10:37:26 +1100 Subject: [PATCH] faq answers --- components/Footer.tsx | 2 +- components/faqs/FaqsPage.tsx | 138 ++++++++++++++++++++++++++++++++--- styles/globals.css | 2 +- tailwind.config.js | 4 +- 4 files changed, 132 insertions(+), 14 deletions(-) diff --git a/components/Footer.tsx b/components/Footer.tsx index 7157dde..943be4d 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -6,7 +6,7 @@ const Footer = () => { rel="noopener noreferrer" target="_blank" > - Powered by 🥭 + Powered by 🥭 ) diff --git a/components/faqs/FaqsPage.tsx b/components/faqs/FaqsPage.tsx index 12ca241..4d356f6 100644 --- a/components/faqs/FaqsPage.tsx +++ b/components/faqs/FaqsPage.tsx @@ -2,29 +2,147 @@ import { Disclosure } from '@headlessui/react' import { ChevronDownIcon } from '@heroicons/react/20/solid' const FAQS = [ + { + question: 'How does Boost! work?', + answer: ( +

+ Boost! works by incresing your position size by borrowing SOL and + swapping it to your chosen staking token. This means you earn more yield + from the staking token becuase you have a larger position size. As long + as this yield exceeds the rate of the SOL borrow you earn a premium and + because the staking token price downside is highly correlated to SOL + there is a lower risk of liquidation. +

+ ), + }, { question: 'How does unboosting work?', - answer: - 'Unboosting your position involves selling some of your stake deposits to repay any SOL borrowings. Once SOL debts are settled, you can retrieve your staked holdings. Be mindful that potential losses might occur due to factors like price changes, slippage, and transaction fees.', + answer: ( +

+ Unboosting works by selling your staking token to repay your SOL borrow + and withdrawing to your wallet. The staking token price increases vs SOL + over time so the longer you hold the position the more yield you earn. +

+ ), + }, + { + question: 'What are the risks?', + answer: ( + <> +

+ The following risks are non-exhaustive. It's important to have a + good understanding of these risks and how Boost! works before + depositing any funds +

+

Code

+

+ Boost! is an integration with the Mango v4 program. Although it is + open source and has been audited extensively, it's possible bugs + and exploits exist that could result in the loss of funds. It's + also possible for a bug in the UI to affect the ability to open and + close positions in a timely manner. +

+

Price Depeg

+

+ It's possible for the staking token price to diverge + significantly from the SOL price. A large drop in price could result + in postions being liquidated. Positions with higher leverage are more + exposed to this risk. +

+

Liquidity

+

+ Opening and closing positions on Boost! relies on swapping between the + staking tokens and SOL without significant price impact. During an + extreme market event there could be issues liquidating position + effectively. This could affect the liquidity available to open/close + positions. +

+

Oracles

+

+ The price data for Boost! comes from third party oracle providers. + It's possible for the data to be incorrect due to a failure with + the oracle provider. This could result in bad liquidations and loss of + funds. +

+

Yield Duration

+

+ When you borrow SOL to open a position on Boost! you'll be paying + interest on the borrowed amount instantaneously. The staking rewards + of the staking tokens is paid on a longer duration. This means you + could open a position and close it before earning any staking rewards + whilst paying interest to borrow SOL. +

+ + ), + }, + { + question: 'Where does the yield come from?', + answer: ( +

+ Every epoch the price of each staking token rises vs SOL. Boost! + increases the position size of your staking token by borrowing SOL. This + means you earn more of the staking reward every epoch. It's + important to account for the cost of borrowing SOL. This is displayed in + the UI. +

+ ), }, { question: 'Why is the max leverage different between tokens?', - answer: - 'The max leverage changes based on the asset and liability weights of the staked token which are determined by the Mango smart contract.', + answer: ( +

+ The Mango v4 program has a safety mechanism that reduces the leverage + available to tokens depending on how much of that token is deposited. + When the notional value of deposits exceeds this value the leverage is + scaled down. +

+ ), + }, + { + question: 'Why is my Ledger not working with Boost!?', + answer: ( +

+ If your Ledger isn't working it's most likely because it + doesn't support versioned transactions. +

+ ), }, { question: 'Is the contract audited?', - answer: - 'The underlying mango smart contract is audited by OtterSec https://osec.io/', + answer: ( +

+ The Mango v4 program is fully audited by{' '} + + Ottersec + + . Every update to the program also undergoes an audit before release. +

+ ), + }, + { + question: 'Who made Boost!?', + answer: ( +

+ Boost! is made and maintained by long-term contributors to{' '} + + Mango Dao + + . +

+ ), }, ] const FaqsPage = () => { return (
-

FAQs

+

FAQs

- + {/* {({ open }) => (
{
)} -
+
*/} {FAQS.map((faq) => { const { question, answer } = faq return ( @@ -166,7 +284,7 @@ const FaqsPage = () => {
-

{answer}

+ {answer}
)} diff --git a/styles/globals.css b/styles/globals.css index 1fb1255..9170131 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -187,7 +187,7 @@ li { } a { - @apply default-transition text-th-fgd-1 md:hover:text-th-fgd-3; + @apply default-transition text-th-link md:hover:text-th-link-hover; } /* Forms */ diff --git a/tailwind.config.js b/tailwind.config.js index b3f3448..806c8db 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -29,7 +29,7 @@ module.exports = { border: 'hsl(0, 0%, 33%)', borderDark: 'hsl(0, 0%, 23%)', }, - link: { DEFAULT: 'hsl(33, 100%, 57%)', hover: 'hsl(33, 100%, 52%)' }, + link: { DEFAULT: '#889FD3', hover: '#728DC8' }, error: '#EA6161', success: '#51E44E', warning: '#EAB348', @@ -60,7 +60,7 @@ module.exports = { border: 'hsl(0, 0%, 32%)', borderDark: 'hsl(0, 0%, 22%)', }, - link: { DEFAULT: 'hsl(45, 86%, 62%)', hover: 'hsl(45, 86%, 57%)' }, + link: { DEFAULT: '#E29997', hover: '#B57A79' }, error: '#EA6161', success: '#51E44E', warning: '#EAB348',