-
+ |
-
- {truncateString(denom?.display ?? 'No ticker provided', 24).toUpperCase()}
+
+ {denom.display.startsWith('factory')
+ ? denom.display.split('/').pop()?.toUpperCase()
+ : truncateString(denom.display, 12)}
|
-
- {truncateString(denom?.name ?? 'No name provided', 20)}
- |
-
+ | {truncateString(denom.symbol, 20)} |
+
{formatAmount(totalSupply)}
@@ -313,6 +359,14 @@ function TokenRow({
|
+
+
+ {formatAmount(balance)}
+
+ {truncateString(denom?.display ?? 'No ticker provided', 10).toUpperCase()}
+
+
+ |
e.stopPropagation()}>
- YOUR BALANCE
+ TARGET'S BALANCE
-
- {shiftDigits(balance, -exponent)}
+
+ {formatAmount(recipientBalance?.amount)}
@@ -227,12 +249,14 @@ export default function BurnForm({
)}
{totalSupply !== '0' && (
-
+
CIRCULATING SUPPLY
-
- {shiftDigits(totalSupply, -exponent)} {denom.display.toUpperCase()}
+
+ {Number(shiftDigits(totalSupply, -exponent)).toLocaleString(undefined, {
+ maximumFractionDigits: exponent,
+ })}{' '}
@@ -280,7 +304,7 @@ export default function BurnForm({
) : (
- `Burn ${truncateString(denom.display ?? 'Denom', 20).toUpperCase()}`
+ `Burn ${
+ denom.display.startsWith('factory')
+ ? denom.display.split('/').pop()?.toUpperCase()
+ : truncateString(denom.display, 12)
+ }`
)}
diff --git a/components/factory/forms/ConfirmationForm.tsx b/components/factory/forms/ConfirmationForm.tsx
index bdd3fa86..996a22a3 100644
--- a/components/factory/forms/ConfirmationForm.tsx
+++ b/components/factory/forms/ConfirmationForm.tsx
@@ -45,7 +45,6 @@ export default function ConfirmationForm({
}
const symbol = formData.subdenom.slice(1).toUpperCase();
-
// If createDenom is successful, proceed with setDenomMetadata
const setMetadataMsg = setDenomMetadata({
sender: address,
@@ -154,14 +153,14 @@ export default function ConfirmationForm({
{/* Buttons */}
-
-
-
+
-
+
Back: Factory Page
Back
handleSubmit()}
disabled={!isValid || isSubmitting || isValidating}
>
diff --git a/components/factory/forms/MintForm.tsx b/components/factory/forms/MintForm.tsx
index 358d2d89..dfc0c4c1 100644
--- a/components/factory/forms/MintForm.tsx
+++ b/components/factory/forms/MintForm.tsx
@@ -99,7 +99,7 @@ export default function MintForm({
NAME
@@ -109,7 +109,7 @@ export default function MintForm({
YOUR BALANCE
-
+
{Number(shiftDigits(balance, -exponent)).toLocaleString(undefined, {
maximumFractionDigits: exponent,
})}
@@ -130,15 +130,14 @@ export default function MintForm({
)}
{totalSupply !== '0' && (
-
+
CIRCULATING SUPPLY
-
+
{Number(shiftDigits(totalSupply, -exponent)).toLocaleString(undefined, {
maximumFractionDigits: exponent,
})}{' '}
- {denom.display.toUpperCase()}
@@ -229,7 +228,11 @@ export default function MintForm({
{isSigning ? (
) : (
- `Mint ${truncateString(denom.display ?? 'Denom', 20).toUpperCase()}`
+ `Mint ${
+ denom.display.startsWith('factory')
+ ? denom.display.split('/').pop()?.toUpperCase()
+ : truncateString(denom.display, 12)
+ }`
)}
)}
diff --git a/components/factory/forms/TokenDetailsForm.tsx b/components/factory/forms/TokenDetailsForm.tsx
index 946f6661..072b0db8 100644
--- a/components/factory/forms/TokenDetailsForm.tsx
+++ b/components/factory/forms/TokenDetailsForm.tsx
@@ -127,12 +127,15 @@ export default function TokenDetails({
-
-
+
+
Previous
handleSubmit()}
disabled={!isValid}
>
diff --git a/components/factory/forms/__tests__/BurnForm.test.tsx b/components/factory/forms/__tests__/BurnForm.test.tsx
index 807f500d..46d87c42 100644
--- a/components/factory/forms/__tests__/BurnForm.test.tsx
+++ b/components/factory/forms/__tests__/BurnForm.test.tsx
@@ -43,7 +43,7 @@ describe('BurnForm Component', () => {
test('renders form with correct details', () => {
renderWithProps();
expect(screen.getByText('NAME')).toBeInTheDocument();
- expect(screen.getByText('YOUR BALANCE')).toBeInTheDocument();
+ expect(screen.getByText("TARGET'S BALANCE")).toBeInTheDocument();
expect(screen.getByText('EXPONENT')).toBeInTheDocument();
expect(screen.getByText('CIRCULATING SUPPLY')).toBeInTheDocument();
});
diff --git a/components/factory/modals/BurnModal.tsx b/components/factory/modals/BurnModal.tsx
index f7a9163b..3deb737d 100644
--- a/components/factory/modals/BurnModal.tsx
+++ b/components/factory/modals/BurnModal.tsx
@@ -23,7 +23,6 @@ export default function BurnModal({
onClose: () => void;
onSwitchToMultiBurn: () => void;
}) {
- const [isMultiBurnOpen, setIsMultiBurnOpen] = useState(false);
const { poaAdmin, isPoaAdminLoading } = usePoaGetAdmin();
const { groupByAdmin, isGroupByAdminLoading } = useGroupsByAdmin(
poaAdmin ?? 'manifest1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsfmy9qj'
@@ -39,10 +38,6 @@ export default function BurnModal({
onSwitchToMultiBurn();
};
- const handleMultiBurnClose = () => {
- setIsMultiBurnOpen(false);
- };
-
return (
<>
|