From 48d89fa22bd8917b08be76bc5da0292855ac496c Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Wed, 28 Jul 2021 09:39:59 +0200 Subject: [PATCH] format all & set prod base url --- components/ContentSectionAbout.tsx | 208 +++++++++++++++-------------- components/ContentSectionLead.tsx | 2 - components/ContentSectionRisks.tsx | 141 ++++++++++--------- components/HeroSection.tsx | 3 +- components/StatsModal.tsx | 6 +- pages/_app.tsx | 2 +- stores/useWalletStore.tsx | 4 +- tailwind.config.js | 2 - 8 files changed, 191 insertions(+), 177 deletions(-) diff --git a/components/ContentSectionAbout.tsx b/components/ContentSectionAbout.tsx index 758db90..0158809 100644 --- a/components/ContentSectionAbout.tsx +++ b/components/ContentSectionAbout.tsx @@ -4,10 +4,9 @@ import GradientText from './GradientText' const ContentSectionAbout = () => { return ( <> - -
-
- {/* Section 1 +
+
+ {/* Section 1

It is still the early days. @@ -125,92 +124,94 @@ const ContentSectionAbout = () => {

*/} -
-
-

- Why release MNGO token? -

-

- The MNGO token in its inception will serve 3 primary purposes. -

-
+
+
+

+ Why release MNGO token? +

+

+ The MNGO token in its inception will serve 3 primary purposes. +

+
-
-
-
-
-
-

- Capitalize the Insurance Fund -

-

- The Mango protocol relies on lenders to provide capital for - the others to use for trading and borrowing. The capital in - the Insurance Fund will be used to compensate lenders in the - unlikely event they incur losses. -

-
-
-

- Govern the Mango DAO -

-

- MNGO tokens represent a direct stake in the Mango DAO. The - future direction of the Mango Protocol will be decided by - voting on proposals using MNGO tokens as the voting - mechanism. -

-
-
-

- Incentivize liquidity -

-

- Bootstrapping liquidity is important in a new trading - system. Incentivizing market makers to provide it on our - order books with MNGO tokens will benefit the protocol - and its participants. -

-
-
-
-

Token distribution

- -
-
- - 90% - +
+
+
+
+
+

+ Capitalize the Insurance Fund +

+

+ The Mango protocol relies on lenders to provide capital + for the others to use for trading and borrowing. The + capital in the Insurance Fund will be used to compensate + lenders in the unlikely event they incur losses. +

+
+
+

+ Govern the Mango DAO +

+

+ MNGO tokens represent a direct stake in the Mango DAO. + The future direction of the Mango Protocol will be + decided by voting on proposals using MNGO tokens as the + voting mechanism. +

+
+
+

+ Incentivize liquidity +

+

+ Bootstrapping liquidity is important in a new trading + system. Incentivizing market makers to provide it on our + order books with MNGO tokens will benefit the protocol + and its participants. +

+
- {/* +
+

+ Token distribution +

+ +
+
+ + 90% + +
+ {/*
10%
*/} -
- - 5% - -
-
- - 5% - -
-
-
-
-

- Mango DAO -

-

- 90% of MNGO tokens will be locked in a smart contract, - only accessible via DAO governance votes. -

-
- {/* +
+ + 5% + +
+
+ + 5% + +
+
+
+
+

+ Mango DAO +

+

+ 90% of MNGO tokens will be locked in a smart contract, + only accessible via DAO governance votes. +

+
+ {/*

Liquidity incentives @@ -221,33 +222,34 @@ const ContentSectionAbout = () => {

*/} -
-

- Insurance Fund -

-

- 5% of MNGO tokens will be used to capitalize the Insurance - Fund that will protect lenders in the Mango Protocol. -

-
-
-

- Contributor tokens -

-

- 5% will be distributed to the team and early contributors. - These tokens are unlocked. -

+
+

+ Insurance Fund +

+

+ 5% of MNGO tokens will be used to capitalize the + Insurance Fund that will protect lenders in the Mango + Protocol. +

+
+
+

+ Contributor tokens +

+

+ 5% will be distributed to the team and early + contributors. These tokens are unlocked. +

+
+
-
-
-
- +
+ ) } diff --git a/components/ContentSectionLead.tsx b/components/ContentSectionLead.tsx index 3c6ebb5..f6dbfa4 100644 --- a/components/ContentSectionLead.tsx +++ b/components/ContentSectionLead.tsx @@ -1,9 +1,7 @@ - const ContentSectionLead = () => { return (
- {/* Section 2 */}

diff --git a/components/ContentSectionRisks.tsx b/components/ContentSectionRisks.tsx index 4ecdab4..beb018f 100644 --- a/components/ContentSectionRisks.tsx +++ b/components/ContentSectionRisks.tsx @@ -3,79 +3,94 @@ const ContentSectionRisks = () => { return ( <> -{/* Section 3 */} + {/* Section 3 */}
-
-

- Transparency builds trust. -

-

- There are risks in participating in the token sale. It's - important you understand them before deciding to commit your - funds. -

-
+
+

+ Transparency builds trust. +

+

+ There are risks in participating in the token sale. It's + important you understand them before deciding to commit your + funds. +

+
-
-
-

- Unaudited smart contracts -

-
-

- We take great care and forethought in the way we design our smart contracts. We make their source code publicly accessible in order to get peer reviewed by as many experts possible. -
-
- Still we cannot guarantee that our products are free of exploits, when we launch. -

-
-
-
-

- New token sale mechanism -

-

- The Mango token sale was designed with the goal of being as fair as possible to all participants. - However, there is a mechanism by which one or more participants with large amounts of capital could - discourage others from participating in the token sale. -
-
- During the deposit phase, these participants - could deposit very large amounts of USDC. This would drive up the average price of the token and - potentially discourage others from participating in the sale. -
-
Then, during the last minute - of the withdrawal phase, these large participants could withdraw much of their USDC, thus - receiving a much lower average price, depending on how successful they were at discouraging others. -
-
- Therefore, all participants should be aware of this potential behaviour during the sale and - make their best decisions accordingly. -

-
-
-

- Inlationary Tokenomics -

-

- Mango will be running its own on-chain order books to allow perpetual swap trading. In order to attract sophisticed traders with the technical expertise to become market makers, the protocol will need to provide very generous liquidity mining rewards. -
-
- We were inspired from bitcoins emission schedule in our design, but the mechanism is genuinely unproven in this context and potentially could be exploited. Even if it operates correctly, distributing MNGO from the DAO will be inflationary. -
-
- {/* +

+
+

+ Unaudited smart contracts +

+
+

+ We take great care and forethought in the way we design our + smart contracts. We make their source code publicly accessible + in order to get peer reviewed by as many experts possible. +
+
+ Still we cannot guarantee that our products are free of + exploits, when we launch. +

+
+
+
+

+ New token sale mechanism +

+

+ The Mango token sale was designed with the goal of being as fair + as possible to all participants. However, there is a mechanism + by which one or more participants with large amounts of capital + could discourage others from participating in the token sale. +
+
+ During the deposit phase, these participants could deposit very + large amounts of USDC. This would drive up the average price of + the token and potentially discourage others from participating + in the sale. +
+
+ Then, during the last minute of the withdrawal phase, these + large participants could withdraw much of their USDC, thus + receiving a much lower average price, depending on how + successful they were at discouraging others. +
+
+ Therefore, all participants should be aware of this potential + behaviour during the sale and make their best decisions + accordingly. +

+
+
+

+ Inlationary Tokenomics +

+

+ Mango will be running its own on-chain order books to allow + perpetual swap trading. In order to attract sophisticed traders + with the technical expertise to become market makers, the + protocol will need to provide very generous liquidity mining + rewards. +
+
+ We were inspired from bitcoins emission schedule in our design, + but the mechanism is genuinely unproven in this context and + potentially could be exploited. Even if it operates correctly, + distributing MNGO from the DAO will be inflationary. +
+
+ {/* Learn about it in the docs */} -

-
+

+
- + ) } diff --git a/components/HeroSection.tsx b/components/HeroSection.tsx index 15c1b64..5ff2869 100644 --- a/components/HeroSection.tsx +++ b/components/HeroSection.tsx @@ -12,7 +12,8 @@ const HeroSection = () => { Claim your stake in the Mango DAO.

- Join us in building Mango, the protocol for permissionless leverage trading & lending. + Join us in building Mango, the protocol for permissionless + leverage trading & lending.

diff --git a/components/StatsModal.tsx b/components/StatsModal.tsx index 6e1af29..528ff26 100644 --- a/components/StatsModal.tsx +++ b/components/StatsModal.tsx @@ -67,9 +67,9 @@ const StatsModal = () => {
{vaults.mangoBalance}
-
+
- {/*

+ {/*

Start: {startIdo?.fromNow()} ({startIdo?.format()})

@@ -80,7 +80,7 @@ const StatsModal = () => {

Current USDC in Pool: {vaults.usdc?.balance || 'N/A'}

Locked MNGO in Pool: {vaults.mango?.balance || 'N/A'}

*/} -
+
) diff --git a/pages/_app.tsx b/pages/_app.tsx index f575d5a..bf2d838 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -11,7 +11,7 @@ function App({ Component, pageProps }) { 'Claim your stake in the Mango DAO. Join us in building Mango, the protocol for permissionless leverage trading & lending.' const keywords = 'Mango Markets, Serum, SRM, Serum DEX, DEFI, Decentralized Finance, Decentralised Finance, Crypto, ERC20, Ethereum, Decentralize, Solana, SOL, SPL, Cross-Chain, Trading, Fastest, Fast, SerumBTC, SerumUSD, SRM Tokens, SPL Tokens' - const baseUrl = 'https://deploy-preview-6--mango-token-sale.netlify.app' + const baseUrl = 'https://mango-token-sale.netlify.app' return ( <> diff --git a/stores/useWalletStore.tsx b/stores/useWalletStore.tsx index e211d78..6cddea1 100644 --- a/stores/useWalletStore.tsx +++ b/stores/useWalletStore.tsx @@ -38,9 +38,9 @@ export const ENDPOINTS: EndpointInfo[] = [ programId: 'CRU6hX2GgtdabESgkoMswMrUdRFxHhCVYmS292VN1Nnn', // owned by governance //poolKey: 'GvSyVjGwLBeWdURMLDmSffQPqA8g547A6TURbbBnDpa4', // governance test // poolKey: '82ndgp58GXpwuLrEc9svHFdhiEsPaZoNUEWwgc79WHqk', // already over - poolKey: '5heMyYtJK1Us9Hx2w6s5rLDNj8RufeyCR1ZUJAVFLQL7', // long deposits + poolKey: '5heMyYtJK1Us9Hx2w6s5rLDNj8RufeyCR1ZUJAVFLQL7', // long deposits // poolKey: '7Dr2Ksnz5evoT9mEUgvvkmirH8KDC99b5oVPHbqSpx4K', // short deposit - //poolKey: 'CdKyD4Qazo72Bm6SsPBWrT1AnH1NEuoUzvQg7b67EBac', // not started yet + //poolKey: 'CdKyD4Qazo72Bm6SsPBWrT1AnH1NEuoUzvQg7b67EBac', // not started yet }, { name: 'localnet', diff --git a/tailwind.config.js b/tailwind.config.js index c614773..445a8f3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -22,13 +22,11 @@ module.exports = { 'risk-two': "url('../public/img/risk2.png')", 'risk-three': "url('../public/img/risk3.png')", 'risk-four': "url('../public/img/risk4.png')", - }), height: { 550: '550px', 650: '650px', 750: '750px', - }, cursor: { help: 'help',