diff --git a/components/ContentSectionRedeem.tsx b/components/ContentSectionRedeem.tsx index 61fb7e0..b3888fd 100644 --- a/components/ContentSectionRedeem.tsx +++ b/components/ContentSectionRedeem.tsx @@ -1,206 +1,154 @@ import Button from './Button' -import GradientText from './GradientText' +import LinkLeft from './LinkLeft' +//import GradientText from "./GradientText" -const ContentSection = () => { +const ContentSectionRedeem = () => { return ( -
- This is the first moment for non-developers to participate in - helping build the Mango protocol by supporting the inception of the - protocol's Insurance Fund. -
-- 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. -
- -- 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. -
-- 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 prove their work is useful to - the DAO. -
- - -- - $MNGO - {' '} - were only provided to contributors who helped build the - protocol. -
-+ The journey has just begun, here's what happens next +
- We take the view that token sales should be simple, transparent and - minimize randomness and luck in the distribution. -
-- Users deposit USDC into a vault during the event period to - set their contribution amount. -
-- The event will span over a 2 day period split into two - sections,{' '} - - Unrestricted - {' '} - and{' '} - Restricted. -
-- - Unrestricted - -
-
- During the unrestricted period users may deposit or
- withdraw their USDC from the vault. During the
- unrestricted period price can fluctuate.
+
+ Mango is the first DAO on Solana to use on-chain
+ governance, this is a big step towrds complete
+ decentralization. It means that founding members do
+ not control the DAO, the DAO is actually controlled by
+ all of us; the MNGO holders.
+
-
- Restricted
-
-
- After 24 hours deposits will be restricted and only
- withdrawals allowed. During the restricted period
- price can only go down.
+
+ We all want MNGO to be traded on Mango V3 at launch.
+ This means MNGO needs liquidity on-par with other top
+ traded tokens on serum. There are no backroom deals,
+ no one officially to make markets for us.
+
+ With power comes great responsibility
+
+
+
+ As MNGO holders our highest responsibility is to
+ command and protect the DAO and it's value.
+ Holders have the responsibility to make the rules and
+ decide on the protocols future. Together we will build
+ the constitution, together we will push for progress,
+ together we will grow the protocol.{' '}
+ MNGO in the pool?
+
+
+
+ We will be creating a Raydium pool with incentives to
+ help provide initial liquidity but we also need the
+ community to add liquidity to the pool and orderbooks.
- Simple mechanisms are easier to build, explain, understand - and are harder to exploit. A transparent mechanism - increases participation because buyers are more confident - there are no hidden tricks that could harm them. -
-- Elements of luck engineered into the mechanism distribute - value randomly to those who are most willing to do the - arbitrary, worthless tasks to get the free value. -
- {/*- We believe all "excess" value should be captured - by token holders in the DAO. -
*/} ++ Provide liquidity on the upcoming perp markets, the + DAO will vote on liquidity incentives for perp + markets, +
++ Starts off with the feeling (heres what we've + done to keep mango decentralized) ends with the CTA of + (heres how you can help, heres what we need) +
++ rough tech roadmap with link to trello +
++ if you can help us build it, send us proposals the DAO + will vote on grants +
+- At event conclusion $MNGO gets distributed in propotion to - a users USDC contribution.{' '} -
+ ++ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation + ullamco laboris nisi ut aliquip ex ea commodo consequat.{' '} +
+When you're ready, deposit your USDC
+When you're ready, deposit your USDC.
> )} @@ -191,13 +191,13 @@ const ContributionModal = () => { toLateToDeposit && ( <>The sale period has ended
+The sale period has ended.
> )} {!submitted && submitting && ( <> -Almost there...
> )} @@ -205,21 +205,21 @@ const ContributionModal = () => { {submitted && !submitting && ( <>Unlock to edit your contribution amount
+Unlock to edit your contribution amount.
> )} {editContribution && !submitting && ( <>{endDeposits?.isBefore() && endIdo?.isAfter() ? 'You can only reduce your contribution during the grace period. Reducing cannot be reversed.' - : 'Increase or reduce your contribution'} + : 'Increase or reduce your contribution.'}
> )} diff --git a/components/FooterSection.tsx b/components/FooterSection.tsx index 5e3b045..c4dcaba 100644 --- a/components/FooterSection.tsx +++ b/components/FooterSection.tsx @@ -136,7 +136,7 @@ const FooterSection = () => { > Perpetual Futures {' '} -+
Thank you for your contributions, soon you will be able to help decide the future of Mango.
diff --git a/components/MangoPill.tsx b/components/MangoPill.tsx index 530aa3d..7abe6a3 100644 --- a/components/MangoPill.tsx +++ b/components/MangoPill.tsx @@ -1,11 +1,11 @@ -const MangoPill = () => { +const MangoPill = (props: any) => { return (- Soon + {props.children}
Cross-collateralized decentralized leveraged @@ -242,6 +242,37 @@ const NavBarBeta = () => {
+ Mango Market Caps +
++ The premier fashion choice for Mango lovers, + traders, and lenders. +
+Mango DAO
- - {/*Welcome to the DAO, let's build together.
*/} +Welcome to the DAO, let's build together.
> ) : null} {submitting ? ( <> -Almost there...
> ) : null} diff --git a/hooks/usePool.tsx b/hooks/usePool.tsx index c9206d4..0f4e38d 100644 --- a/hooks/usePool.tsx +++ b/hooks/usePool.tsx @@ -4,19 +4,19 @@ import useWalletStore from '../stores/useWalletStore' export default function usePool() { const pool = useWalletStore((s) => s.pool) - /* const startIdo = pool ? moment.unix(pool.startIdoTs.toNumber()) : undefined const endIdo = pool ? moment.unix(pool.endIdoTs.toNumber()) : undefined const endDeposits = pool ? moment.unix(pool.endDepositsTs.toNumber()) : undefined - */ + /* // override for announcement const unixTs = 1628553600 const startIdo = moment.unix(unixTs) const endDeposits = moment.unix(unixTs).add(1, 'days') const endIdo = moment.unix(unixTs).add(2, 'days') + */ return { pool, startIdo, endIdo, endDeposits } } diff --git a/idls/ido_pool.json b/idls/ido_pool.json index 6a4312a..3ad9ad2 100644 --- a/idls/ido_pool.json +++ b/idls/ido_pool.json @@ -397,6 +397,6 @@ } ], "metadata": { - "address": "CRU6hX2GgtdabESgkoMswMrUdRFxHhCVYmS292VN1Nnn" + "address": "6QXNNAPkPsWjd1j3qQJTvRFgSNPARMhF2tE8g1WeGyrM" } } diff --git a/public/img/redeem1.png b/public/img/redeem1.png new file mode 100644 index 0000000..8e648af Binary files /dev/null and b/public/img/redeem1.png differ diff --git a/public/img/redeem2.png b/public/img/redeem2.png new file mode 100644 index 0000000..c2dea56 Binary files /dev/null and b/public/img/redeem2.png differ diff --git a/public/img/redeem3.png b/public/img/redeem3.png new file mode 100644 index 0000000..ea8eacc Binary files /dev/null and b/public/img/redeem3.png differ diff --git a/public/img/redeem4.png b/public/img/redeem4.png new file mode 100644 index 0000000..8c2f3b4 Binary files /dev/null and b/public/img/redeem4.png differ diff --git a/public/img/redeem5.png b/public/img/redeem5.png new file mode 100644 index 0000000..d071e9e Binary files /dev/null and b/public/img/redeem5.png differ diff --git a/public/preview.jpg b/public/preview.jpg deleted file mode 100644 index 471aad1..0000000 Binary files a/public/preview.jpg and /dev/null differ diff --git a/stores/useWalletStore.tsx b/stores/useWalletStore.tsx index f1d8bea..7b9b619 100644 --- a/stores/useWalletStore.tsx +++ b/stores/useWalletStore.tsx @@ -26,10 +26,10 @@ import { calculateNativeAmountUnsafe } from '../utils/balance' export const ENDPOINTS: EndpointInfo[] = [ { name: 'mainnet-beta', - url: 'https://api.mainnet-beta.solana.com/', - websocket: 'https://api.mainnet-beta.solana.com/', - programId: '', - poolKey: '', + url: 'https://mango.rpcpool.com/', + websocket: 'https://mango.rpcpool.com/', + programId: '6QXNNAPkPsWjd1j3qQJTvRFgSNPARMhF2tE8g1WeGyrM', + poolKey: 'AHBj9LAjxStT2YQHN6QdfHKpZLtEVr8ACqeFgYcPsTnr', }, { name: 'devnet', @@ -52,7 +52,7 @@ export const ENDPOINTS: EndpointInfo[] = [ }, ] -const CLUSTER = 'devnet' +const CLUSTER = 'mainnet-beta' const ENDPOINT = ENDPOINTS.find((e) => e.name === CLUSTER) const DEFAULT_CONNECTION = new Connection(ENDPOINT.url, 'recent') const WEBSOCKET_CONNECTION = new Connection(ENDPOINT.websocket, 'recent') diff --git a/tailwind.config.js b/tailwind.config.js index 445a8f3..b8493ca 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -22,8 +22,13 @@ module.exports = { 'risk-two': "url('../public/img/risk2.png')", 'risk-three': "url('../public/img/risk3.png')", 'risk-four': "url('../public/img/risk4.png')", + 'redeem-one': "url('../public/img/redeem1.png')", + 'redeem-two': "url('../public/img/redeem2.png')", + 'redeem-three': "url('../public/img/redeem3.png')", + 'redeem-four': "url('../public/img/redeem4.png')", }), height: { + 350: '350px', 550: '550px', 650: '650px', 750: '750px',