diff --git a/apps/honey/src/components/swap-card.tsx b/apps/honey/src/components/swap-card.tsx
index 0ca56ce8e..bfa4ab4ed 100755
--- a/apps/honey/src/components/swap-card.tsx
+++ b/apps/honey/src/components/swap-card.tsx
@@ -19,6 +19,7 @@ import { Tabs, TabsList, TabsTrigger } from "@bera/ui/tabs";
import { Address, parseUnits } from "viem";
import { usePsm } from "~/hooks/usePsm";
+import { cn } from "@bera/ui";
export function SwapCard() {
const [tabValue, setTabValue] = useState<"mint" | "burn">("mint");
@@ -109,153 +110,166 @@ export function SwapCard() {
-
-
- {
- setChangedAsset(selectedFrom?.[0]?.address);
- setGivenIn(true);
- setFromAmount((prevAmount) => ({
- ...prevAmount,
- [selectedFrom?.[0]?.address!]: amount,
- }));
- }}
- onTokenSelection={(token) => {
- resetAmounts();
- setSelectedFrom((prevToken) =>
- token && prevToken
- ? [
- token,
- ...prevToken.filter(
- (t) => t.address !== token.address,
- ),
- ]
- : [],
- );
- }}
- />
-
- {!!isBasketModeEnabled && tabValue === "mint" && (
- <>
- {
- setChangedAsset(selectedFrom?.[1]?.address);
- setGivenIn(true);
- setFromAmount((prevAmount) => ({
- ...prevAmount,
- [selectedFrom?.[1]?.address!]: amount,
- }));
- }}
- onTokenSelection={(token) => {
- resetAmounts();
- setSelectedFrom((prevToken) =>
- token && prevToken
- ? [
- token,
- ...prevToken.filter(
- (t) => t.address !== token.address,
- ),
- ]
- : [],
- );
- }}
- />
-
- >
- )}
+
+
+
+ {
+ setChangedAsset(selectedFrom?.[0]?.address);
+ setGivenIn(true);
+ setFromAmount((prevAmount) => ({
+ ...prevAmount,
+ [selectedFrom?.[0]?.address!]: amount,
+ }));
+ }}
+ onTokenSelection={(token) => {
+ resetAmounts();
+ setSelectedFrom((prevToken) =>
+ token && prevToken
+ ? [
+ token,
+ ...prevToken.filter(
+ (t) => t.address !== token.address,
+ ),
+ ]
+ : [],
+ );
+ }}
+ />
+ {!!isBasketModeEnabled && tabValue === "mint" && (
+ <>
+
+ {
+ setChangedAsset(selectedFrom?.[1]?.address);
+ setGivenIn(true);
+ setFromAmount((prevAmount) => ({
+ ...prevAmount,
+ [selectedFrom?.[1]?.address!]: amount,
+ }));
+ }}
+ onTokenSelection={(token) => {
+ resetAmounts();
+ setSelectedFrom((prevToken) =>
+ token && prevToken
+ ? [
+ token,
+ ...prevToken.filter(
+ (t) => t.address !== token.address,
+ ),
+ ]
+ : [],
+ );
+ }}
+ />
+ >
+ )}
+
{(isLoading || isTyping) && (
)}
- {
- setChangedAsset(selectedTo?.[0]?.address);
- setGivenIn(false);
- setToAmount((prevAmount) => ({
- ...prevAmount,
- [selectedTo?.[0]?.address!]: amount,
- }));
- }}
- onTokenSelection={(token) => {
- resetAmounts();
- setSelectedTo((prevToken) =>
- token && prevToken
- ? [
- token,
- ...prevToken.filter(
- (t) => t.address !== token.address,
- ),
- ]
- : [],
- );
- }}
- />
- {!!isBasketModeEnabled && tabValue === "burn" && (
- <>
-
- {
- setChangedAsset(selectedTo?.[1]?.address);
- setGivenIn(false);
- setToAmount((prevAmount) => ({
- ...prevAmount,
- [selectedTo?.[1]?.address!]: amount,
- }));
- }}
- onTokenSelection={(token) => {
- resetAmounts();
- setSelectedTo((prevToken) =>
- token && prevToken
- ? [
- token,
- ...prevToken.filter(
- (t) => t.address !== token.address,
- ),
- ]
- : [],
- );
- }}
- />
- >
- )}
+
+ {
+ setChangedAsset(selectedTo?.[0]?.address);
+ setGivenIn(false);
+ setToAmount((prevAmount) => ({
+ ...prevAmount,
+ [selectedTo?.[0]?.address!]: amount,
+ }));
+ }}
+ onTokenSelection={(token) => {
+ resetAmounts();
+ setSelectedTo((prevToken) =>
+ token && prevToken
+ ? [
+ token,
+ ...prevToken.filter(
+ (t) => t.address !== token.address,
+ ),
+ ]
+ : [],
+ );
+ }}
+ />
+ {!!isBasketModeEnabled && tabValue === "burn" && (
+ <>
+
+ {
+ setChangedAsset(selectedTo?.[1]?.address);
+ setGivenIn(false);
+ setToAmount((prevAmount) => ({
+ ...prevAmount,
+ [selectedTo?.[1]?.address!]: amount,
+ }));
+ }}
+ onTokenSelection={(token) => {
+ resetAmounts();
+ setSelectedTo((prevToken) =>
+ token && prevToken
+ ? [
+ token,
+ ...prevToken.filter(
+ (t) => t.address !== token.address,
+ ),
+ ]
+ : [],
+ );
+ }}
+ />
+ >
+ )}
+
{isBadCollateral && !isBasketModeEnabled ? (