Skip to content

Instantly share code, notes, and snippets.

View pop-punk's full-sized avatar
🤘

Harrison pop-punk

🤘
View GitHub Profile
@pop-punk
pop-punk / useBondingCurveBuy.ts
Last active February 19, 2025 11:39
Safe Abstract Session Keys
import { usePublicClient } from "./usePublicClient";
import { IToken } from "@/types/token";
import { parseAbi, parseEther } from "viem";
import { ethers } from "ethers";
import { useAbstractClient } from "@abstract-foundation/agw-react";
import { useAbstractSession } from "@/hooks/useCreateAbstractSession";
import { privateKeyToAccount } from "viem/accounts";
import { useSessionClientChain } from "./useSessionClientChain";
export const useBondingCurveBuy = (chain: any) => {