diff --git a/components/ContentSection.tsx b/components/ContentSection.tsx index a9028a8..6c5ab1e 100644 --- a/components/ContentSection.tsx +++ b/components/ContentSection.tsx @@ -18,65 +18,62 @@ const ContentSection = () => { {/* Section 1 */} -
-
-
-
-
-
-

- What is Mango? -

-

- Mango is a decentralized autonomous organization. Its purpose is - to contribute maximum value for the defi ecosystem and its - developer community to create commercially viable decentralized - trading and lending products for traders. -

+
+
+
+
+
+
+

+ What is Mango? +

+

+ Mango is a decentralized autonomous organization. Its + purpose is to contribute maximum value for the defi + ecosystem and its developer community to create + commercially viable decentralized trading and lending + products for traders. +

-

- Why the{' '} - - Insurance fund - - ? -

-

- Mango protocol is powered by lenders providing their capital for - the community to use for trading and borrowing purposes. The - insurance fund is the last line of defense for protecting our - mango lenders. -

-
+

+ Why the Insurance fund? +

+

+ Mango protocol is powered by lenders providing their + capital for the community to use for trading and borrowing + purposes. The insurance fund is the last line of defense + for protecting our mango lenders. +

+
-
-

- What is the{' '} - $MNGO{' '} - token? -

-

- We believe that substantial rewards to a strong developer - community and liquidity incentives are the essential drivers for - growth and therefore the foundation of the Mango DAO. -

-

- Mango Governance tokens ($MNGO) will serve as the incentive for - those who can proove their work is useful to the DAO. -

- +
+

+ What is the $MNGO token? +

+

+ We believe that substantial rewards to a strong developer + community and liquidity incentives are the essential + drivers for growth and therefore the foundation of the + Mango DAO. +

+

+ Mango Governance tokens ($MNGO) will serve as the + incentive for those who can proove their work is useful to + the DAO. +

+ -

- $MNGO were only provided - to developers who helped to build out the protocol. -

+

+ $MNGO were only + provided to developers who helped to build out the + protocol. +

+
+
-
-
- {/* Section 2 */}
@@ -120,10 +117,7 @@ const ContentSection = () => { Unrestricted {' '} and{' '} - - Restricted - - . + Restricted.

diff --git a/components/ContributionModal.tsx b/components/ContributionModal.tsx index 34527f1..7cbea37 100644 --- a/components/ContributionModal.tsx +++ b/components/ContributionModal.tsx @@ -150,192 +150,191 @@ const ContributionModal = () => { return ( <> -
+
+
+
+ {!submitted && !submitting && !editContribution ? ( + <> +

This time has arrived.

+

When ready, depost your USDC

+ + ) : null} -
-
- {!submitted && !submitting && !editContribution ? ( - <> -

This time has arrived.

-

When ready, depost your USDC

- - ) : null} + {!submitted && submitting ? ( + <> +

Approve the transaction

+

Almost there...

+ + ) : null} - {!submitted && submitting ? ( - <> -

Approve the transaction

-

Almost there...

- - ) : null} + {submitted && !submitting ? ( + <> +

Your contribution amount

+

Thanks for contributing...

+ + ) : null} - {submitted && !submitting ? ( - <> -

Your contribution amount

-

Thanks for contributing...

- - ) : null} - - {editContribution && !submitting ? ( - <> -

Funds unlocked

-

Increase or reduce your contribution...

- - ) : null} -
- {submitting ? ( -
- + {editContribution && !submitting ? ( + <> +

Funds unlocked

+

Increase or reduce your contribution...

+ + ) : null}
- ) : ( - <> -
-
-
- - {connected ? ( - loading ? ( -
- ) : ( - - {walletAmount} - - ) - ) : ( - '----' - )} - -
-
- {submitted ? ( - handleEditContribution()} - > - Unlock - - ) : null} - handleMax()} - > - Max - -
-
-
- {submitted ? ( - - ) : null} - {editContribution ? ( - - ) : null} - onChangeAmountInput(e.target.value)} - value={loading ? '' : contributionAmount} - suffix="USDC" - /> -
+ {submitting ? ( +
+ +
+ ) : ( + <>
-
- +
+ + {connected ? ( + loading ? ( +
+ ) : ( + + {walletAmount} + + ) + ) : ( + '----' + )} + +
+
+ {submitted ? ( + handleEditContribution()} + > + Unlock + + ) : null} + handleMax()} + > + Max + +
+
+
+ {submitted ? ( + + ) : null} + {editContribution ? ( + + ) : null} + onChangeSlider(v)} - step={1} - maxButtonTransition={maxButtonTransition} + type="text" + onChange={(e) => onChangeAmountInput(e.target.value)} + value={loading ? '' : contributionAmount} + suffix="USDC" />
-
- {errorMessage && ( -
- - {errorMessage} -
- )} -
- +
+ {errorMessage && ( +
+ + {errorMessage} +
+ )} +
+ +
+
+
+ +
+ + )} +
+ +
+
+

Estimated Token Price

+
+ +
+ {priceFormat.format(vaults.estimatedPrice)}
-
- -
- - )} -
- -
-
-

Estimated Token Price

-
- -
- {priceFormat.format(vaults.estimatedPrice)} +
+
+

Total USDC Deposited

+
+
+ {vaults.usdcBalance} +
-
-
-

Total USDC Deposited

-
-
- {vaults.usdcBalance} +
+

Locked MNGO in Pool

+
+ mango +
+ {vaults.mangoBalance} +
-
-
-

Locked MNGO in Pool

-
- mango -
- {vaults.mangoBalance} -
+
+

Deposits Close

+
-
-
-

Deposits Close

- -
-
-

Withdrawals Close

- -
- {/*

+

+

Withdrawals Close

+ +
+ {/*

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

@@ -346,9 +345,8 @@ const ContributionModal = () => {

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

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

*/} +
- -
) } diff --git a/components/ModalSection.tsx b/components/ModalSection.tsx index 9d7571c..88468c1 100644 --- a/components/ModalSection.tsx +++ b/components/ModalSection.tsx @@ -1,20 +1,20 @@ -import ContributionModal from "./ContributionModal" +import ContributionModal from './ContributionModal' const ModalSection = () => { return ( - <> -
-

- It is still the early days. -

-

- This is the first moment for non-developers to participate in - helping build the Mango protocol by supporting the inception of the - protocols Insurance Fund. -

-
- - + <> +
+

+ It is still the early days. +

+

+ This is the first moment for non-developers to participate in helping + build the Mango protocol by supporting the inception of the protocols + Insurance Fund. +

+
+ + ) } diff --git a/components/PoolCountdown.tsx b/components/PoolCountdown.tsx index b426bbe..0faf029 100644 --- a/components/PoolCountdown.tsx +++ b/components/PoolCountdown.tsx @@ -15,9 +15,7 @@ const PoolCountdown = (props: { className?: string; date: moment.Moment }) => { return

{message}

} else { return ( -
+
{/* */} diff --git a/components/PoolInfoCards.tsx b/components/PoolInfoCards.tsx index dc6de04..748112f 100644 --- a/components/PoolInfoCards.tsx +++ b/components/PoolInfoCards.tsx @@ -25,13 +25,13 @@ const PoolInfoCards = () => { return (
- - - + + + - - - + + +
@@ -48,30 +48,30 @@ const PoolInfoCards = () => {
- -
- MNGO -
- {vaults.mangoBalance} + +
+ MNGO +
+ {vaults.mangoBalance} +
-
- - -
- USDC{' '} -
- {vaults.estimatedPrice - ? numberFormat.format(vaults.estimatedPrice) - : 'N/A'} + + +
+ USDC{' '} +
+ {vaults.estimatedPrice + ? numberFormat.format(vaults.estimatedPrice) + : 'N/A'} +
-
- +
)