Skip to content

Commit

Permalink
precision
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Dec 16, 2024
1 parent 7e18f86 commit 8329d97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/ui/components/resources/realm-transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { calculateDonkeysNeeded, currencyFormat, getTotalResourceWeight, multipl
import { ResourcesIds, findResourceById } from "@bibliothecadao/eternum";
import { Dispatch, SetStateAction, memo, useCallback, useEffect, useMemo, useState } from "react";

import { configManager } from "@/dojo/setup";
import { ID } from "@bibliothecadao/eternum";
import { ArrowLeftIcon, ArrowRightIcon } from "lucide-react";
import { num } from "starknet";
Expand Down Expand Up @@ -51,7 +50,7 @@ export const RealmTransfer = memo(
const resources = calls.map((call) => {
return {
resourceId: Number(call.resources[0]),
amount: Number(call.resources[1]) * configManager.getResourceMultiplier(),
amount: Number(call.resources[1]),
};
});
const totalWeight = getTotalResourceWeight(resources);
Expand All @@ -65,7 +64,7 @@ export const RealmTransfer = memo(
const cleanedCalls = calls.map(({ sender_entity_id, recipient_entity_id, resources }) => ({
sender_entity_id,
recipient_entity_id,
resources,
resources: [resources[0], BigInt(resources[1]) * BigInt(1000)],
}));

send_resources_multiple({
Expand Down

0 comments on commit 8329d97

Please sign in to comment.