Merge branch 'alpha' into main

This commit is contained in:
tjs 2022-12-29 03:24:06 -05:00
commit a4f9fa8846
3 changed files with 3 additions and 8 deletions

View File

@ -285,7 +285,6 @@ const SwapForm = () => {
routes={routes}
selectedRoute={selectedRoute}
setSelectedRoute={setSelectedRoute}
maintProjectedHealth={maintProjectedHealth}
/>
</Transition>
<EnterBottomExitBottom
@ -452,7 +451,7 @@ const SwapForm = () => {
<div className="flex justify-between">
<Tooltip content={t('trade:tooltip-slippage')} delay={250}>
<p className="tooltip-underline text-sm text-th-fgd-3">
Est. {t('swap:slippage')}
Price Impact
</p>
</Tooltip>
<p className="text-right font-mono text-sm text-th-fgd-2">

View File

@ -39,11 +39,9 @@ import useLocalStorageState from 'hooks/useLocalStorageState'
import { Howl } from 'howler'
import { INITIAL_SOUND_SETTINGS } from '@components/settings/SoundSettings'
import Tooltip from '@components/shared/Tooltip'
import HealthImpact from '@components/shared/HealthImpact'
type JupiterRouteInfoProps = {
amountIn: Decimal
maintProjectedHealth: number
onClose: () => void
routes: RouteInfo[] | undefined
selectedRoute: RouteInfo | undefined
@ -145,7 +143,6 @@ const successSound = new Howl({
const SwapReviewRouteInfo = ({
amountIn,
maintProjectedHealth,
onClose,
routes,
selectedRoute,
@ -406,7 +403,6 @@ const SwapReviewRouteInfo = ({
</p>
) : null}
</div>
<HealthImpact maintProjectedHealth={maintProjectedHealth} />
{borrowAmount ? (
<>
<div className="flex justify-between">
@ -465,7 +461,7 @@ const SwapReviewRouteInfo = ({
</>
) : null}
<div className="flex justify-between">
<p className="text-sm text-th-fgd-3">Est. {t('swap:slippage')}</p>
<p className="text-sm text-th-fgd-3">Price Impact</p>
<p className="text-right font-mono text-sm text-th-fgd-2">
{selectedRoute?.priceImpactPct * 100 < 0.1
? '<0.1%'

View File

@ -39,7 +39,7 @@ export const FAVORITE_MARKETS_KEY = 'favoriteMarkets-0.2'
export const THEME_KEY = 'theme-0.1'
export const RPC_PROVIDER_KEY = 'rpcProviderKey-0.3'
export const RPC_PROVIDER_KEY = 'rpcProviderKey-0.4'
// Unused
export const PROFILE_CATEGORIES = [