From b7eb00d90c6b5c8f294ed328b03601ef52a4dc4c Mon Sep 17 00:00:00 2001
From: naturexie <786281870@qq.com>
Date: Wed, 15 Jan 2025 22:42:52 +0800
Subject: [PATCH] feat: update ui
---
.eslintrc.js | 1 +
screens/MarginTrading/index.tsx | 13 ++++++++++++-
utils/config.ts | 2 ++
utils/wallet-selector-compat.ts | 16 ++++++----------
4 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 37a27563..5c1cd863 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -84,6 +84,7 @@ module.exports = {
"no-await-in-loop": "off",
"no-lonely-if": "off",
"react/jsx-boolean-value": "off",
+ "react/no-unescaped-entities": "off",
},
settings: {
react: {
diff --git a/screens/MarginTrading/index.tsx b/screens/MarginTrading/index.tsx
index c0ea067f..6a317ecd 100644
--- a/screens/MarginTrading/index.tsx
+++ b/screens/MarginTrading/index.tsx
@@ -87,7 +87,18 @@ const MarginTrading = () => {
className="text-white text-center bg-dark-100 px-5 pt-9 pb-7 rounded-md border border-dark-300"
style={{ width: "278px" }}
>
-
Account is not whitelist.
+
+ Tradoors? It's beta version,{" "}
+ {
+ router.push("https://forms.gle/kEsoobXU8u55Fp8x7");
+ }}
+ >
+ submit whitelist
+ {" "}
+ form and come back in 24h
+
router.push("/")}
className="text-primary h4 underline cursor-pointer"
diff --git a/utils/config.ts b/utils/config.ts
index 498570c7..cfde969e 100644
--- a/utils/config.ts
+++ b/utils/config.ts
@@ -111,6 +111,8 @@ export const MARGIN_WHITELIST = [
"0xg1enn.near",
"bobbypack.near",
"itsmarcus.near",
+ "fc948c6698f446df71b438821b6b7d69df5ce8150c4ada62ebd84abcc771f468",
+ "zerobot.near",
];
export const DISABLE_WITHDRAW_ADDRESS = "bc1p";
const getConfig = (env: string = defaultNetwork) => {
diff --git a/utils/wallet-selector-compat.ts b/utils/wallet-selector-compat.ts
index 68fd99d8..741d8e01 100644
--- a/utils/wallet-selector-compat.ts
+++ b/utils/wallet-selector-compat.ts
@@ -153,15 +153,19 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr
} catch (error) {}
selector = await setupWalletSelector({
modules: [
+ setupMeteorWallet(),
setupEthereumWallets({
wagmiConfig,
web3Modal,
alwaysOnboardDuringSignIn: true,
} as any),
- setupOKXWallet({}),
+ setupBTCWallet({
+ autoConnect: true,
+ env: "private_mainnet",
+ }) as any,
myNearWallet,
+ setupOKXWallet({}),
setupSender() as any,
- setupMeteorWallet(),
walletConnect2,
setupNearMobileWallet({
dAppMetadata: {
@@ -171,10 +175,6 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr
}),
setupHereWallet(),
setupNightly(),
- setupNeth({
- bundle: false,
- gas: "300000000000000",
- }),
setupKeypom({
networkId: defaultNetwork,
signInContractId: LOGIC_CONTRACT_NAME,
@@ -198,10 +198,6 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr
deprecated: false,
}),
setupCoin98Wallet(),
- setupBTCWallet({
- autoConnect: true,
- env: "private_mainnet",
- }) as any,
],
network: {
networkId: defaultNetwork,