diff --git a/src/components/Airdrop/AirdropModal.tsx b/src/components/Airdrop/AirdropModal.tsx
index e1ef0614..74c0460a 100644
--- a/src/components/Airdrop/AirdropModal.tsx
+++ b/src/components/Airdrop/AirdropModal.tsx
@@ -94,12 +94,12 @@ export const claimAndStake = async (
const approveCall = {
contractAddress: VE_CRM_ADDRESS,
entrypoint: "approve",
- calldata: [GOVERNANCE_ADDRESS, airdropAmount, 0],
+ calldata: [GOVERNANCE_ADDRESS, airdropAmount.toString(10), 0],
};
const stakeCall = {
contractAddress: GOVERNANCE_ADDRESS,
entrypoint: "stake",
- calldata: [length, airdropAmount],
+ calldata: [length, airdropAmount.toString(10)],
};
const res = await account
diff --git a/src/components/CarmineStaking/StakeCRM.tsx b/src/components/CarmineStaking/StakeCRM.tsx
index 77a5530f..4dce47cf 100644
--- a/src/components/CarmineStaking/StakeCRM.tsx
+++ b/src/components/CarmineStaking/StakeCRM.tsx
@@ -44,13 +44,13 @@ const stake = async (
const approveCall = {
contractAddress: VE_CRM_ADDRESS,
entrypoint: "approve",
- calldata: [GOVERNANCE_ADDRESS, amount, 0],
+ calldata: [GOVERNANCE_ADDRESS, amount.toString(10), 0],
};
const stakeCall = {
contractAddress: GOVERNANCE_ADDRESS,
entrypoint: "stake",
- calldata: [length, amount],
+ calldata: [length.toString(10), amount.toString(10)],
};
const res = await account
diff --git a/src/components/CarmineStaking/Staking.tsx b/src/components/CarmineStaking/Staking.tsx
index 05ee8686..89cb9030 100644
--- a/src/components/CarmineStaking/Staking.tsx
+++ b/src/components/CarmineStaking/Staking.tsx
@@ -1,5 +1,4 @@
import { AccountInterface } from "starknet";
-import { Skeleton } from "@mui/material";
import { useQuery } from "react-query";
import { useAccount } from "../../hooks/useAccount";
@@ -9,6 +8,7 @@ import { Stakes } from "./Stakes";
import { QueryKeys } from "../../queries/keys";
import { fetchStakingData } from "./calls";
import { StakeCrm } from "./StakeCRM";
+import { LoadingAnimation } from "../Loading/Loading";
export const StakeWithAccount = ({
account,
@@ -20,7 +20,7 @@ export const StakeWithAccount = ({
fetchStakingData
);
if (isLoading || !data) {
- return ;
+ return ;
}
if (isError) {
diff --git a/src/components/CarmineStaking/StakingModal.tsx b/src/components/CarmineStaking/StakingModal.tsx
index 193ed5fc..1eb32caf 100644
--- a/src/components/CarmineStaking/StakingModal.tsx
+++ b/src/components/CarmineStaking/StakingModal.tsx
@@ -45,12 +45,12 @@ export const unstakeAndStake = async (
const approveCall = {
contractAddress: VE_CRM_ADDRESS,
entrypoint: "approve",
- calldata: [GOVERNANCE_ADDRESS, amount, 0],
+ calldata: [GOVERNANCE_ADDRESS, amount.toString(10), 0],
};
const stakeCall = {
contractAddress: GOVERNANCE_ADDRESS,
entrypoint: "stake",
- calldata: [length, amount],
+ calldata: [length.toString(10), amount.toString(10)],
};
const res = await account