+
Additional Information
+
+
+
+
BASE
+
+
-
-
DISPLAY
-
-
- {denom.display ?? "No display available"}
-
-
+
+
+
DISPLAY
+
+
+ {denom.display ?? "No display available"}
+
-
-
URI HASH
-
-
- {denom.uri_hash ?? "No URI hash available"}
-
-
+
+
+
URI HASH
+
+
+ {denom.uri_hash ?? "No URI hash available"}
+
- ) : (
-
-
-
- )}
+
- <>
- {isMFX && (
-
- )}
- >
>
);
}
diff --git a/components/factory/modals/multiMfxBurnModal.tsx b/components/factory/modals/multiMfxBurnModal.tsx
new file mode 100644
index 00000000..f679bdcd
--- /dev/null
+++ b/components/factory/modals/multiMfxBurnModal.tsx
@@ -0,0 +1,117 @@
+import React from "react";
+import { PiPlusCircle, PiMinusCircle } from "react-icons/pi";
+
+interface BurnPair {
+ address: string;
+ amount: string;
+}
+
+interface MultiBurnModalProps {
+ isOpen: boolean;
+ onClose: () => void;
+ burnPairs: BurnPair[];
+ updateBurnPair: (
+ index: number,
+ field: "address" | "amount",
+ value: string
+ ) => void;
+ addBurnPair: () => void;
+ removeBurnPair: (index: number) => void;
+ handleMultiBurn: () => void;
+ isSigning: boolean;
+}
+
+export function MultiBurnModal({
+ isOpen,
+ onClose,
+ burnPairs,
+ updateBurnPair,
+ addBurnPair,
+ removeBurnPair,
+ handleMultiBurn,
+ isSigning,
+}: MultiBurnModalProps) {
+ return (
+
+ );
+}
diff --git a/components/factory/modals/multiMfxMintModal.tsx b/components/factory/modals/multiMfxMintModal.tsx
new file mode 100644
index 00000000..6f4c5e78
--- /dev/null
+++ b/components/factory/modals/multiMfxMintModal.tsx
@@ -0,0 +1,120 @@
+// MultiMintModal.tsx
+import React from "react";
+import { PiPlusCircle, PiMinusCircle } from "react-icons/pi";
+
+interface PayoutPair {
+ address: string;
+ amount: string;
+}
+
+interface MultiMintModalProps {
+ isOpen: boolean;
+ onClose: () => void;
+ payoutPairs: PayoutPair[];
+ updatePayoutPair: (
+ index: number,
+ field: "address" | "amount",
+ value: string
+ ) => void;
+ addPayoutPair: () => void;
+ removePayoutPair: (index: number) => void;
+ handleMultiMint: () => void;
+ isSigning: boolean;
+}
+
+export function MultiMintModal({
+ isOpen,
+ onClose,
+ payoutPairs,
+ updatePayoutPair,
+ addPayoutPair,
+ removePayoutPair,
+ handleMultiMint,
+ isSigning,
+}: MultiMintModalProps) {
+ return (
+
+ );
+}
diff --git a/components/factory/modals/updateDenomMetadata.tsx b/components/factory/modals/updateDenomMetadata.tsx
index 9451e09d..19f2fb64 100644
--- a/components/factory/modals/updateDenomMetadata.tsx
+++ b/components/factory/modals/updateDenomMetadata.tsx
@@ -27,8 +27,8 @@ export function UpdateDenomMetadataModal({
uri: denom.uri,
uriHash: denom.uri_hash,
subdenom: denom.base.split("/").pop() || "",
- exponent: denom.denom_units[1].exponent.toString(),
- label: denom.denom_units[1].denom,
+ exponent: denom?.denom_units[1]?.exponent?.toString() ?? "6",
+ label: denom?.denom_units[1]?.denom ?? "mfx",
});
const [isSigning, setIsSigning] = useState(false);
diff --git a/components/groups/components/groupProposals.tsx b/components/groups/components/groupProposals.tsx
index cba85fcf..dae7508f 100644
--- a/components/groups/components/groupProposals.tsx
+++ b/components/groups/components/groupProposals.tsx
@@ -158,9 +158,9 @@ export default function ProposalsForPolicy({
const filterProposals = (proposals: ProposalSDKType[]) => {
return proposals.filter(
(proposal) =>
- proposal.status !== "PROPOSAL_STATUS_ACCEPTED" &&
- proposal.status !== "PROPOSAL_STATUS_REJECTED" &&
- proposal.status !== "PROPOSAL_STATUS_WITHDRAWN"
+ proposal.status.toString() !== "PROPOSAL_STATUS_ACCEPTED" &&
+ proposal.status.toString() !== "PROPOSAL_STATUS_REJECTED" &&
+ proposal.status.toString() !== "PROPOSAL_STATUS_WITHDRAWN"
);
};
diff --git a/components/groups/components/myGroups.tsx b/components/groups/components/myGroups.tsx
index e94a06f4..41da8e60 100644
--- a/components/groups/components/myGroups.tsx
+++ b/components/groups/components/myGroups.tsx
@@ -73,9 +73,9 @@ export function YourGroups({
const filterProposals = (proposals: ProposalSDKType[]) => {
return proposals.filter(
(proposal) =>
- proposal.status !== "PROPOSAL_STATUS_ACCEPTED" &&
- proposal.status !== "PROPOSAL_STATUS_REJECTED" &&
- proposal.status !== "PROPOSAL_STATUS_WITHDRAWN"
+ proposal.status.toString() !== "PROPOSAL_STATUS_ACCEPTED" &&
+ proposal.status.toString() !== "PROPOSAL_STATUS_REJECTED" &&
+ proposal.status.toString() !== "PROPOSAL_STATUS_WITHDRAWN"
);
};
diff --git a/pages/bank.tsx b/pages/bank.tsx
index 997f1025..4f42bf35 100644
--- a/pages/bank.tsx
+++ b/pages/bank.tsx
@@ -177,12 +177,8 @@ export default function Bank() {
address={address ?? ""}
/>