diff --git a/src/App.tsx b/src/App.tsx
index 72b48b2..d7e32bb 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -6,6 +6,37 @@ import { Routes } from "./routes";
function App() {
return (
+
+
+
Swap is being deprecated.
+
+
+ -
+ Removing liquidity is enabled through the My Pools tab
+
+ -
+ The Provide Liquidity and Swap functionalities have been disabled
+
+ -
+ For easy swapping using the on-chain Serum orderbook consider using
+ raydium.io
+
+
+
+
+
{
className="add-button"
onClick={() => executeAction(pool)}
trigger={["click"]}
- disabled={
- connected &&
- (depositType === "both"
- ? pendingTx ||
- !A.account ||
- !B.account ||
- A.account === B.account ||
- !hasSufficientBalance
- : !getDepositToken()?.account ||
- !getDepositToken()?.sufficientBalance())
- }
+ // disabled={
+ // connected &&
+ // (depositType === "both"
+ // ? pendingTx ||
+ // !A.account ||
+ // !B.account ||
+ // A.account === B.account ||
+ // !hasSufficientBalance
+ // : !getDepositToken()?.account ||
+ // !getDepositToken()?.sufficientBalance())
+ // }
+ disabled={true}
type="primary"
size="large"
overlay={
@@ -212,16 +213,17 @@ export const AddToLiquidity = () => {
/>
}
>
- {depositType === "both"
- ? generateActionLabel(
- pool ? ADD_LIQUIDITY_LABEL : CREATE_POOL_LABEL,
- connected,
- tokenMap,
- A,
- B
- )
- : generateExactOneLabel(connected, tokenMap, getDepositToken())}
- {pendingTx && }
+ {/*{depositType === "both"*/}
+ {/* ? generateActionLabel(*/}
+ {/* pool ? ADD_LIQUIDITY_LABEL : CREATE_POOL_LABEL,*/}
+ {/* connected,*/}
+ {/* tokenMap,*/}
+ {/* A,*/}
+ {/* B*/}
+ {/* )*/}
+ {/* : generateExactOneLabel(connected, tokenMap, getDepositToken())}*/}
+ {/*{pendingTx && }*/}
+ Swap is being deprecated
);
diff --git a/src/components/trade/index.tsx b/src/components/trade/index.tsx
index 7415397..2c59cd9 100644
--- a/src/components/trade/index.tsx
+++ b/src/components/trade/index.tsx
@@ -146,30 +146,32 @@ export const TradeEntry = () => {
size="large"
onClick={connected ? handleSwap : connect}
style={{ width: "100%" }}
- disabled={
- connected &&
- (pendingTx ||
- !A.account ||
- !B.mintAddress ||
- A.account === B.account ||
- !A.sufficientBalance() ||
- !pool)
- }
+ disabled={true}
+ // disabled={
+ // connected &&
+ // (pendingTx ||
+ // !A.account ||
+ // !B.mintAddress ||
+ // A.account === B.account ||
+ // !A.sufficientBalance() ||
+ // !pool)
+ // }
>
- {generateActionLabel(
- !pool
- ? POOL_NOT_AVAILABLE(
- getTokenName(tokenMap, A.mintAddress),
- getTokenName(tokenMap, B.mintAddress)
- )
- : SWAP_LABEL,
- connected,
- tokenMap,
- A,
- B,
- true
- )}
- {pendingTx && }
+ {/*{generateActionLabel(*/}
+ {/* !pool*/}
+ {/* ? POOL_NOT_AVAILABLE(*/}
+ {/* getTokenName(tokenMap, A.mintAddress),*/}
+ {/* getTokenName(tokenMap, B.mintAddress)*/}
+ {/* )*/}
+ {/* : SWAP_LABEL,*/}
+ {/* connected,*/}
+ {/* tokenMap,*/}
+ {/* A,*/}
+ {/* B,*/}
+ {/* true*/}
+ {/*)}*/}
+ {/*{pendingTx && }*/}
+ Swap is being deprecated
>