Setup to migrate from wrapped Sollet USDT to Native USDT (#66)
* Move USDT -> WUSDT and add native USDT markets * Fix exclude markets * change wording on deprecated page
This commit is contained in:
parent
c96c5971fd
commit
50cbadc330
|
@ -1,2 +1,3 @@
|
|||
REACT_APP_USDT_REFERRAL_FEES_ADDRESS=''
|
||||
REACT_APP_USDC_REFERRAL_FEES_ADDRESS=''
|
||||
REACT_APP_EXCLUDE_MARKETS=[]
|
|
@ -23,3 +23,5 @@ yarn-debug.log*
|
|||
yarn-error.log*
|
||||
|
||||
.idea
|
||||
|
||||
.env
|
||||
|
|
|
@ -30,12 +30,12 @@ export default function DeprecatedMarketsInstructions({ switchToLiveMarkets }) {
|
|||
return (
|
||||
<FloatingElement>
|
||||
<Title level={4} style={{ color: 'rgba(255, 255, 255, 1)' }}>
|
||||
Migrate to Serum DEX V3 markets
|
||||
Migrate new markets
|
||||
</Title>
|
||||
<Typography>
|
||||
Markets on older versions of the DEX are now deprecated. To migrate over
|
||||
to the new markets, please cancel your orders and settle your funds on
|
||||
old markets.
|
||||
Markets on older versions of the DEX or using Wrapped USDT are now deprecated. To migrate over
|
||||
to the new markets, please cancel your orders and settle your funds on old markets. To convert
|
||||
from Wrapped USDT to Native USDT use sollet.io.
|
||||
</Typography>
|
||||
<div style={{ marginTop: 20, display: 'flex', justifyContent: 'center' }}>
|
||||
<Button onClick={() => refresh(true)}>
|
||||
|
|
|
@ -51,7 +51,7 @@ export const USE_MARKETS: MarketInfo[] = _IGNORE_DEPRECATED
|
|||
: MARKETS;
|
||||
|
||||
export function useMarketsList() {
|
||||
return USE_MARKETS.filter(({ deprecated }) => !deprecated);
|
||||
return USE_MARKETS.filter(({ name, deprecated }) => !deprecated && !process.env.REACT_APP_EXCLUDE_MARKETS?.includes(name));
|
||||
}
|
||||
|
||||
export function useAllMarkets() {
|
||||
|
|
Loading…
Reference in New Issue