我正在建立一个示范合同,交换一些令牌对在Uniswap上。我在试用林克比的合同。我不在乎在哪个令牌对上运行演示。我从以太扫描抓取了多个令牌地址。要检查令牌对是否存在,我正在运行:
address pairAddress = IUniswapV2Factory(factory).getPair(token0, token1);
// make sure the pair exists in uniswap
require(pairAddress != address(0), 'Could not find pool on uniswap');我尝试的每一对令牌都失败了。在Rinkeby上有Uniswap令牌对吗?
发布于 2022-05-27 04:30:15
Rinkeby上只有几对,就像在Uniswap界面上看到的那样:

我可以把我的ETH换成UNI和DAI (我认为没有符号只是意味着在Rinkeby网络上没有这个标记的官方标志)。
https://ethereum.stackexchange.com/questions/128504
复制相似问题