diff --git a/components/ContentSection.tsx b/components/ContentSection.tsx index 3d5d1fc..a476d35 100644 --- a/components/ContentSection.tsx +++ b/components/ContentSection.tsx @@ -168,8 +168,10 @@ const ContentSection = () => {

- $MNGO were only - provided to contributors who helped build the + + $MNGO + {' '} + were only provided to contributors who helped build the protocol.

@@ -185,7 +187,8 @@ const ContentSection = () => { How it works.

- We take the view that token sales should be simple, transparent and fairly distributed. + We take the view that token sales should be simple, transparent and + fairly distributed.

@@ -214,7 +217,7 @@ const ContentSection = () => { 48 hour participation period.

- The event will span over 2 days split into two periods,{' '} + The event will span over 2 days split into two periods,{' '} Unrestricted {' '} @@ -229,7 +232,9 @@ const ContentSection = () => {

- During the unrestricted period, you may deposit or withdraw USDC from the vault. During the unrestricted period, the $MNGO price can fluctuate. + During the unrestricted period, you may deposit or + withdraw USDC from the vault. During the unrestricted + period, the $MNGO price can fluctuate.

@@ -240,7 +245,9 @@ const ContentSection = () => {

- After 24 hours deposits will be restricted and only withdrawals allowed. During the restricted period price can only go down. + After 24 hours deposits will be restricted and only + withdrawals allowed. During the restricted period + price can only go down.

@@ -285,7 +292,8 @@ const ContentSection = () => { MNGO unlocked and redeemable.

- On conclusion of the token sale, $MNGO will be distributed in proportion to your USDC contribution.{' '} + On conclusion of the token sale, $MNGO will be distributed + in proportion to your USDC contribution.{' '}

diff --git a/components/ContentSectionRedeem.tsx b/components/ContentSectionRedeem.tsx index 98eed18..61fb7e0 100644 --- a/components/ContentSectionRedeem.tsx +++ b/components/ContentSectionRedeem.tsx @@ -64,8 +64,10 @@ const ContentSection = () => {

- $MNGO were only - provided to contributors who helped build the + + $MNGO + {' '} + were only provided to contributors who helped build the protocol.

diff --git a/components/ContributionModal.tsx b/components/ContributionModal.tsx index b09eac1..bdc12dd 100644 --- a/components/ContributionModal.tsx +++ b/components/ContributionModal.tsx @@ -165,170 +165,170 @@ const ContributionModal = () => { return ( <> -
-
- {!submitted && - !submitting && - !editContribution && - !(connected && toLateToDeposit) && ( - <> -

The journey starts here.

-

When your're ready, deposit your USDC

- - )} - - {!submitted && - !submitting && - !editContribution && - connected && - toLateToDeposit && ( - <> -

We're sorry, you missed it.

-

Deposits are already closed

- - )} - - {!submitted && submitting && ( +
+
+ {!submitted && + !submitting && + !editContribution && + !(connected && toLateToDeposit) && ( <> -

Approve the transaction

-

Almost there...

+

The journey starts here.

+

When your're ready, deposit your USDC

)} - {submitted && !submitting && ( + {!submitted && + !submitting && + !editContribution && + connected && + toLateToDeposit && ( <> -

Your contribution amount

-

Thanks for contributing...

+

We're sorry, you missed it.

+

Deposits are already closed

)} - {editContribution && !submitting && ( - <> -

Funds unlocked

-

Increase or reduce your contribution...

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

Approve the transaction

+

Almost there...

+ + )} + + {submitted && !submitting && ( + <> +

Your contribution amount

+

Thanks for contributing...

+ + )} + + {editContribution && !submitting && ( + <> +

Funds unlocked

+

Increase or reduce your contribution...

)}
+ {submitting ? ( +
+ +
+ ) : ( + <> +
+
+
+ + + + + {connected ? ( + loading ? ( +
+ ) : ( + + {walletAmount.toFixed(2)} + + ) + ) : ( + '----' + )} + +
+
+ {submitted ? ( + handleEditContribution()} + > + Unlock + + ) : null} + handleMax()} + > + Max + +
+
+
+ {submitted ? ( + + ) : null} + {editContribution ? ( + + ) : null} + onChangeAmountInput(e.target.value)} + value={loading ? '' : contributionAmount} + suffix="USDC" + /> +
+
+
+ onChangeSlider(v)} + step={1} + maxButtonTransition={maxButtonTransition} + /> +
+
+ {errorMessage && ( +
+ + {errorMessage} +
+ )} +
+ +
+
+
+ +
+ + )} +
) } diff --git a/components/HeroSection.tsx b/components/HeroSection.tsx index b126680..bbed071 100644 --- a/components/HeroSection.tsx +++ b/components/HeroSection.tsx @@ -9,30 +9,22 @@ const HeroSection = () => {

- Claim your stake in the Mango Dao. + Claim your stake in the Mango Dao.

- The Mango Dao is a self-governance protocol building a decentralized financial ecosystem. By contributing you will have a stake in the future of the ecosystem and its products. + The Mango Dao is a self-governance protocol building a + decentralized financial ecosystem. By contributing you will have a + stake in the future of the ecosystem and its products.

+ + + + + Learn more + +
diff --git a/components/HeroSectionLead.tsx b/components/HeroSectionLead.tsx index 2f60a60..21c9880 100644 --- a/components/HeroSectionLead.tsx +++ b/components/HeroSectionLead.tsx @@ -12,7 +12,7 @@ const HeroSectionLead = () => {

Wen Token?

-

{startIdo.fromNow()}

+

{startIdo?.fromNow()}

diff --git a/components/HeroSectionRedeem.tsx b/components/HeroSectionRedeem.tsx index 51c3db8..9f901c9 100644 --- a/components/HeroSectionRedeem.tsx +++ b/components/HeroSectionRedeem.tsx @@ -1,25 +1,24 @@ import GradientText from './GradientText' -import RedeemModal - from './RedeemModal' +import RedeemModal from './RedeemModal' const HeroSectionRedeem = () => { return (
-
-
-

- The event has ended.
- It’s time to redeem your  - $MNGO -

-

- Thank you for your contributions, soon you will be able to help decide - the future of Mango. -

+
+
+

+ The event has ended.
+ It’s time to redeem your  + $MNGO +

+

+ Thank you for your contributions, soon you will be able to help + decide the future of Mango. +

+
+
+ +
-
- -
-
) } diff --git a/components/ModalSection.tsx b/components/ModalSection.tsx index e897c6c..7471fc6 100644 --- a/components/ModalSection.tsx +++ b/components/ModalSection.tsx @@ -4,8 +4,8 @@ import StatsModal from './StatsModal' const ModalSection = () => { return ( <> -
-
+
+

Ready to contribute?

@@ -17,8 +17,7 @@ const ModalSection = () => {
-
- +
) } diff --git a/components/NavBarBeta.tsx b/components/NavBarBeta.tsx index 0c97828..7946f43 100644 --- a/components/NavBarBeta.tsx +++ b/components/NavBarBeta.tsx @@ -402,11 +402,7 @@ const NavBarBeta = () => {
- +
diff --git a/components/PoolInfoCards.tsx b/components/PoolInfoCards.tsx index adfe414..2f4c0fd 100644 --- a/components/PoolInfoCards.tsx +++ b/components/PoolInfoCards.tsx @@ -24,13 +24,13 @@ const PoolInfoCards = () => { return (
- - - + + + - - - + + +
{
- -
- MNGO -
- {vaults.mangoBalance} -
+ +
+ MNGO +
+ {vaults.mangoBalance}
- - -
- USDC{' '} -
- {vaults.estimatedPrice - ? numberFormat.format(vaults.estimatedPrice) - : 'N/A'} -
+
+
+ +
+ USDC{' '} +
+ {vaults.estimatedPrice + ? numberFormat.format(vaults.estimatedPrice) + : 'N/A'}
- +
+
) } diff --git a/components/StatsModal.tsx b/components/StatsModal.tsx index 761c0cd..427e63b 100644 --- a/components/StatsModal.tsx +++ b/components/StatsModal.tsx @@ -1,10 +1,8 @@ - import PoolCountdown from './PoolCountdown' import useVaults from '../hooks/useVaults' import usePool from '../hooks/usePool' import 'twin.macro' - const StatsModal = () => { const vaults = useVaults() const { endIdo, endDeposits } = usePool() @@ -13,59 +11,57 @@ const StatsModal = () => { // ? (redeemableBalance * vaults.mango.balance) / vaults.usdc.balance // : 0 - const priceFormat = new Intl.NumberFormat('en-US', { maximumSignificantDigits: 4, }) - return ( <> -
-
-

Deposits Close

- -
- -
-

Withdrawals Close

- -
+
+
+

Deposits Close

+ +
-
-

Estimated Token Price

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

Total USDC Deposited

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

Locked MNGO in Pool

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

Withdrawals Close

+ +
- {/*

+

+

Estimated Token Price

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

Total USDC Deposited

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

Locked MNGO in Pool

+
+ mango +
+ {vaults.mangoBalance} +
+
+
+ + {/*

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

diff --git a/pages/RedeemPage.tsx b/pages/RedeemPage.tsx index bb08ada..87460bf 100644 --- a/pages/RedeemPage.tsx +++ b/pages/RedeemPage.tsx @@ -5,9 +5,9 @@ import HeroSectionRedeem from '../components/HeroSectionRedeem' const RedeemPage = () => { return ( <> - - - + + + ) }