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:
Nathaniel Parke 2021-03-19 12:58:11 +08:00 committed by GitHub
parent c96c5971fd
commit 50cbadc330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 5 deletions

View File

@ -1,2 +1,3 @@
REACT_APP_USDT_REFERRAL_FEES_ADDRESS=''
REACT_APP_USDC_REFERRAL_FEES_ADDRESS=''
REACT_APP_EXCLUDE_MARKETS=[]

2
.gitignore vendored
View File

@ -23,3 +23,5 @@ yarn-debug.log*
yarn-error.log*
.idea
.env

View File

@ -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)}>

View File

@ -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() {