Skip to content

Commit

Permalink
fix approval amount
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhsinghcodes committed Dec 5, 2024
1 parent 1811ae4 commit 74d614d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ const useLiquidityHubConfirmationContext = () => React.useContext(Context);
const useLiquidityHubApproval = () => {
const { inCurrency, inAmount } = useLiquidityHubConfirmationContext();

return useApproval(permit2Address, inCurrency, inAmount);
return useApproval(
permit2Address,
inCurrency,
fromRawAmount(inCurrency, inAmount)?.toExact(),
);
};

const useAmounts = () => {
Expand Down

0 comments on commit 74d614d

Please sign in to comment.