From 5fe71c8f3eb804dc9778fdf3185991a640323c53 Mon Sep 17 00:00:00 2001 From: Pedro Yves Fracari Date: Wed, 4 Dec 2024 15:19:22 -0300 Subject: [PATCH] fix: uni v2 withdraw type error --- apps/withdraw-uni-v2/src/components/PoolForm.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/withdraw-uni-v2/src/components/PoolForm.tsx b/apps/withdraw-uni-v2/src/components/PoolForm.tsx index d4d3768..db9d28e 100644 --- a/apps/withdraw-uni-v2/src/components/PoolForm.tsx +++ b/apps/withdraw-uni-v2/src/components/PoolForm.tsx @@ -1,5 +1,6 @@ import { type IBalance, + type IPool, PoolBalancesPreview, Spinner, SubmitButton, @@ -7,8 +8,8 @@ import { useIFrameContext, } from "@bleu/cow-hooks-ui"; import { Token } from "@uniswap/sdk-core"; +import type { BigNumberish } from "ethers"; import { Suspense } from "react"; -import type { IPool } from "#/types"; export function PoolForm({ selectedPool }: { selectedPool?: IPool }) { const { context } = useIFrameContext(); @@ -22,9 +23,9 @@ export function PoolForm({ selectedPool }: { selectedPool?: IPool }) { token.decimals, token.symbol, ), - balance: token.userBalance, - fiatAmount: token.userBalanceUsd, - weight: token.weight, + balance: token.userBalance as BigNumberish, + fiatAmount: token.userBalanceUsd as number, + weight: token.weight as number, }; }) : undefined;