我知道,在SushiSwap中,可以通过严格的合同获取令牌的价格,阅读getAmountsOut,然后通过etherjs库将其发送给from。https://etherscan.io/address/0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f#readContract
对于v3版本的Uniswap V3?https://docs.uniswap.org/protocol/introduction也可以这样做。
还是有可能是另一种方法?
发布于 2022-02-01 21:07:13
您可以使用getOutputAmount from:池- getOutputAmount
https://stackoverflow.com/questions/70577599
复制相似问题