1

uniswap中在mapping(token0 => mapping(token1 => pair)) public getpair 中...

 2 years ago
source link: https://learnblockchain.cn/question/2232
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

5 uniswap中在mapping(token0 => mapping(token1 => pair)) public getpair 中进行取值,(address[],) = getpair[token0],这样可以取到所有跟token0配对的token1吗?

最佳答案 2021-06-24 12:16

那可以对 uniswap 中在mapping(token0 => mapping(token1 => pair)) public getpair 中进行取值的结果进行判断吗?比如 getpair 中没有(dog => (pig => bird))这个对,getpair[dog][pig] == false这样可以吗?

Tiny熊 - 布道者
擅长:智能合约,以太坊 | 采纳率 38% | 回答于 2021-06-24 12:16

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK