diff --git a/components/governance/OnBoarding.tsx b/components/governance/OnBoarding.tsx index 0c3bc2c1..e96ac7ce 100644 --- a/components/governance/OnBoarding.tsx +++ b/components/governance/OnBoarding.tsx @@ -49,7 +49,9 @@ const OnBoarding = ({ minVotes }: { minVotes?: BN }) => { } - desc={t('on-boarding-deposit-info')} + desc={`${t('on-boarding-deposit-info')} ${t( + 'on-boarding-description-1' + )}`} /> ) : null diff --git a/components/modals/SharePositionModal.tsx b/components/modals/SharePositionModal.tsx index 620b9d6e..65f8969b 100644 --- a/components/modals/SharePositionModal.tsx +++ b/components/modals/SharePositionModal.tsx @@ -7,6 +7,7 @@ import { useScreenshot } from 'hooks/useScreenshot' import { useTranslation } from 'next-i18next' import { createRef, useEffect, useMemo, useState } from 'react' import { ModalProps } from 'types/modal' +import { ttCommons, ttCommonsExpanded, ttCommonsMono } from 'utils/fonts' import { formatNumericValue, getDecimalCount } from 'utils/numbers' interface SharePositionModalProps { @@ -86,7 +87,9 @@ const SharePositionModal = ({ aria-hidden="true" />
- +
{

{t('rpc')}

{t('rpc-provider')}

-
+
handleSetEndpointProvider(v)} @@ -138,7 +138,6 @@ const RpcSettings = () => { } /> @@ -601,6 +576,13 @@ const PerpPositions = () => { position={positionToShare!} /> ) : null} + {showMarketCloseModal && positionToClose ? ( + + ) : null} ) } diff --git a/components/trade/Slippage.tsx b/components/trade/Slippage.tsx index 5e396e43..68143b06 100644 --- a/components/trade/Slippage.tsx +++ b/components/trade/Slippage.tsx @@ -37,7 +37,7 @@ const Slippage = () => {

{t('trade:est-slippage')}

{t('trade:order-value')}

-

+

{orderValue ? : '–'}

diff --git a/hooks/useJupiterMints.ts b/hooks/useJupiterMints.ts index c12ca6e1..6e57aa52 100644 --- a/hooks/useJupiterMints.ts +++ b/hooks/useJupiterMints.ts @@ -1,5 +1,4 @@ import { Group } from '@blockworks-foundation/mango-v4' -import { WRAPPED_SOL_MINT } from '@project-serum/serum/lib/token-instructions' import { CLUSTER } from '@store/mangoStore' import { useQuery } from '@tanstack/react-query' import useMangoGroup from 'hooks/useMangoGroup' @@ -41,17 +40,6 @@ const useJupiterMints = (): { } ) - if (res?.data?.mangoTokens.length) { - const findSol = res.data.mangoTokens.find( - (t) => t.address === WRAPPED_SOL_MINT.toString() - ) - if (findSol) { - if (findSol.logoURI !== '/icons/sol.svg') { - findSol.logoURI = '/icons/sol.svg' - } - } - } - return { mangoTokens: res?.data?.mangoTokens || [], jupiterTokens: res?.data?.jupiterTokens || [], diff --git a/public/icons/btc.svg b/public/icons/btc.svg index 9a4133f3..8256e323 100644 --- a/public/icons/btc.svg +++ b/public/icons/btc.svg @@ -1,4 +1,3 @@ - - + diff --git a/public/icons/sol.svg b/public/icons/sol.svg index 64796e63..ecbb3400 100644 --- a/public/icons/sol.svg +++ b/public/icons/sol.svg @@ -1,26 +1,19 @@ - - - - - - - + + + - + - + - + - - - diff --git a/public/locales/en/governance.json b/public/locales/en/governance.json index 2318cc9e..dc833087 100644 --- a/public/locales/en/governance.json +++ b/public/locales/en/governance.json @@ -107,5 +107,6 @@ "create-switch-oracle": "Create switchboard oracle for", "estimated-oracle-cost": "Estimated cost with funding oracle for ~6 months 2.8 SOL", "create-oracle": "Create oracle", - "tier": "Tier" + "tier": "Tier", + "on-boarding-description-1": "If you want to use delegated tokens go to vote view and select wallet in top right corner." } \ No newline at end of file diff --git a/public/locales/en/trade.json b/public/locales/en/trade.json index f6e01aca..cbcc9b54 100644 --- a/public/locales/en/trade.json +++ b/public/locales/en/trade.json @@ -92,7 +92,7 @@ "total-pnl": "Total PnL", "trade-sounds-tooltip": "Play a sound alert for every new trade", "trades": "Trades", - "tweet-position": "Share to Twitter", + "tweet-position": "Tweet", "unrealized-pnl": "Unrealized PnL", "unsettled": "Unsettled", "volume-alert": "Volume Alert", diff --git a/public/locales/es/governance.json b/public/locales/es/governance.json index 2318cc9e..dc833087 100644 --- a/public/locales/es/governance.json +++ b/public/locales/es/governance.json @@ -107,5 +107,6 @@ "create-switch-oracle": "Create switchboard oracle for", "estimated-oracle-cost": "Estimated cost with funding oracle for ~6 months 2.8 SOL", "create-oracle": "Create oracle", - "tier": "Tier" + "tier": "Tier", + "on-boarding-description-1": "If you want to use delegated tokens go to vote view and select wallet in top right corner." } \ No newline at end of file diff --git a/public/locales/es/trade.json b/public/locales/es/trade.json index f6e01aca..cbcc9b54 100644 --- a/public/locales/es/trade.json +++ b/public/locales/es/trade.json @@ -92,7 +92,7 @@ "total-pnl": "Total PnL", "trade-sounds-tooltip": "Play a sound alert for every new trade", "trades": "Trades", - "tweet-position": "Share to Twitter", + "tweet-position": "Tweet", "unrealized-pnl": "Unrealized PnL", "unsettled": "Unsettled", "volume-alert": "Volume Alert", diff --git a/public/locales/ru/governance.json b/public/locales/ru/governance.json index 2318cc9e..dc833087 100644 --- a/public/locales/ru/governance.json +++ b/public/locales/ru/governance.json @@ -107,5 +107,6 @@ "create-switch-oracle": "Create switchboard oracle for", "estimated-oracle-cost": "Estimated cost with funding oracle for ~6 months 2.8 SOL", "create-oracle": "Create oracle", - "tier": "Tier" + "tier": "Tier", + "on-boarding-description-1": "If you want to use delegated tokens go to vote view and select wallet in top right corner." } \ No newline at end of file diff --git a/public/locales/ru/trade.json b/public/locales/ru/trade.json index f6e01aca..cbcc9b54 100644 --- a/public/locales/ru/trade.json +++ b/public/locales/ru/trade.json @@ -92,7 +92,7 @@ "total-pnl": "Total PnL", "trade-sounds-tooltip": "Play a sound alert for every new trade", "trades": "Trades", - "tweet-position": "Share to Twitter", + "tweet-position": "Tweet", "unrealized-pnl": "Unrealized PnL", "unsettled": "Unsettled", "volume-alert": "Volume Alert", diff --git a/public/locales/zh/governance.json b/public/locales/zh/governance.json index 2318cc9e..dc833087 100644 --- a/public/locales/zh/governance.json +++ b/public/locales/zh/governance.json @@ -107,5 +107,6 @@ "create-switch-oracle": "Create switchboard oracle for", "estimated-oracle-cost": "Estimated cost with funding oracle for ~6 months 2.8 SOL", "create-oracle": "Create oracle", - "tier": "Tier" + "tier": "Tier", + "on-boarding-description-1": "If you want to use delegated tokens go to vote view and select wallet in top right corner." } \ No newline at end of file diff --git a/public/locales/zh/trade.json b/public/locales/zh/trade.json index f6e01aca..cbcc9b54 100644 --- a/public/locales/zh/trade.json +++ b/public/locales/zh/trade.json @@ -92,7 +92,7 @@ "total-pnl": "Total PnL", "trade-sounds-tooltip": "Play a sound alert for every new trade", "trades": "Trades", - "tweet-position": "Share to Twitter", + "tweet-position": "Tweet", "unrealized-pnl": "Unrealized PnL", "unsettled": "Unsettled", "volume-alert": "Volume Alert", diff --git a/public/locales/zh_tw/governance.json b/public/locales/zh_tw/governance.json index 2318cc9e..dc833087 100644 --- a/public/locales/zh_tw/governance.json +++ b/public/locales/zh_tw/governance.json @@ -107,5 +107,6 @@ "create-switch-oracle": "Create switchboard oracle for", "estimated-oracle-cost": "Estimated cost with funding oracle for ~6 months 2.8 SOL", "create-oracle": "Create oracle", - "tier": "Tier" + "tier": "Tier", + "on-boarding-description-1": "If you want to use delegated tokens go to vote view and select wallet in top right corner." } \ No newline at end of file diff --git a/public/locales/zh_tw/trade.json b/public/locales/zh_tw/trade.json index f6e01aca..cbcc9b54 100644 --- a/public/locales/zh_tw/trade.json +++ b/public/locales/zh_tw/trade.json @@ -92,7 +92,7 @@ "total-pnl": "Total PnL", "trade-sounds-tooltip": "Play a sound alert for every new trade", "trades": "Trades", - "tweet-position": "Share to Twitter", + "tweet-position": "Tweet", "unrealized-pnl": "Unrealized PnL", "unsettled": "Unsettled", "volume-alert": "Volume Alert", diff --git a/store/mangoStore.ts b/store/mangoStore.ts index 852008b1..95d8da6d 100644 --- a/store/mangoStore.ts +++ b/store/mangoStore.ts @@ -279,7 +279,7 @@ const mangoStore = create()( if (typeof window !== 'undefined' && CLUSTER === 'mainnet-beta') { const urlFromLocalStorage = localStorage.getItem(RPC_PROVIDER_KEY) rpcUrl = urlFromLocalStorage - ? JSON.parse(urlFromLocalStorage).value + ? JSON.parse(urlFromLocalStorage) : ENDPOINT.url }