Skip to content

Commit

Permalink
fix: uni v2 withdraw type error
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesfracari committed Dec 4, 2024
1 parent 211b269 commit 5fe71c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/withdraw-uni-v2/src/components/PoolForm.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import {
type IBalance,
type IPool,
PoolBalancesPreview,
Spinner,
SubmitButton,
WithdrawPctSlider,
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();
Expand All @@ -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;
Expand Down

0 comments on commit 5fe71c8

Please sign in to comment.