Skip to content

Commit 4da58cd

Browse files
committed
fix: fix USDC apporval amount
1 parent 839e76b commit 4da58cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hooks/use-buy-fraction.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ const useHandleBuyFraction = (
4848
);
4949

5050
try {
51-
const approveTx = await hypercertExhangeClient.approveErc20(order.currency, BigInt(amountInDollars));
51+
console.log("doolor: ", amountInDollars)
52+
console.log("doolor: ", BigInt(amountInDollars));
53+
const approveTx = await hypercertExhangeClient.approveErc20(order.currency, BigInt(amountInDollars * 1_000_000));
5254

5355
await waitForTransactionReceipt(publicClient, {
5456
hash: approveTx.hash as `0x${string}`,

0 commit comments

Comments
 (0)