Can we make "quoting" example compatible with Ethers 6.*?
davedavinci opened this issue · 2 comments
I tried to make it work in a dApp using Ethers 6.11 but there's some breaking stuff in the way Ethers 5 vs 6 handle Contract instances methods, therefore await quoterContract.callStatic.quoteExactInputSingle()
could not execute under Ethers 6.
It would be amazing to have an updated version of this, together with a multi-hop quoting example.
Keep up the good work guys.
await quoterContract.quoteExactInputSingle.staticCall()
@davedavinci I have an example working with Ethers 6.12.1
https://github.com/jfbloom22/uniswap-examples/tree/chor/quote/v3-sdk/quoting/src
Note: my example is targeting the QuoterV2 contract and currently pointed at Base chain.
FYI I found some updated examples here: https://discord.com/channels/597638925346930701/607978109089611786/948847107744333844
Hope it helps!
If this repo shows signs of being maintained, I will gladly make a PR.