Calculating Price Impact for Uniswap V3 Using Ethers
TLDR;
require("dotenv").config(); // to get alchemy api key
const fs = require("fs");
const { ethers } = require("ethers");
const { abi: QuoterV2ABI } = require("@uniswap/v3-periphery/artifacts/contracts/lens/QuoterV2.sol/QuoterV2.json");
const { abi...
eshanshafeeq.hashnode.dev3 min read